Add this function.

2000-09-10  Havoc Pennington  <hp@redhat.com>

	* gutf8.c (g_utf8_validate): Add this function.
This commit is contained in:
Havoc Pennington
2000-09-11 00:09:31 +00:00
committed by Havoc Pennington
parent 333f4c4325
commit 49c937fcbb
12 changed files with 198 additions and 0 deletions

View File

@@ -185,6 +185,14 @@ gchar * g_ucs4_to_utf8 (const gunichar *str,
gint g_unichar_to_utf8 (gunichar c,
char *outbuf);
/* Validate a UTF8 string, return TRUE if valid, put pointer to
* first invalid char in **end
*/
gboolean g_utf8_validate (const gchar *str,
gint len,
const gchar **end);
#ifdef __cplusplus
}
#endif