rapidjson::UTF32< CharType > 模板结构体 参考

UTF-32 encoding. 更多...

#include <encodings.h>

类 rapidjson::UTF32< CharType > 继承关系图:
rapidjson::UTF32BE< CharType > rapidjson::UTF32LE< CharType >

Public 类型

enum  { supportUnicode = 1 }
typedef CharType Ch

Public 成员函数


静态 Public 成员函数

template<typename OutputStream >
static void Encode (OutputStream &os, unsigned codepoint)
template<typename OutputStream >
static void EncodeUnsafe (OutputStream &os, unsigned codepoint)
template<typename InputStream >
static bool Decode (InputStream &is, unsigned *codepoint)
template<typename InputStream , typename OutputStream >
static bool Validate (InputStream &is, OutputStream &os)


template<typename CharType = unsigned>
struct rapidjson::UTF32< CharType >

UTF-32 encoding.


CharTypeType for storing 32-bit UTF-32 data. Default is unsigned. C++11 may use char32_t instead.
implements Encoding concept
For in-memory access, no need to concern endianness. The code units and code points are represented by CPU's endianness. For streaming, use UTF32LE and UTF32BE, which handle endianness.