openMSX
|
Enumerations | |
enum class | utf_error { OK , NOT_ENOUGH_ROOM , INVALID_LEAD , INCOMPLETE_SEQUENCE , OVERLONG_SEQUENCE , INVALID_CODE_POINT } |
Functions | |
constexpr bool | is_trail (uint8_t oc) |
constexpr bool | is_surrogate (uint32_t cp) |
constexpr bool | is_code_point_valid (uint32_t cp) |
constexpr unsigned | sequence_length (uint8_t lead) |
template<typename octet_iterator > | |
constexpr utf_error | validate_next (octet_iterator &it, octet_iterator end, uint32_t *code_point) |
template<typename octet_iterator > | |
constexpr utf_error | validate_next (octet_iterator &it, octet_iterator end) |
Variables | |
constexpr uint16_t | LEAD_SURROGATE_MIN = 0xd800u |
constexpr uint16_t | LEAD_SURROGATE_MAX = 0xdbffu |
constexpr uint16_t | TRAIL_SURROGATE_MIN = 0xdc00u |
constexpr uint16_t | TRAIL_SURROGATE_MAX = 0xdfffu |
constexpr uint16_t | LEAD_OFFSET = LEAD_SURROGATE_MIN - (0x10000 >> 10) |
constexpr uint32_t | SURROGATE_OFFSET = 0x10000u - (LEAD_SURROGATE_MIN << 10) - TRAIL_SURROGATE_MIN |
constexpr uint32_t | CODE_POINT_MAX = 0x0010ffffu |
|
strong |
Enumerator | |
---|---|
OK | |
NOT_ENOUGH_ROOM | |
INVALID_LEAD | |
INCOMPLETE_SEQUENCE | |
OVERLONG_SEQUENCE | |
INVALID_CODE_POINT |
Definition at line 90 of file utf8_core.hh.
|
constexpr |
Definition at line 69 of file utf8_core.hh.
References CODE_POINT_MAX, and is_surrogate().
Referenced by utf8::append(), and validate_next().
|
constexpr |
Definition at line 64 of file utf8_core.hh.
References LEAD_SURROGATE_MIN, and TRAIL_SURROGATE_MAX.
Referenced by is_code_point_valid(), utf8::utf16to8(), and utf8::unchecked::utf16to8().
|
constexpr |
Definition at line 59 of file utf8_core.hh.
Referenced by utf8::unchecked::prior(), utf8::prior(), utf8::replace_invalid(), utf8::sync_backward(), utf8::sync_forward(), and validate_next().
|
constexpr |
Definition at line 75 of file utf8_core.hh.
Referenced by utf8::unchecked::next(), utf8::unchecked::iterator< octet_iterator >::operator++(), utf8::unchecked::iterator< octet_iterator >::operator++(), and validate_next().
|
constexpr |
Definition at line 203 of file utf8_core.hh.
References end(), and validate_next().
|
constexpr |
Definition at line 100 of file utf8_core.hh.
References end(), INCOMPLETE_SEQUENCE, INVALID_CODE_POINT, INVALID_LEAD, is_code_point_valid(), is_trail(), NOT_ENOUGH_ROOM, OK, OVERLONG_SEQUENCE, repeat(), and sequence_length().
Referenced by utf8::find_invalid(), utf8::next(), utf8::replace_invalid(), and validate_next().
|
inlineconstexpr |
Definition at line 57 of file utf8_core.hh.
Referenced by utf8::append(), and is_code_point_valid().
|
inlineconstexpr |
Definition at line 53 of file utf8_core.hh.
Referenced by utf8::utf8to16(), and utf8::unchecked::utf8to16().
|
inlineconstexpr |
Definition at line 50 of file utf8_core.hh.
|
inlineconstexpr |
Definition at line 49 of file utf8_core.hh.
Referenced by is_surrogate().
|
inlineconstexpr |
Definition at line 54 of file utf8_core.hh.
Referenced by utf8::utf16to8(), and utf8::unchecked::utf16to8().
|
inlineconstexpr |
Definition at line 52 of file utf8_core.hh.
Referenced by is_surrogate(), and utf8::utf16to8().
|
inlineconstexpr |
Definition at line 51 of file utf8_core.hh.
Referenced by utf8::utf16to8(), utf8::utf8to16(), and utf8::unchecked::utf8to16().