TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
encodings.h File Reference
#include "rapidjson.h"
+ Include dependency graph for encodings.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  UTF8< CharType >
 UTF-8 encoding. More...
 
struct  UTF16< CharType >
 UTF-16 encoding. More...
 
struct  UTF16LE< CharType >
 UTF-16 little endian encoding. More...
 
struct  UTF16BE< CharType >
 UTF-16 big endian encoding. More...
 
struct  UTF32< CharType >
 UTF-32 encoding. More...
 
struct  UTF32LE< CharType >
 UTF-32 little endian enocoding. More...
 
struct  UTF32BE< CharType >
 UTF-32 big endian encoding. More...
 
struct  ASCII< CharType >
 ASCII encoding. More...
 
struct  AutoUTF< CharType >
 Dynamically select encoding according to stream's runtime-specified UTF encoding type. More...
 
struct  Transcoder< SourceEncoding, TargetEncoding >
 Encoding conversion. More...
 
struct  Transcoder< Encoding, Encoding >
 Specialization of Transcoder with same source and target encoding. More...
 

Macros

#define COPY()   c = is.Take(); *codepoint = (*codepoint << 6) | ((unsigned char)c & 0x3Fu)
 
#define TRANS(mask)   result &= ((GetRange((unsigned char)c) & mask) != 0)
 
#define TAIL()   COPY(); TRANS(0x70)
 
#define COPY()   os.Put(c = is.Take())
 
#define TRANS(mask)   result &= ((GetRange((unsigned char)c) & mask) != 0)
 
#define TAIL()   COPY(); TRANS(0x70)
 
#define RAPIDJSON_ENCODINGS_FUNC(x)   UTF8<Ch>::x, UTF16LE<Ch>::x, UTF16BE<Ch>::x, UTF32LE<Ch>::x, UTF32BE<Ch>::x
 

Enumerations

enum  UTFType {
  kUTF8 = 0, kUTF16LE = 1, kUTF16BE = 2, kUTF32LE = 3,
  kUTF32BE = 4
}
 Runtime-specified UTF encoding type of a stream. More...
 

Macro Definition Documentation

#define COPY ( )    c = is.Take(); *codepoint = (*codepoint << 6) | ((unsigned char)c & 0x3Fu)
#define COPY ( )    os.Put(c = is.Take())
#define RAPIDJSON_ENCODINGS_FUNC (   x)    UTF8<Ch>::x, UTF16LE<Ch>::x, UTF16BE<Ch>::x, UTF32LE<Ch>::x, UTF32BE<Ch>::x
#define TAIL ( )    COPY(); TRANS(0x70)
#define TAIL ( )    COPY(); TRANS(0x70)
#define TRANS (   mask)    result &= ((GetRange((unsigned char)c) & mask) != 0)
#define TRANS (   mask)    result &= ((GetRange((unsigned char)c) & mask) != 0)

Enumeration Type Documentation

enum UTFType

Runtime-specified UTF encoding type of a stream.

Enumerator
kUTF8 

UTF-8.

kUTF16LE 

UTF-16 little endian.

kUTF16BE 

UTF-16 big endian.

kUTF32LE 

UTF-32 little endian.

kUTF32BE 

UTF-32 big endian.

538  {
539  kUTF8 = 0,
540  kUTF16LE = 1,
541  kUTF16BE = 2,
542  kUTF32LE = 3,
543  kUTF32BE = 4
544 };
UTF-32 big endian.
Definition: encodings.h:543
UTF-16 little endian.
Definition: encodings.h:540
UTF-8.
Definition: encodings.h:539
UTF-16 big endian.
Definition: encodings.h:541
UTF-32 little endian.
Definition: encodings.h:542