Output stream wrapper with dynamically bound encoding and automatic encoding detection. More...
#include <encodedstream.h>
Public Types | |
typedef CharType | Ch |
Public Member Functions | |
AutoUTFOutputStream (OutputByteStream &os, UTFType type, bool putBOM) | |
Constructor. More... | |
UTFType | GetType () const |
void | Put (Ch c) |
void | Flush () |
Ch | Peek () const |
Ch | Take () |
size_t | Tell () const |
Ch * | PutBegin () |
size_t | PutEnd (Ch *) |
Private Types | |
typedef void(* | PutFunc) (OutputByteStream &, Ch) |
Private Member Functions | |
RAPIDJSON_STATIC_ASSERT (sizeof(typename OutputByteStream::Ch)==1) | |
AutoUTFOutputStream (const AutoUTFOutputStream &) | |
AutoUTFOutputStream & | operator= (const AutoUTFOutputStream &) |
void | PutBOM () |
Private Attributes | |
OutputByteStream * | os_ |
UTFType | type_ |
PutFunc | putFunc_ |
Output stream wrapper with dynamically bound encoding and automatic encoding detection.
CharType | Type of character for writing. |
OutputByteStream | type of output byte stream to be wrapped. |
Definition at line 233 of file encodedstream.h.
typedef CharType AutoUTFOutputStream< CharType, OutputByteStream >::Ch |
Definition at line 236 of file encodedstream.h.
|
private |
Definition at line 280 of file encodedstream.h.
|
inline |
Constructor.
os | output stream to be wrapped. |
type | UTF encoding type. |
putBOM | Whether to write BOM at the beginning of the stream. |
Definition at line 244 of file encodedstream.h.
|
private |
|
inline |
Definition at line 261 of file encodedstream.h.
|
inline |
Definition at line 258 of file encodedstream.h.
|
private |
|
inline |
Definition at line 264 of file encodedstream.h.
|
inline |
Definition at line 260 of file encodedstream.h.
|
inline |
Definition at line 267 of file encodedstream.h.
|
inlineprivate |
Definition at line 274 of file encodedstream.h.
|
inline |
Definition at line 268 of file encodedstream.h.
|
private |
|
inline |
Definition at line 265 of file encodedstream.h.
|
inline |
Definition at line 266 of file encodedstream.h.
|
private |
Definition at line 282 of file encodedstream.h.
|
private |
Definition at line 284 of file encodedstream.h.
|
private |
Definition at line 283 of file encodedstream.h.