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... | |
| void | Flush () |
| UTFType | GetType () const |
| Ch | Peek () const |
| void | Put (Ch c) |
| Ch * | PutBegin () |
| size_t | PutEnd (Ch *) |
| Ch | Take () |
| size_t | Tell () const |
Private Types | |
| typedef void(* | PutFunc) (OutputByteStream &, Ch) |
Private Member Functions | |
| AutoUTFOutputStream (const AutoUTFOutputStream &) | |
| AutoUTFOutputStream & | operator= (const AutoUTFOutputStream &) |
| void | PutBOM () |
| RAPIDJSON_STATIC_ASSERT (sizeof(typename OutputByteStream::Ch)==1) | |
Private Attributes | |
| OutputByteStream * | os_ |
| PutFunc | putFunc_ |
| UTFType | type_ |
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 399 of file encodedstream.h.
| typedef CharType AutoUTFOutputStream< CharType, OutputByteStream >::Ch |
Definition at line 404 of file encodedstream.h.
|
private |
Definition at line 481 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 412 of file encodedstream.h.
|
private |
|
inline |
Definition at line 438 of file encodedstream.h.
|
inline |
Definition at line 429 of file encodedstream.h.
|
private |
|
inline |
Definition at line 444 of file encodedstream.h.
|
inline |
Definition at line 434 of file encodedstream.h.
|
inline |
Definition at line 459 of file encodedstream.h.
|
inlineprivate |
Definition at line 474 of file encodedstream.h.
|
inline |
Definition at line 464 of file encodedstream.h.
|
private |
|
inline |
Definition at line 449 of file encodedstream.h.
|
inline |
Definition at line 454 of file encodedstream.h.
|
private |
Definition at line 483 of file encodedstream.h.
|
private |
Definition at line 485 of file encodedstream.h.
|
private |
Definition at line 484 of file encodedstream.h.