Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
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 RAPIDJSON_COPY()
 
#define RAPIDJSON_TRANS(mask)
 
#define RAPIDJSON_TAIL()
 
#define RAPIDJSON_COPY()
 
#define RAPIDJSON_TRANS(mask)
 
#define RAPIDJSON_TAIL()
 
#define RAPIDJSON_ENCODINGS_FUNC(x)
 

Enumerations

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

Functions

template<typename Stream >
void PutUnsafe (Stream &stream, typename Stream::Ch c)
 Write character to a stream, presuming buffer is reserved.
 

Macro Definition Documentation

◆ RAPIDJSON_COPY [1/2]

#define RAPIDJSON_COPY ( )
Value:
c = is.Take(); *codepoint = (*codepoint << 6) | (static_cast<unsigned char>(c) & 0x3Fu)

◆ RAPIDJSON_COPY [2/2]

#define RAPIDJSON_COPY ( )
Value:
os.Put(c = is.Take())
os_t os

◆ RAPIDJSON_ENCODINGS_FUNC

#define RAPIDJSON_ENCODINGS_FUNC ( x)
Value:
UTF-16 big endian encoding.
Definition encodings.h:375
UTF-16 little endian encoding.
Definition encodings.h:342
UTF-32 big endian encoding.
Definition encodings.h:496
UTF-32 little endian enocoding.
Definition encodings.h:457
UTF-8 encoding.
Definition encodings.h:96

Definition at line 620 of file encodings.h.

◆ RAPIDJSON_TAIL [1/2]

#define RAPIDJSON_TAIL ( )
Value:
#define RAPIDJSON_COPY()
#define RAPIDJSON_TRANS(mask)

◆ RAPIDJSON_TAIL [2/2]

#define RAPIDJSON_TAIL ( )

◆ RAPIDJSON_TRANS [1/2]

#define RAPIDJSON_TRANS ( mask)
Value:
result &= ((GetRange(static_cast<unsigned char>(c)) & mask) != 0)

◆ RAPIDJSON_TRANS [2/2]

#define RAPIDJSON_TRANS ( mask)
Value:
result &= ((GetRange(static_cast<unsigned char>(c)) & mask) != 0)

Enumeration Type Documentation

◆ UTFType

enum UTFType
Enumerator
kUTF8 

UTF-8.

kUTF16LE 

UTF-16 little endian.

kUTF16BE 

UTF-16 big endian.

kUTF32LE 

UTF-32 little endian.

kUTF32BE 

UTF-32 big endian.

Definition at line 603 of file encodings.h.

603 {
604 kUTF8 = 0,
605 kUTF16LE = 1,
606 kUTF16BE = 2,
607 kUTF32LE = 3,
608 kUTF32BE = 4
609};
@ kUTF32BE
UTF-32 big endian.
Definition encodings.h:608
@ kUTF16BE
UTF-16 big endian.
Definition encodings.h:606
@ kUTF8
UTF-8.
Definition encodings.h:604
@ kUTF32LE
UTF-32 little endian.
Definition encodings.h:607
@ kUTF16LE
UTF-16 little endian.
Definition encodings.h:605

Function Documentation

◆ PutUnsafe()

template<typename Stream >
void PutUnsafe ( Stream & stream,
typename Stream::Ch c )
inline

Definition at line 91 of file stream.h.

91 {
92 stream.Put(c);
93}
Here is the caller graph for this function: