902bcdaa5e
All strings (decoded JSON text, the argument of json_string(), the key argument of json_object_set()) are checked for valid UTF-8.
10 lines
177 B
C
10 lines
177 B
C
#ifndef UTF_H
|
|
#define UTF_H
|
|
|
|
int utf8_check_first(char byte);
|
|
int utf8_check_full(const char *buffer, int size);
|
|
|
|
int utf8_check_string(const char *string, int length);
|
|
|
|
#endif
|