mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 19:54:05 +02:00
gutf8: Add a g_utf8_validate_len() function
This is a variant of g_utf8_validate() which requires the length to be specified, thereby allowing string lengths up to G_MAXSIZE rather than just G_MAXSSIZE. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -847,6 +847,10 @@ GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_utf8_validate (const gchar *str,
|
||||
gssize max_len,
|
||||
const gchar **end);
|
||||
GLIB_AVAILABLE_IN_2_60
|
||||
gboolean g_utf8_validate_len (const gchar *str,
|
||||
gsize max_len,
|
||||
const gchar **end);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gchar *g_utf8_strup (const gchar *str,
|
||||
|
Reference in New Issue
Block a user