openMSX
Namespaces | Classes | Functions | Variables
utf8 Namespace Reference

Namespaces

 internal
 
 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 >
std::iterator_traits
< octet_iterator >
::difference_type 
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 >
octet_iterator find_invalid (octet_iterator start, octet_iterator end)
 
template<typename octet_iterator >
bool is_valid (octet_iterator start, octet_iterator end)
 
template<typename octet_iterator >
bool is_bom (octet_iterator it)
 
template<typename octet_iterator >
octet_iterator sync_forward (octet_iterator it)
 
template<typename octet_iterator >
octet_iterator sync_backward (octet_iterator it)
 

Variables

const uint8_t bom [] = { 0xef, 0xbb, 0xbf }
 The library API - functions intended to be called by the users. More...
 

Function Documentation

template<typename octet_iterator , typename distance_type >
void utf8::advance ( octet_iterator &  it,
distance_type  n,
octet_iterator  end 
)
template<typename octet_iterator >
octet_iterator utf8::append ( uint32_t  cp,
octet_iterator  result 
)
template<typename octet_iterator >
std::iterator_traits<octet_iterator>::difference_type utf8::distance ( octet_iterator  first,
octet_iterator  last 
)

Definition at line 195 of file utf8_checked.hh.

References next().

Referenced by openmsx::CollectionSaver< TC >::operator()(), and utf8::internal::validate_next().

template<typename octet_iterator >
octet_iterator utf8::find_invalid ( octet_iterator  start,
octet_iterator  end 
)

Definition at line 213 of file utf8_core.hh.

References utf8::internal::OK, and utf8::internal::validate_next().

Referenced by is_valid().

template<typename octet_iterator >
bool utf8::is_bom ( octet_iterator  it)
inline

Definition at line 232 of file utf8_core.hh.

template<typename octet_iterator >
bool utf8::is_valid ( octet_iterator  start,
octet_iterator  end 
)
inline

Definition at line 226 of file utf8_core.hh.

References end(), and find_invalid().

template<typename octet_iterator >
uint32_t utf8::next ( octet_iterator &  it,
octet_iterator  end 
)
template<typename octet_iterator >
uint32_t utf8::peek_next ( octet_iterator  it,
octet_iterator  end 
)

Definition at line 166 of file utf8_checked.hh.

References next().

template<typename octet_iterator >
uint32_t utf8::prior ( octet_iterator &  it,
octet_iterator  start 
)

Definition at line 172 of file utf8_checked.hh.

References end(), utf8::internal::is_trail(), and next().

Referenced by utf8::iterator< octet_iterator >::operator--().

template<typename octet_iterator , typename output_iterator >
output_iterator utf8::replace_invalid ( octet_iterator  start,
octet_iterator  end,
output_iterator  out,
uint32_t  replacement 
)
template<typename octet_iterator , typename output_iterator >
output_iterator utf8::replace_invalid ( octet_iterator  start,
octet_iterator  end,
output_iterator  out 
)
inline

Definition at line 109 of file utf8_checked.hh.

References replace_invalid().

template<typename octet_iterator >
octet_iterator utf8::sync_backward ( octet_iterator  it)
inline

Definition at line 247 of file utf8_core.hh.

References utf8::internal::is_trail().

template<typename octet_iterator >
octet_iterator utf8::sync_forward ( octet_iterator  it)
inline

Definition at line 240 of file utf8_core.hh.

References utf8::internal::is_trail().

template<typename u16bit_iterator , typename octet_iterator >
octet_iterator utf8::utf16to8 ( u16bit_iterator  start,
u16bit_iterator  end,
octet_iterator  result 
)
template<typename octet_iterator , typename u32bit_iterator >
octet_iterator utf8::utf32to8 ( u32bit_iterator  start,
u32bit_iterator  end,
octet_iterator  result 
)

Definition at line 244 of file utf8_checked.hh.

References append().

template<typename u16bit_iterator , typename octet_iterator >
u16bit_iterator utf8::utf8to16 ( octet_iterator  start,
octet_iterator  end,
u16bit_iterator  result 
)
template<typename octet_iterator , typename u32bit_iterator >
u32bit_iterator utf8::utf8to32 ( octet_iterator  start,
octet_iterator  end,
u32bit_iterator  result 
)

Definition at line 254 of file utf8_checked.hh.

References next().

Variable Documentation

const uint8_t utf8::bom[] = { 0xef, 0xbb, 0xbf }

The library API - functions intended to be called by the users.

Definition at line 210 of file utf8_core.hh.