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 OutputStream > |
static RAPIDJSON_FORCEINLINE void | EncodeUnsafe (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 >
- Note
- This class can be used with AutoUTFInputtStream and AutoUTFOutputStream, which provides GetType().
Definition at line 615 of file encodings.h.
◆ Ch
template<typename CharType >
◆ anonymous enum
template<typename CharType >
◆ Decode()
template<typename CharType >
template<typename InputStream >
static RAPIDJSON_FORCEINLINE bool AutoUTF< CharType >::Decode |
( |
InputStream & | is, |
|
|
unsigned * | codepoint ) |
|
inlinestatic |
Definition at line 637 of file encodings.h.
637 {
638 typedef bool (*DecodeFunc)(InputStream&, unsigned*);
640 return (*
f[is.GetType()])(is, codepoint);
641 }
#define RAPIDJSON_ENCODINGS_FUNC(x)
static RAPIDJSON_FORCEINLINE bool Decode(InputStream &is, unsigned *codepoint)
◆ Encode()
template<typename CharType >
template<typename OutputStream >
static RAPIDJSON_FORCEINLINE void AutoUTF< CharType >::Encode |
( |
OutputStream & | os, |
|
|
unsigned | codepoint ) |
|
inlinestatic |
Definition at line 623 of file encodings.h.
623 {
624 typedef void (*EncodeFunc)(OutputStream&, unsigned);
626 (*
f[
os.GetType()])(
os, codepoint);
627 }
static RAPIDJSON_FORCEINLINE void Encode(OutputStream &os, unsigned codepoint)
◆ EncodeUnsafe()
template<typename CharType >
template<typename OutputStream >
static RAPIDJSON_FORCEINLINE void AutoUTF< CharType >::EncodeUnsafe |
( |
OutputStream & | os, |
|
|
unsigned | codepoint ) |
|
inlinestatic |
Definition at line 630 of file encodings.h.
630 {
631 typedef void (*EncodeFunc)(OutputStream&, unsigned);
633 (*
f[
os.GetType()])(
os, codepoint);
634 }
static RAPIDJSON_FORCEINLINE void EncodeUnsafe(OutputStream &os, unsigned codepoint)
◆ Validate()
template<typename CharType >
template<typename InputStream , typename OutputStream >
static RAPIDJSON_FORCEINLINE bool AutoUTF< CharType >::Validate |
( |
InputStream & | is, |
|
|
OutputStream & | os ) |
|
inlinestatic |
Definition at line 644 of file encodings.h.
644 {
645 typedef bool (*ValidateFunc)(InputStream&, OutputStream&);
647 return (*
f[is.GetType()])(is,
os);
648 }
static RAPIDJSON_FORCEINLINE bool Validate(InputStream &is, OutputStream &os)
The documentation for this struct was generated from the following file:
- libraries/fc/include/fc/crypto/webauthn_json/include/rapidjson/encodings.h