CYAML Internals
|
CYAML functions for handling utf8 text. More...
Go to the source code of this file.
Functions | |
unsigned | cyaml_utf8_get_codepoint (const uint8_t *s, unsigned *len) |
int | cyaml_utf8_casecmp (const void *const str1, const void *const str2) |
CYAML functions for handling utf8 text.
int cyaml_utf8_casecmp | ( | const void *const | str1, |
const void *const | str2 | ||
) |
Case insensitive comparason.
[in] | str1 | First string to be compared. |
[in] | str2 | Second string to be compared. |
unsigned cyaml_utf8_get_codepoint | ( | const uint8_t * | s, |
unsigned * | len | ||
) |
Get a codepoint from the input string.
Caller must provide the expected length given the first input byte.
If a multi-byte character contains an invalid continuation byte, the character length will be updated on exit to the number of bytes consumed, and the replacement character, U+FFFD will be returned.
[in] | s | String to read first codepoint from. |
[in,out] | len | Expected length of first character, updated on exit. |
0xfffd
if character is invalid.