squareball
0.2.0.43-8b14
A general-purpose library for C99
|
UTF-8 utilities. More...
Go to the source code of this file.
Functions | |
bool | sb_utf8_validate (const uint8_t *str, size_t len) |
bool | sb_utf8_validate_str (sb_string_t *str) |
size_t | sb_utf8_bom_length (const uint8_t *str, size_t len) |
UTF-8 utilities.
size_t sb_utf8_bom_length | ( | const uint8_t * | str, |
size_t | len | ||
) |
Function that returns the length of the UTF-8 BOM, if found in the string.
str | The string. |
len | Length of str . |
0
. bool sb_utf8_validate | ( | const uint8_t * | str, |
size_t | len | ||
) |
Function that checks if a string is UTF-8 encoded.
str | The string. |
len | Length of str . |
true
if the string is UTF-8 encoded. bool sb_utf8_validate_str | ( | sb_string_t * | str | ) |
Function that checks if a string object's content is UTF-8 encoded.
str | The string object. |
true
if the string is UTF-8 encoded.