Input stream wrapper with dynamically bound encoding and automatic encoding detection. More...
#include <encodedstream.h>
Public Types | |
typedef CharType | Ch |
Public Member Functions | |
AutoUTFInputStream (InputByteStream &is, UTFType type=kUTF8) | |
Constructor. More... | |
void | Flush () |
UTFType | GetType () const |
bool | HasBOM () const |
Ch | Peek () const |
void | Put (Ch) |
Ch * | PutBegin () |
size_t | PutEnd (Ch *) |
Ch | Take () |
size_t | Tell () const |
Private Types | |
typedef Ch(* | TakeFunc) (InputByteStream &is) |
Private Member Functions | |
AutoUTFInputStream (const AutoUTFInputStream &) | |
void | DetectType () |
AutoUTFInputStream & | operator= (const AutoUTFInputStream &) |
RAPIDJSON_STATIC_ASSERT (sizeof(typename InputByteStream::Ch)==1) | |
Private Attributes | |
Ch | current_ |
bool | hasBOM_ |
InputByteStream * | is_ |
TakeFunc | takeFunc_ |
UTFType | type_ |
Input stream wrapper with dynamically bound encoding and automatic encoding detection.
CharType | Type of character for reading. |
InputByteStream | type of input byte stream to be wrapped. |
Definition at line 216 of file encodedstream.h.
typedef CharType AutoUTFInputStream< CharType, InputByteStream >::Ch |
Definition at line 221 of file encodedstream.h.
|
private |
Definition at line 385 of file encodedstream.h.
|
inline |
Constructor.
is | input stream to be wrapped. |
type | UTF encoding type if it is not detected from the stream. |
Definition at line 228 of file encodedstream.h.
|
private |
|
inlineprivate |
Definition at line 286 of file encodedstream.h.
|
inline |
Definition at line 266 of file encodedstream.h.
|
inline |
Definition at line 237 of file encodedstream.h.
|
inline |
Definition at line 241 of file encodedstream.h.
|
private |
|
inline |
Definition at line 246 of file encodedstream.h.
|
inline |
Definition at line 262 of file encodedstream.h.
|
inline |
Definition at line 270 of file encodedstream.h.
|
inline |
Definition at line 275 of file encodedstream.h.
|
private |
|
inline |
Definition at line 250 of file encodedstream.h.
|
inline |
Definition at line 256 of file encodedstream.h.
|
private |
Definition at line 388 of file encodedstream.h.
|
private |
Definition at line 390 of file encodedstream.h.
|
private |
Definition at line 386 of file encodedstream.h.
|
private |
Definition at line 389 of file encodedstream.h.
|
private |
Definition at line 387 of file encodedstream.h.