NGL
6.5
The NCCA Graphics Library
|
UTF-8 encoding. More...
#include <encodings.h>
Public Types | |
enum | { supportUnicode = 1 } |
typedef CharType | Ch |
Static Public Member Functions | |
template<typename OutputStream > | |
static void | Encode (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) |
static unsigned char | GetRange (unsigned char c) |
template<typename InputByteStream > | |
static CharType | TakeBOM (InputByteStream &is) |
template<typename InputByteStream > | |
static Ch | Take (InputByteStream &is) |
template<typename OutputByteStream > | |
static void | PutBOM (OutputByteStream &os) |
template<typename OutputByteStream > | |
static void | Put (OutputByteStream &os, Ch c) |
UTF-8 encoding.
http://en.wikipedia.org/wiki/UTF-8 http://tools.ietf.org/html/rfc3629
CharType | Code unit for storing 8-bit UTF-8 data. Default is char. |
Definition at line 96 of file encodings.h.
Definition at line 97 of file encodings.h.
anonymous enum |
Enumerator | |
---|---|
supportUnicode |
Definition at line 99 of file encodings.h.
|
inlinestatic |
Definition at line 124 of file encodings.h.
References COPY, UTF8< CharType >::GetRange(), TAIL, and TRANS.
|
inlinestatic |
Definition at line 102 of file encodings.h.
References RAPIDJSON_ASSERT.
|
inlinestatic |
|
inlinestatic |
Definition at line 222 of file encodings.h.
References RAPIDJSON_STATIC_ASSERT.
|
inlinestatic |
Definition at line 216 of file encodings.h.
References RAPIDJSON_STATIC_ASSERT.
|
inlinestatic |
Definition at line 210 of file encodings.h.
References RAPIDJSON_STATIC_ASSERT.
|
inlinestatic |
Definition at line 197 of file encodings.h.
References RAPIDJSON_STATIC_ASSERT, and UTF8< CharType >::Take().
|
inlinestatic |
Definition at line 153 of file encodings.h.
References COPY, UTF8< CharType >::GetRange(), TAIL, and TRANS.