Enumerations | Functions | Variables
utf8::internal Namespace Reference

Enumerations

enum  utf_error {
  UTF8_OK, NOT_ENOUGH_ROOM, INVALID_LEAD, INCOMPLETE_SEQUENCE,
  OVERLONG_SEQUENCE, INVALID_CODE_POINT
}

Functions

template<typename octet_iterator >
utf_error get_sequence_1 (octet_iterator &it, octet_iterator end, uint32_t &code_point)
 get_sequence_x functions decode utf-8 sequences of the length x
template<typename octet_iterator >
utf_error get_sequence_2 (octet_iterator &it, octet_iterator end, uint32_t &code_point)
template<typename octet_iterator >
utf_error get_sequence_3 (octet_iterator &it, octet_iterator end, uint32_t &code_point)
template<typename octet_iterator >
utf_error get_sequence_4 (octet_iterator &it, octet_iterator end, uint32_t &code_point)
template<typename octet_iterator >
utf_error increase_safely (octet_iterator &it, octet_iterator end)
 Helper for get_sequence_x.
template<typename u32 >
bool is_code_point_valid (u32 cp)
template<typename u16 >
bool is_lead_surrogate (u16 cp)
template<typename octet_difference_type >
bool is_overlong_sequence (uint32_t cp, octet_difference_type length)
template<typename u16 >
bool is_surrogate (u16 cp)
template<typename octet_type >
bool is_trail (octet_type oc)
template<typename u16 >
bool is_trail_surrogate (u16 cp)
template<typename u16_type >
uint16_t mask16 (u16_type oc)
template<typename octet_type >
uint8_t mask8 (octet_type oc)
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 uint32_t CODE_POINT_MAX = 0x0010ffffu
const uint16_t LEAD_OFFSET = LEAD_SURROGATE_MIN - (0x10000 >> 10)
const uint16_t LEAD_SURROGATE_MAX = 0xdbffu
const uint16_t LEAD_SURROGATE_MIN = 0xd800u
const uint32_t SURROGATE_OFFSET = 0x10000u - (LEAD_SURROGATE_MIN << 10) - TRAIL_SURROGATE_MIN
const uint16_t TRAIL_SURROGATE_MAX = 0xdfffu
const uint16_t TRAIL_SURROGATE_MIN = 0xdc00u

Enumeration Type Documentation

Enumerator:
UTF8_OK 
NOT_ENOUGH_ROOM 
INVALID_LEAD 
INCOMPLETE_SEQUENCE 
OVERLONG_SEQUENCE 
INVALID_CODE_POINT 

Definition at line 134 of file core.h.


Function Documentation

template<typename octet_iterator >
utf_error utf8::internal::get_sequence_1 ( octet_iterator &  it,
octet_iterator  end,
uint32_t &  code_point 
)

get_sequence_x functions decode utf-8 sequences of the length x

Definition at line 153 of file core.h.

template<typename octet_iterator >
utf_error utf8::internal::get_sequence_2 ( octet_iterator &  it,
octet_iterator  end,
uint32_t &  code_point 
)

Definition at line 164 of file core.h.

template<typename octet_iterator >
utf_error utf8::internal::get_sequence_3 ( octet_iterator &  it,
octet_iterator  end,
uint32_t &  code_point 
)

Definition at line 179 of file core.h.

template<typename octet_iterator >
utf_error utf8::internal::get_sequence_4 ( octet_iterator &  it,
octet_iterator  end,
uint32_t &  code_point 
)

Definition at line 198 of file core.h.

template<typename octet_iterator >
utf_error utf8::internal::increase_safely ( octet_iterator &  it,
octet_iterator  end 
)

Helper for get_sequence_x.

Definition at line 138 of file core.h.

template<typename u32 >
bool utf8::internal::is_code_point_valid ( u32  cp) [inline]

Definition at line 93 of file core.h.

template<typename u16 >
bool utf8::internal::is_lead_surrogate ( u16  cp) [inline]

Definition at line 75 of file core.h.

template<typename octet_difference_type >
bool utf8::internal::is_overlong_sequence ( uint32_t  cp,
octet_difference_type  length 
) [inline]

Definition at line 116 of file core.h.

template<typename u16 >
bool utf8::internal::is_surrogate ( u16  cp) [inline]

Definition at line 87 of file core.h.

template<typename octet_type >
bool utf8::internal::is_trail ( octet_type  oc) [inline]

Definition at line 69 of file core.h.

template<typename u16 >
bool utf8::internal::is_trail_surrogate ( u16  cp) [inline]

Definition at line 81 of file core.h.

template<typename u16_type >
uint16_t utf8::internal::mask16 ( u16_type  oc) [inline]

Definition at line 64 of file core.h.

template<typename octet_type >
uint8_t utf8::internal::mask8 ( octet_type  oc) [inline]

Definition at line 59 of file core.h.

template<typename octet_iterator >
std::iterator_traits<octet_iterator>::difference_type utf8::internal::sequence_length ( octet_iterator  lead_it) [inline]

Definition at line 100 of file core.h.

template<typename octet_iterator >
utf_error utf8::internal::validate_next ( octet_iterator &  it,
octet_iterator  end,
uint32_t &  code_point 
)

Definition at line 223 of file core.h.

template<typename octet_iterator >
utf_error utf8::internal::validate_next ( octet_iterator &  it,
octet_iterator  end 
) [inline]

Definition at line 275 of file core.h.


Variable Documentation

Definition at line 56 of file core.h.

Definition at line 52 of file core.h.

Definition at line 49 of file core.h.

Definition at line 48 of file core.h.

const uint32_t utf8::internal::SURROGATE_OFFSET = 0x10000u - (LEAD_SURROGATE_MIN << 10) - TRAIL_SURROGATE_MIN

Definition at line 53 of file core.h.

Definition at line 51 of file core.h.

Definition at line 50 of file core.h.



denso_controller
Author(s): Ryohei Ueda
autogenerated on Thu Jun 6 2019 20:15:20