Dynamically select encoding according to stream's runtime-specified UTF encoding type.
More...
#include <encodings.h>
|
template<typename OutputStream > |
static RAPIDJSON_FORCEINLINE void | Encode (OutputStream &os, unsigned codepoint) |
|
template<typename InputStream > |
static RAPIDJSON_FORCEINLINE bool | Decode (InputStream &is, unsigned *codepoint) |
|
template<typename InputStream , typename OutputStream > |
static RAPIDJSON_FORCEINLINE bool | Validate (InputStream &is, OutputStream &os) |
|
template<typename CharType>
struct AutoUTF< CharType >
Dynamically select encoding according to stream's runtime-specified UTF encoding type.
- Note
- This class can be used with AutoUTFInputtStream and AutoUTFOutputStream, which provides GetType().
template<typename CharType >
template<typename CharType >
Definition: encodings.h:553
template<typename CharType >
template<typename InputStream >
static RAPIDJSON_FORCEINLINE bool AutoUTF< CharType >::Decode |
( |
InputStream & |
is, |
|
|
unsigned * |
codepoint |
|
) |
| |
|
inlinestatic |
566 typedef bool (*DecodeFunc)(InputStream&,
unsigned*);
568 return (*f[is.GetType()])(is, codepoint);
#define RAPIDJSON_ENCODINGS_FUNC(x)
Definition: encodings.h:555
#define bool
Definition: CascPort.h:16
static RAPIDJSON_FORCEINLINE bool Decode(InputStream &is, unsigned *codepoint)
Definition: encodings.h:565
template<typename CharType >
template<typename OutputStream >
static RAPIDJSON_FORCEINLINE void AutoUTF< CharType >::Encode |
( |
OutputStream & |
os, |
|
|
unsigned |
codepoint |
|
) |
| |
|
inlinestatic |
559 typedef void (*EncodeFunc)(OutputStream&, unsigned);
561 (*f[os.GetType()])(os, codepoint);
#define RAPIDJSON_ENCODINGS_FUNC(x)
Definition: encodings.h:555
static RAPIDJSON_FORCEINLINE void Encode(OutputStream &os, unsigned codepoint)
Definition: encodings.h:558
template<typename CharType >
template<typename InputStream , typename OutputStream >
static RAPIDJSON_FORCEINLINE bool AutoUTF< CharType >::Validate |
( |
InputStream & |
is, |
|
|
OutputStream & |
os |
|
) |
| |
|
inlinestatic |
573 typedef bool (*ValidateFunc)(InputStream&, OutputStream&);
575 return (*f[is.GetType()])(is, os);
#define RAPIDJSON_ENCODINGS_FUNC(x)
Definition: encodings.h:555
#define bool
Definition: CascPort.h:16
static RAPIDJSON_FORCEINLINE bool Validate(InputStream &is, OutputStream &os)
Definition: encodings.h:572
The documentation for this struct was generated from the following file: