Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
AutoUTF< CharType > Struct Template Reference

Dynamically select encoding according to stream's runtime-specified UTF encoding type. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/common/arccore/common/internal/json/rapidjson/encodings.h>

Collaboration diagram for AutoUTF< CharType >:

Public Types

enum  { supportUnicode = 1 }
typedef CharType Ch

Static Public Member Functions

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)

Detailed Description

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().

Definition at line 616 of file encodings.h.

Member Typedef Documentation

◆ Ch

template<typename CharType>
typedef CharType AutoUTF< CharType >::Ch

Definition at line 617 of file encodings.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename CharType>
anonymous enum

Definition at line 619 of file encodings.h.

Member Function Documentation

◆ Decode()

template<typename CharType>
template<typename InputStream>
RAPIDJSON_FORCEINLINE bool AutoUTF< CharType >::Decode ( InputStream & is,
unsigned * codepoint )
inlinestatic

Definition at line 638 of file encodings.h.

◆ Encode()

template<typename CharType>
template<typename OutputStream>
RAPIDJSON_FORCEINLINE void AutoUTF< CharType >::Encode ( OutputStream & os,
unsigned codepoint )
inlinestatic

Definition at line 624 of file encodings.h.

◆ EncodeUnsafe()

template<typename CharType>
template<typename OutputStream>
RAPIDJSON_FORCEINLINE void AutoUTF< CharType >::EncodeUnsafe ( OutputStream & os,
unsigned codepoint )
inlinestatic

Definition at line 631 of file encodings.h.

◆ Validate()

template<typename CharType>
template<typename InputStream, typename OutputStream>
RAPIDJSON_FORCEINLINE bool AutoUTF< CharType >::Validate ( InputStream & is,
OutputStream & os )
inlinestatic

Definition at line 645 of file encodings.h.


The documentation for this struct was generated from the following file: