FIFE
|
Enumerations | |
enum | utf_error { OK, NOT_ENOUGH_ROOM, INVALID_LEAD, INCOMPLETE_SEQUENCE, OVERLONG_SEQUENCE, INVALID_CODE_POINT } |
Functions | |
template<typename octet_type > | |
uint8_t | mask8 (octet_type oc) |
template<typename u16_type > | |
uint16_t | mask16 (u16_type oc) |
template<typename octet_type > | |
bool | is_trail (octet_type oc) |
template<typename u16 > | |
bool | is_surrogate (u16 cp) |
template<typename u32 > | |
bool | is_code_point_valid (u32 cp) |
template<typename octet_iterator > | |
std::iterator_traits < octet_iterator > ::difference_type | sequence_length (octet_iterator lead_it) |
template<typename octet_iterator > | |
utf_error | validate_next (octet_iterator &it, octet_iterator end, uint32_t *code_point) |
template<typename octet_iterator > | |
utf_error | validate_next (octet_iterator &it, octet_iterator end) |
Variables | |
const uint16_t | LEAD_SURROGATE_MIN = 0xd800u |
const uint16_t | LEAD_SURROGATE_MAX = 0xdbffu |
const uint16_t | TRAIL_SURROGATE_MIN = 0xdc00u |
const uint16_t | TRAIL_SURROGATE_MAX = 0xdfffu |
const uint16_t | LEAD_OFFSET = LEAD_SURROGATE_MIN - (0x10000 >> 10) |
const uint32_t | SURROGATE_OFFSET = 0x10000u - (LEAD_SURROGATE_MIN << 10) - TRAIL_SURROGATE_MIN |
const uint32_t | CODE_POINT_MAX = 0x0010ffffu |
|
inline |
Definition at line 81 of file core.h.
References CODE_POINT_MAX, and is_surrogate().
Referenced by utf8::append(), and validate_next().
|
inline |
Definition at line 75 of file core.h.
References LEAD_SURROGATE_MIN, and TRAIL_SURROGATE_MAX.
Referenced by is_code_point_valid(), utf8::unchecked::utf16to8(), and utf8::utf16to8().
|
inline |
Definition at line 69 of file core.h.
References mask8().
Referenced by utf8::previous(), utf8::unchecked::prior(), utf8::prior(), utf8::replace_invalid(), and validate_next().
|
inline |
Definition at line 64 of file core.h.
Referenced by utf8::replace_invalid(), utf8::unchecked::utf16to8(), and utf8::utf16to8().
|
inline |
Definition at line 59 of file core.h.
Referenced by utf8::is_bom(), is_trail(), utf8::unchecked::next(), sequence_length(), and validate_next().
|
inline |
Definition at line 88 of file core.h.
References mask8().
Referenced by utf8::unchecked::next(), utf8::unchecked::iterator< octet_iterator >::operator++(), and validate_next().
utf_error utf8::internal::validate_next | ( | octet_iterator & | it, |
octet_iterator | end, | ||
uint32_t * | code_point | ||
) |
Definition at line 106 of file core.h.
References utf8::advance(), utf8::distance(), INCOMPLETE_SEQUENCE, INVALID_CODE_POINT, INVALID_LEAD, is_code_point_valid(), is_trail(), mask8(), NOT_ENOUGH_ROOM, OK, OVERLONG_SEQUENCE, and sequence_length().
Referenced by utf8::find_invalid(), utf8::next(), utf8::replace_invalid(), and validate_next().
|
inline |
Definition at line 217 of file core.h.
References validate_next().
const uint32_t utf8::internal::CODE_POINT_MAX = 0x0010ffffu |
Definition at line 56 of file core.h.
Referenced by utf8::append(), and is_code_point_valid().
const uint16_t utf8::internal::LEAD_OFFSET = LEAD_SURROGATE_MIN - (0x10000 >> 10) |
Definition at line 52 of file core.h.
Referenced by utf8::unchecked::utf8to16(), and utf8::utf8to16().
const uint16_t utf8::internal::LEAD_SURROGATE_MIN = 0xd800u |
Definition at line 48 of file core.h.
Referenced by is_surrogate().
const uint32_t utf8::internal::SURROGATE_OFFSET = 0x10000u - (LEAD_SURROGATE_MIN << 10) - TRAIL_SURROGATE_MIN |
Definition at line 53 of file core.h.
Referenced by utf8::unchecked::utf16to8(), and utf8::utf16to8().
const uint16_t utf8::internal::TRAIL_SURROGATE_MAX = 0xdfffu |
Definition at line 51 of file core.h.
Referenced by is_surrogate(), and utf8::utf16to8().
const uint16_t utf8::internal::TRAIL_SURROGATE_MIN = 0xdc00u |
Definition at line 50 of file core.h.
Referenced by utf8::utf16to8(), utf8::unchecked::utf8to16(), and utf8::utf8to16().