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... | |
UTFType | GetType () const |
bool | HasBOM () const |
Ch | Peek () const |
Ch | Take () |
size_t | Tell () const |
void | Put (Ch) |
void | Flush () |
Ch * | PutBegin () |
size_t | PutEnd (Ch *) |
Private Types | |
typedef Ch(* | TakeFunc) (InputByteStream &is) |
Private Member Functions | |
RAPIDJSON_STATIC_ASSERT (sizeof(typename InputByteStream::Ch)==1) | |
AutoUTFInputStream (const AutoUTFInputStream &) | |
AutoUTFInputStream & | operator= (const AutoUTFInputStream &) |
void | DetectType () |
Private Attributes | |
InputByteStream * | is_ |
UTFType | type_ |
Ch | current_ |
TakeFunc | takeFunc_ |
bool | hasBOM_ |
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 135 of file encodedstream.h.
typedef CharType AutoUTFInputStream< CharType, InputByteStream >::Ch |
Definition at line 138 of file encodedstream.h.
|
private |
Definition at line 219 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 145 of file encodedstream.h.
|
private |
|
inlineprivate |
Definition at line 171 of file encodedstream.h.
|
inline |
Definition at line 162 of file encodedstream.h.
|
inline |
Definition at line 153 of file encodedstream.h.
|
inline |
Definition at line 154 of file encodedstream.h.
|
private |
|
inline |
Definition at line 156 of file encodedstream.h.
|
inline |
Definition at line 161 of file encodedstream.h.
|
inline |
Definition at line 163 of file encodedstream.h.
|
inline |
Definition at line 164 of file encodedstream.h.
|
private |
|
inline |
Definition at line 157 of file encodedstream.h.
|
inline |
Definition at line 158 of file encodedstream.h.
|
private |
Definition at line 222 of file encodedstream.h.
|
private |
Definition at line 224 of file encodedstream.h.
|
private |
Definition at line 220 of file encodedstream.h.
|
private |
Definition at line 223 of file encodedstream.h.
|
private |
Definition at line 221 of file encodedstream.h.