jansson/src/utf.h
Petri Lehtinen 902bcdaa5e Decode and check for correct UTF-8
All strings (decoded JSON text, the argument of json_string(), the key
argument of json_object_set()) are checked for valid UTF-8.
2009-07-13 23:38:01 +03:00

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