Torque3D Documentation / _generateds / rapidjson::UTF16

rapidjson::UTF16

Engine/source/persistence/rapidjson/encodings.h

UTF-16 encoding.

More...

Public Types

CharType
Ch 

Public Functions

Public Static Functions

bool
Decode(InputStream & is, unsigned * codepoint)
Encode(OutputStream & os, unsigned codepoint)
bool
Validate(InputStream & is, OutputStream & os)

Detailed Description

UTF-16 encoding.

http://en.wikipedia.org/wiki/UTF-16 http://tools.ietf.org/html/rfc2781 Parameters:

CharType

Type for storing 16-bit UTF-16 data. Default is wchar_t. C++11 may use char16_t instead.

note:

For in-memory access, no need to concern endianness. The code units and code points are represented by CPU's endianness. For streaming, use UTF16LE and UTF16BE, which handle endianness.

Public Types

typedef CharType Ch 

Public Functions

RAPIDJSON_STATIC_ASSERT(sizeof(Ch) >= 2)

Public Static Functions

Decode(InputStream & is, unsigned * codepoint)

Encode(OutputStream & os, unsigned codepoint)

Validate(InputStream & is, OutputStream & os)