openMSX
|
Namespaces | |
namespace | internal |
namespace | unchecked |
Classes | |
class | invalid_code_point |
class | invalid_utf16 |
class | invalid_utf8 |
class | iterator |
class | not_enough_room |
Functions | |
template<typename octet_iterator , typename output_iterator > | |
output_iterator | replace_invalid (octet_iterator start, octet_iterator end, output_iterator out, uint32_t replacement) |
template<typename octet_iterator , typename output_iterator > | |
output_iterator | replace_invalid (octet_iterator start, octet_iterator end, output_iterator out) |
template<typename octet_iterator > | |
octet_iterator | append (uint32_t cp, octet_iterator result) |
template<typename octet_iterator > | |
uint32_t | next (octet_iterator &it, octet_iterator end) |
template<typename octet_iterator > | |
uint32_t | peek_next (octet_iterator it, octet_iterator end) |
template<typename octet_iterator > | |
uint32_t | prior (octet_iterator &it, octet_iterator start) |
template<typename octet_iterator , typename distance_type > | |
void | advance (octet_iterator &it, distance_type n, octet_iterator end) |
template<typename octet_iterator > | |
auto | distance (octet_iterator first, octet_iterator last) |
template<typename u16bit_iterator , typename octet_iterator > | |
octet_iterator | utf16to8 (u16bit_iterator start, u16bit_iterator end, octet_iterator result) |
template<typename u16bit_iterator , typename octet_iterator > | |
u16bit_iterator | utf8to16 (octet_iterator start, octet_iterator end, u16bit_iterator result) |
template<typename octet_iterator , typename u32bit_iterator > | |
octet_iterator | utf32to8 (u32bit_iterator start, u32bit_iterator end, octet_iterator result) |
template<typename octet_iterator , typename u32bit_iterator > | |
u32bit_iterator | utf8to32 (octet_iterator start, octet_iterator end, u32bit_iterator result) |
template<typename octet_iterator > | |
constexpr octet_iterator | find_invalid (octet_iterator start, octet_iterator end) |
The library API - functions intended to be called by the users. | |
template<typename octet_iterator > | |
constexpr bool | is_valid (octet_iterator start, octet_iterator end) |
template<typename octet_iterator > | |
constexpr bool | is_bom (octet_iterator it) |
template<typename octet_iterator > | |
constexpr octet_iterator | sync_forward (octet_iterator it) |
template<typename octet_iterator > | |
constexpr octet_iterator | sync_backward (octet_iterator it) |
constexpr bool | is_pua (uint32_t cp) |
void utf8::advance | ( | octet_iterator & | it, |
distance_type | n, | ||
octet_iterator | end | ||
) |
Definition at line 189 of file utf8_checked.hh.
octet_iterator utf8::append | ( | uint32_t | cp, |
octet_iterator | result | ||
) |
Definition at line 118 of file utf8_checked.hh.
References utf8::internal::CODE_POINT_MAX, and utf8::internal::is_code_point_valid().
Referenced by replace_invalid(), utf16to8(), and utf32to8().
auto utf8::distance | ( | octet_iterator | first, |
octet_iterator | last | ||
) |
Definition at line 195 of file utf8_checked.hh.
References next().
|
constexpr |
The library API - functions intended to be called by the users.
Definition at line 212 of file utf8_core.hh.
References end(), utf8::internal::OK, and utf8::internal::validate_next().
Referenced by is_valid().
|
constexpr |
Definition at line 231 of file utf8_core.hh.
|
constexpr |
Definition at line 257 of file utf8_core.hh.
|
constexpr |
Definition at line 225 of file utf8_core.hh.
References end(), and find_invalid().
uint32_t utf8::next | ( | octet_iterator & | it, |
octet_iterator | end | ||
) |
Definition at line 148 of file utf8_checked.hh.
References end(), and utf8::internal::validate_next().
Referenced by advance(), distance(), utf8::iterator< octet_iterator >::operator*(), utf8::iterator< octet_iterator >::operator++(), utf8::iterator< octet_iterator >::operator++(), peek_next(), prior(), utf8to16(), and utf8to32().
uint32_t utf8::peek_next | ( | octet_iterator | it, |
octet_iterator | end | ||
) |
Definition at line 169 of file utf8_checked.hh.
uint32_t utf8::prior | ( | octet_iterator & | it, |
octet_iterator | start | ||
) |
Definition at line 175 of file utf8_checked.hh.
References end(), utf8::internal::is_trail(), and next().
Referenced by utf8::iterator< octet_iterator >::operator--(), and utf8::iterator< octet_iterator >::operator--().
|
inline |
Definition at line 111 of file utf8_checked.hh.
References end(), and replace_invalid().
output_iterator utf8::replace_invalid | ( | octet_iterator | start, |
octet_iterator | end, | ||
output_iterator | out, | ||
uint32_t | replacement | ||
) |
Definition at line 76 of file utf8_checked.hh.
References append(), end(), utf8::internal::is_trail(), and utf8::internal::validate_next().
Referenced by replace_invalid().
|
constexpr |
Definition at line 249 of file utf8_core.hh.
References utf8::internal::is_trail().
|
constexpr |
Definition at line 242 of file utf8_core.hh.
References utf8::internal::is_trail().
octet_iterator utf8::utf16to8 | ( | u16bit_iterator | start, |
u16bit_iterator | end, | ||
octet_iterator | result | ||
) |
Definition at line 206 of file utf8_checked.hh.
References append(), end(), utf8::internal::is_surrogate(), utf8::internal::SURROGATE_OFFSET, utf8::internal::TRAIL_SURROGATE_MAX, and utf8::internal::TRAIL_SURROGATE_MIN.
Referenced by openmsx::sock_error().
octet_iterator utf8::utf32to8 | ( | u32bit_iterator | start, |
u32bit_iterator | end, | ||
octet_iterator | result | ||
) |
Definition at line 245 of file utf8_checked.hh.
u16bit_iterator utf8::utf8to16 | ( | octet_iterator | start, |
octet_iterator | end, | ||
u16bit_iterator | result | ||
) |
Definition at line 229 of file utf8_checked.hh.
References end(), utf8::internal::LEAD_OFFSET, next(), and utf8::internal::TRAIL_SURROGATE_MIN.
u32bit_iterator utf8::utf8to32 | ( | octet_iterator | start, |
octet_iterator | end, | ||
u32bit_iterator | result | ||
) |
Definition at line 255 of file utf8_checked.hh.