UTF16

Engine/source/persistence/rapidjson/encodings.h

UTF-16 encoding.

More...

Public Types

enum
_Anonymous_ {  supportUnicode = 1
}
CharType
Ch 

Public Functions

Public Static Functions

bool
Decode(InputStream & is, unsigned * codepoint)
Encode(OutputStream & os, unsigned codepoint)
EncodeUnsafe(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:

implements Encoding concept

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

@124

Enumerator

supportUnicode = 1
typedef CharType Ch 

Public Functions

RAPIDJSON_STATIC_ASSERT(sizeof(Ch) >= 2)

Public Static Functions

Decode(InputStream & is, unsigned * codepoint)

Encode(OutputStream & os, unsigned codepoint)

EncodeUnsafe(OutputStream & os, unsigned codepoint)

Validate(InputStream & is, OutputStream & os)