UTF-16 encoding.
Plus de détails...
#include <arcane/utils/internal/json/rapidjson/encodings.h>
|
enum | { supportUnicode = 1
} |
|
typedef CharType | Ch |
|
|
| RAPIDJSON_STATIC_ASSERT (sizeof(Ch) >=2) |
|
|
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 = wchar_t>
struct UTF16< CharType >
UTF-16 encoding.
http://en.wikipedia.org/wiki/UTF-16 http://tools.ietf.org/html/rfc2781
- Paramètres du template
-
CharType | Type for storing 16-bit UTF-16 data. Default is wchar_t. C++11 may use char16_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 UTF16LE and UTF16BE, which handle endianness.
Définition à la ligne 270 du fichier encodings.h.
◆ Ch
template<typename CharType = wchar_t>
typedef CharType UTF16< CharType >::Ch |
◆ anonymous enum
template<typename CharType = wchar_t>
◆ Decode()
template<typename CharType = wchar_t>
template<typename InputStream >
static bool UTF16< CharType >::Decode |
( |
InputStream & |
is, |
|
|
unsigned * |
codepoint |
|
) |
| |
|
inlinestatic |
◆ Encode()
template<typename CharType = wchar_t>
template<typename OutputStream >
static void UTF16< CharType >::Encode |
( |
OutputStream & |
os, |
|
|
unsigned |
codepoint |
|
) |
| |
|
inlinestatic |
◆ EncodeUnsafe()
template<typename CharType = wchar_t>
template<typename OutputStream >
static void UTF16< CharType >::EncodeUnsafe |
( |
OutputStream & |
os, |
|
|
unsigned |
codepoint |
|
) |
| |
|
inlinestatic |
◆ Validate()
template<typename CharType = wchar_t>
template<typename InputStream , typename OutputStream >
static bool UTF16< CharType >::Validate |
( |
InputStream & |
is, |
|
|
OutputStream & |
os |
|
) |
| |
|
inlinestatic |
La documentation de cette structure a été générée à partir du fichier suivant :