rapidjson
A fast JSON parser/generator for C++ with both SAX/DOM style API
 All Classes Functions Variables Typedefs Pages
rapidjson::Encoding Class Reference

Concept for encoding of Unicode characters. More...

#include <rapidjson.h>

Inheritance diagram for rapidjson::Encoding:
rapidjson::UTF16< CharType > rapidjson::UTF32< CharType > rapidjson::UTF8< CharType >

Detailed Description

Concept for encoding of Unicode characters.

concept Encoding {
typename Ch; //! Type of character.
//! \brief Encode a Unicode codepoint to a buffer.
//! \param buffer pointer to destination buffer to store the result. It should have sufficient size of encoding one character.
//! \param codepoint An unicode codepoint, ranging from 0x0 to 0x10FFFF inclusively.
//! \returns the pointer to the next character after the encoded data.
static Ch* Encode(Ch *buffer, unsigned codepoint);
};

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