Torque3D Documentation / _generateds / AutoUTFInputStream

AutoUTFInputStream

Engine/source/persistence/rapidjson/encodedstream.h

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

More...

Public Types

CharType
Ch 

Private Types

Ch(*
TakeFunc )(InputByteStream &is)

Private Attributes

bool
InputByteStream *
TakeFunc

Public Functions

AutoUTFInputStream(InputByteStream & is, UTFType type)

Constructor.

bool
Peek()
size_t
PutEnd(Ch * )
Take()
size_t
Tell()

Detailed Description

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

Parameters:

CharType

Type of character for reading.

InputByteStream

type of input byte stream to be wrapped.

Public Types

typedef CharType Ch 

Private Types

typedef Ch(* TakeFunc )(InputByteStream &is)

Private Attributes

Ch current_ 
bool hasBOM_ 
InputByteStream * is_ 
TakeFunc takeFunc_ 
UTFType type_ 

Private Functions

AutoUTFInputStream(const AutoUTFInputStream & )

DetectType()

operator=(const AutoUTFInputStream & )

RAPIDJSON_STATIC_ASSERT(sizeof(typename InputByteStream::Ch) )

Public Functions

AutoUTFInputStream(InputByteStream & is, UTFType type)

Constructor.

Parameters:

is

input stream to be wrapped.

type

UTF encoding type if it is not detected from the stream.

Flush()

GetType()

HasBOM()

Peek()

Put(Ch )

PutBegin()

PutEnd(Ch * )

Take()

Tell()