rapidjson::UTF32< CharType > Struct Template Reference

UTF-32 encoding. More...

#include <rapidjson.h>

+ Inheritance diagram for rapidjson::UTF32< CharType >:

Public Types

typedef CharType Ch
 

Static Public Member Functions

static ChEncode (Ch *buffer, unsigned codepoint)
 

Detailed Description

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

UTF-32 encoding.

http://en.wikipedia.org/wiki/UTF-32

Template Parameters
ChType for storing 32-bit UTF-32 data. Default is unsigned. C++11 may use char32_t instead.

Member Typedef Documentation

◆ Ch

template<typename CharType = unsigned>
typedef CharType rapidjson::UTF32< CharType >::Ch

Member Function Documentation

◆ Encode()

template<typename CharType = unsigned>
static Ch* rapidjson::UTF32< CharType >::Encode ( Ch buffer,
unsigned  codepoint 
)
inlinestatic
425  {
426  RAPIDJSON_ASSERT(codepoint <= 0x10FFFF);
427  *buffer++ = codepoint;
428  return buffer;
429  }
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:105

References RAPIDJSON_ASSERT.


The documentation for this struct was generated from the following file: