CACAO
Data Structures | Typedefs | Enumerations | Functions
utf8 Namespace Reference

Data Structures

struct  VisitorBase
 

Typedefs

typedef utf_utils::SlashToDot
< char > 
SlashToDot
 
typedef utf_utils::DotToSlash
< char > 
DotToSlash
 

Enumerations

enum  ErrorAction { IGNORE_ERRORS, ABORT_ON_ERROR }
 

Functions

template<typename Iterator , typename Fn >
Fn::ReturnType transform (Iterator begin, Iterator end, Fn)
 
template<typename T , typename Fn >
Fn::ReturnType transform (T t, Fn fn)
 
uint16_t decode_char (const char *&)
 
bool is_ascii (uint8_t c)
 
template<typename Utf8Iterator >
bool decode (Utf8Iterator begin, Utf8Iterator end, uint16_t *dst)
 
template<typename T >
utf_utils::Range< SlashToDotslash_to_dot (T t)
 
template<typename It >
utf_utils::Range< SlashToDotslash_to_dot (It a, It b)
 
template<typename T >
utf_utils::Range< DotToSlashdot_to_slash (T t)
 
template<typename It >
utf_utils::Range< DotToSlashdot_to_slash (It a, It b)
 
long num_codepoints (const char *, size_t)
 
size_t num_bytes (const uint16_t *, size_t)
 
size_t compute_hash (const uint16_t *cs, size_t)
 

Typedef Documentation

Definition at line 211 of file utf_utils.hpp.

Definition at line 210 of file utf_utils.hpp.

Enumeration Type Documentation

Enumerator
IGNORE_ERRORS 
ABORT_ON_ERROR 

Definition at line 132 of file utf_utils.hpp.

Function Documentation

size_t utf8::compute_hash ( const uint16_t *  cs,
size_t  sz 
)

Definition at line 487 of file utf8.cpp.

template<typename Utf8Iterator >
bool utf8::decode ( Utf8Iterator  begin,
Utf8Iterator  end,
uint16_t *  dst 
)
inline
uint16_t utf8::decode_char ( const char *&  )
template<typename T >
utf_utils::Range<DotToSlash> utf8::dot_to_slash ( t)

Definition at line 226 of file utf_utils.hpp.

template<typename It >
utf_utils::Range<DotToSlash> utf8::dot_to_slash ( It  a,
It  b 
)

Definition at line 229 of file utf_utils.hpp.

bool utf8::is_ascii ( uint8_t  c)
inline

Definition at line 201 of file utf_utils.hpp.

size_t utf8::num_bytes ( const uint16_t *  cs,
size_t  sz 
)

Definition at line 463 of file utf8.cpp.

long utf8::num_codepoints ( const char *  cs,
size_t  sz 
)

Definition at line 440 of file utf8.cpp.

template<typename T >
utf_utils::Range<SlashToDot> utf8::slash_to_dot ( t)

Definition at line 217 of file utf_utils.hpp.

template<typename It >
utf_utils::Range<SlashToDot> utf8::slash_to_dot ( It  a,
It  b 
)

Definition at line 220 of file utf_utils.hpp.

template<typename Iterator , typename Fn >
Fn::ReturnType utf8::transform ( Iterator  begin,
Iterator  end,
Fn   
)
template<typename T , typename Fn >
Fn::ReturnType utf8::transform ( t,
Fn  fn 
)
inline

Definition at line 171 of file utf_utils.hpp.