mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-19 16:37:52 +02:00
Add this function.
2000-09-10 Havoc Pennington <hp@redhat.com> * gutf8.c (g_utf8_validate): Add this function.
This commit is contained in:
committed by
Havoc Pennington
parent
333f4c4325
commit
49c937fcbb
@@ -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
|
||||
|
Reference in New Issue
Block a user