liba 0.1.15
An algorithm library based on C/C++
|
Macros | |
#define | a_utf_len(str) |
Functions | |
unsigned int | a_utf_encode (void *str, uint32_t val) |
encode one unicode code point into UTF-8 | |
unsigned int | a_utf_decode (void const *str, uint32_t *val) |
decode one unicode code point from UTF-8 | |
size_t | a_utf_length (void const *str) |
length of a UTF-8 string terminated with a null character | |
#define a_utf_len | ( | str | ) |
unsigned int a_utf_decode | ( | void const * | str, |
uint32_t * | val ) |
decode one unicode code point from UTF-8
[in] | str | string terminated with a null character |
[in,out] | val | a pointer to a variable that stores unicode |
0 | null character or invalid |
unsigned int a_utf_encode | ( | void * | str, |
uint32_t | val ) |
encode one unicode code point into UTF-8
[in] | str | a buffer to store a UTF-8 character |
[in] | val | the unicode value to be encoded |
size_t a_utf_length | ( | void const * | str | ) |
length of a UTF-8 string terminated with a null character
[in] | str | string terminated with a null character |