Go to the source code of this file.
| int UTF8_validate |
( |
int |
len, |
|
|
const char * |
data |
|
) |
| |
Validate a length-delimited string has only UTF-8 characters
- Parameters
-
| len | the length of the string in "data" |
| data | the bytes to check for valid UTF-8 characters |
- Returns
- 1 (true) if the string has only UTF-8 characters, 0 (false) otherwise
Definition at line 129 of file utf-8.c.
| int UTF8_validateString |
( |
const char * |
string | ) |
|
Validate a null-terminated string has only UTF-8 characters
- Parameters
-
| string | the string to check for valid UTF-8 characters |
- Returns
- 1 (true) if the string has only UTF-8 characters, 0 (false) otherwise
Definition at line 156 of file utf-8.c.