arsa
2.7
|
Enumerations | |
enum | EUTF_ENCODE { EUTFE_NONE = 0, EUTFE_UTF8, EUTFE_UTF16, EUTFE_UTF16_LE, EUTFE_UTF16_BE, EUTFE_UTF32, EUTFE_UTF32_LE, EUTFE_UTF32_BE } |
Unicode encoding type. More... | |
enum | EUTF_ENDIAN { EUTFEE_NATIVE = 0, EUTFEE_LITTLE, EUTFEE_BIG } |
Unicode endianness. More... | |
Functions | |
uchar32_t | toUTF32 (uchar16_t high, uchar16_t low) |
uchar16_t | swapEndian16 (const uchar16_t &c) |
uchar32_t | swapEndian32 (const uchar32_t &c) |
core::array< u8 > | getUnicodeBOM (EUTF_ENCODE mode) |
EUTF_ENCODE | determineUnicodeBOM (const char *data) |
Variables | |
const irr::u16 | UTF_REPLACEMENT_CHARACTER = 0xFFFD |
The unicode replacement character. Used to replace invalid characters. More... | |
const u16 | BOM = 0xFEFF |
The Unicode byte order mark. More... | |
const u8 | BOM_UTF8_LEN = 3 |
The size of the Unicode byte order mark in terms of the Unicode character size. More... | |
const u8 | BOM_UTF16_LEN = 1 |
const u8 | BOM_UTF32_LEN = 1 |
const u8 | BOM_ENCODE_UTF8 [3] = { 0xEF, 0xBB, 0xBF } |
Unicode byte order marks for file operations. More... | |
const u8 | BOM_ENCODE_UTF16_BE [2] = { 0xFE, 0xFF } |
const u8 | BOM_ENCODE_UTF16_LE [2] = { 0xFF, 0xFE } |
const u8 | BOM_ENCODE_UTF32_BE [4] = { 0x00, 0x00, 0xFE, 0xFF } |
const u8 | BOM_ENCODE_UTF32_LE [4] = { 0xFF, 0xFE, 0x00, 0x00 } |
const u8 | BOM_ENCODE_UTF8_LEN = 3 |
The size in bytes of the Unicode byte marks for file operations. More... | |
const u8 | BOM_ENCODE_UTF16_LEN = 2 |
const u8 | BOM_ENCODE_UTF32_LEN = 4 |
Unicode encoding type.
Enumerator | |
---|---|
EUTFE_NONE | |
EUTFE_UTF8 | |
EUTFE_UTF16 | |
EUTFE_UTF16_LE | |
EUTFE_UTF16_BE | |
EUTFE_UTF32 | |
EUTFE_UTF32_LE | |
EUTFE_UTF32_BE |
Definition at line 149 of file irrUString.h.
Unicode endianness.
Enumerator | |
---|---|
EUTFEE_NATIVE | |
EUTFEE_LITTLE | |
EUTFEE_BIG |
Definition at line 162 of file irrUString.h.
|
inline |
Detects if the given data stream starts with a unicode BOM.
data | The data stream to check. |
Definition at line 221 of file irrUString.h.
|
inline |
Returns the specified unicode byte order mark in a byte array. The byte order mark is the first few bytes in a text file that signifies its encoding.
mode | The Unicode encoding method that we want to get the byte order mark for. If EUTFE_UTF16 or EUTFE_UTF32 is passed, it uses the native system endianness. |
Definition at line 174 of file irrUString.h.
Swaps the endianness of a 16-bit value.
Definition at line 113 of file irrUString.h.
Swaps the endianness of a 32-bit value.
Definition at line 120 of file irrUString.h.
Convert a UTF-16 surrogate pair into a UTF-32 character.
high | The high value of the pair. |
low | The low value of the pair. |
Definition at line 103 of file irrUString.h.
The Unicode byte order mark.
Definition at line 129 of file irrUString.h.
Definition at line 138 of file irrUString.h.
Definition at line 139 of file irrUString.h.
Definition at line 145 of file irrUString.h.
Definition at line 140 of file irrUString.h.
Definition at line 141 of file irrUString.h.
Definition at line 146 of file irrUString.h.
Unicode byte order marks for file operations.
Definition at line 137 of file irrUString.h.
The size in bytes of the Unicode byte marks for file operations.
Definition at line 144 of file irrUString.h.
Definition at line 133 of file irrUString.h.
Definition at line 134 of file irrUString.h.
The size of the Unicode byte order mark in terms of the Unicode character size.
Definition at line 132 of file irrUString.h.
The unicode replacement character. Used to replace invalid characters.
Definition at line 97 of file irrUString.h.