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

UTF-32 encoding. More...

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

Collaboration diagram for UTF32< CharType >:

Public Types

enum  { supportUnicode = 1 }
typedef CharType Ch

Public Member Functions

 RAPIDJSON_STATIC_ASSERT (sizeof(Ch) >=4)

Static Public Member Functions

template<typename OutputStream>
static void Encode (OutputStream &os, unsigned codepoint)
template<typename OutputStream>
static void EncodeUnsafe (OutputStream &os, unsigned codepoint)
template<typename InputStream>
static bool Decode (InputStream &is, unsigned *codepoint)
template<typename InputStream, typename OutputStream>
static bool Validate (InputStream &is, OutputStream &os)

Detailed Description

template<typename CharType = unsigned>
struct UTF32< CharType >

UTF-32 encoding.

http://en.wikipedia.org/wiki/UTF-32

Template Parameters
CharTypeType for storing 32-bit UTF-32 data. Default is unsigned. C++11 may use char32_t instead.
Note
implements Encoding concept
For in-memory access, no need to concern endianness. The code units and code points are represented by CPU's endianness. For streaming, use UTF32LE and UTF32BE, which handle endianness.

Definition at line 419 of file encodings.h.

Member Typedef Documentation

◆ Ch

template<typename CharType = unsigned>
typedef CharType UTF32< CharType >::Ch

Definition at line 420 of file encodings.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename CharType = unsigned>
anonymous enum

Definition at line 423 of file encodings.h.

Member Function Documentation

◆ Decode()

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

Definition at line 440 of file encodings.h.

◆ Encode()

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

Definition at line 426 of file encodings.h.

◆ EncodeUnsafe()

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

Definition at line 433 of file encodings.h.

◆ Validate()

template<typename CharType = unsigned>
template<typename InputStream, typename OutputStream>
bool UTF32< CharType >::Validate ( InputStream & is,
OutputStream & os )
inlinestatic

Definition at line 448 of file encodings.h.


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