Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
EncodedInputStream< UTF8<>, MemoryStream > Class Template Reference

Specialized for UTF8 MemoryStream. More...

#include <encodedstream.h>

Public Types

typedef UTF8::Ch Ch
 

Public Member Functions

 EncodedInputStream (MemoryStream &is)
 
Ch Peek () const
 
Ch Take ()
 
size_t Tell () const
 
void Put (Ch)
 
void Flush ()
 
ChPutBegin ()
 
size_t PutEnd (Ch *)
 

Public Attributes

MemoryStreamis_
 

Private Member Functions

 EncodedInputStream (const EncodedInputStream &)
 
EncodedInputStreamoperator= (const EncodedInputStream &)
 

Detailed Description

template<>
class EncodedInputStream< UTF8<>, MemoryStream >

Specialized for UTF8 MemoryStream.

Definition at line 68 of file encodedstream.h.

Member Typedef Documentation

Definition at line 70 of file encodedstream.h.

Constructor & Destructor Documentation

Definition at line 72 of file encodedstream.h.

72  : is_(is) {
73  if (static_cast<unsigned char>(is_.Peek()) == 0xEFu) is_.Take();
74  if (static_cast<unsigned char>(is_.Peek()) == 0xBBu) is_.Take();
75  if (static_cast<unsigned char>(is_.Peek()) == 0xBFu) is_.Take();
76  }
Ch Peek() const
Definition: memorystream.h:45

Member Function Documentation

void EncodedInputStream< UTF8<>, MemoryStream >::Flush ( )
inline

Definition at line 83 of file encodedstream.h.

83 {}
Ch EncodedInputStream< UTF8<>, MemoryStream >::Peek ( ) const
inline

Definition at line 77 of file encodedstream.h.

77 { return is_.Peek(); }
Ch Peek() const
Definition: memorystream.h:45
void EncodedInputStream< UTF8<>, MemoryStream >::Put ( Ch  )
inline

Definition at line 82 of file encodedstream.h.

82 {}
Ch* EncodedInputStream< UTF8<>, MemoryStream >::PutBegin ( )
inline

Definition at line 84 of file encodedstream.h.

84 { return 0; }
size_t EncodedInputStream< UTF8<>, MemoryStream >::PutEnd ( Ch )
inline

Definition at line 85 of file encodedstream.h.

85 { return 0; }
Ch EncodedInputStream< UTF8<>, MemoryStream >::Take ( )
inline

Definition at line 78 of file encodedstream.h.

78 { return is_.Take(); }
size_t EncodedInputStream< UTF8<>, MemoryStream >::Tell ( ) const
inline

Definition at line 79 of file encodedstream.h.

79 { return is_.Tell(); }
size_t Tell() const
Definition: memorystream.h:47

Member Data Documentation

Definition at line 87 of file encodedstream.h.


The documentation for this class was generated from the following file: