template <typename CharType, typename OutputByteStream>

class AutoUTFOutputStream

Defined at line 233 of file ../../third_party/rapidjson/include/rapidjson/encodedstream.h

Output stream wrapper with dynamically bound encoding and automatic encoding detection.

Template Parameters

CharType Type of character for writing.
OutputByteStream type of output byte stream to be wrapped.

Public Methods

void AutoUTFOutputStream<CharType, OutputByteStream> (OutputByteStream & os, UTFType type, bool putBOM)

Constructor.

Parameters

os output stream to be wrapped.
type UTF encoding type.
putBOM Whether to write BOM at the beginning of the stream.

Defined at line 244 of file ../../third_party/rapidjson/include/rapidjson/encodedstream.h

UTFType GetType ()

Defined at line 258 of file ../../third_party/rapidjson/include/rapidjson/encodedstream.h

void Put (Ch c)

Defined at line 260 of file ../../third_party/rapidjson/include/rapidjson/encodedstream.h

void Flush ()

Defined at line 261 of file ../../third_party/rapidjson/include/rapidjson/encodedstream.h

Ch Peek ()

Not implemented

Defined at line 264 of file ../../third_party/rapidjson/include/rapidjson/encodedstream.h

Ch Take ()

Defined at line 265 of file ../../third_party/rapidjson/include/rapidjson/encodedstream.h

size_t Tell ()

Defined at line 266 of file ../../third_party/rapidjson/include/rapidjson/encodedstream.h

Ch * PutBegin ()

Defined at line 267 of file ../../third_party/rapidjson/include/rapidjson/encodedstream.h

size_t PutEnd (Ch * )

Defined at line 268 of file ../../third_party/rapidjson/include/rapidjson/encodedstream.h