UTF-32 encoding.
More...
#include <encodings.h>
|
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) |
|
template<typename CharType = unsigned>
struct UTF32< CharType >
UTF-32 encoding.
http://en.wikipedia.org/wiki/UTF-32
- Template Parameters
-
CharType | Type 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 418 of file encodings.h.
◆ Ch
template<typename CharType = unsigned>
typedef CharType UTF32< CharType >::Ch |
◆ anonymous enum
template<typename CharType = unsigned>
◆ Decode()
template<typename CharType = unsigned>
template<typename InputStream >
static bool UTF32< CharType >::Decode |
( |
InputStream & |
is, |
|
|
unsigned * |
codepoint |
|
) |
| |
|
inlinestatic |
◆ Encode()
template<typename CharType = unsigned>
template<typename OutputStream >
static void UTF32< CharType >::Encode |
( |
OutputStream & |
os, |
|
|
unsigned |
codepoint |
|
) |
| |
|
inlinestatic |
◆ EncodeUnsafe()
template<typename CharType = unsigned>
template<typename OutputStream >
static void UTF32< CharType >::EncodeUnsafe |
( |
OutputStream & |
os, |
|
|
unsigned |
codepoint |
|
) |
| |
|
inlinestatic |
◆ RAPIDJSON_STATIC_ASSERT()
template<typename CharType = unsigned>
UTF32< CharType >::RAPIDJSON_STATIC_ASSERT |
( |
sizeof(Ch) >= |
4 | ) |
|
◆ Validate()
template<typename CharType = unsigned>
template<typename InputStream , typename OutputStream >
static bool UTF32< CharType >::Validate |
( |
InputStream & |
is, |
|
|
OutputStream & |
os |
|
) |
| |
|
inlinestatic |
The documentation for this struct was generated from the following file:
- /home/runner/work/cphot/cphot/include/rapidjson/encodings.h