string: add string_is_utf8() helper

Ticket #27373.
This commit is contained in:
cypherpunks
2018-08-29 03:22:30 +00:00
parent 1c62adb65b
commit d32b08af6f
3 changed files with 140 additions and 0 deletions
+2
View File
@@ -52,4 +52,6 @@ const char *find_str_at_start_of_line(const char *haystack,
int string_is_C_identifier(const char *string);
int string_is_utf8(const char *str, size_t len);
#endif /* !defined(TOR_UTIL_STRING_H) */