mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-21 17:37:53 +02:00
Add length arguments to g_utf8_{strup,strdown,casefold,collate_key}.
Fri Jul 6 22:34:32 2001 Owen Taylor <otaylor@redhat.com> * glib/gunicode.h glib/gunidecomp.c glib/guniprop.c glib/gunicollate.c: Add length arguments to g_utf8_{strup,strdown,casefold,collate_key}. * glib/gdate.c: Fix for above.
This commit is contained in:
@@ -247,9 +247,12 @@ gboolean g_utf8_validate (const gchar *str,
|
||||
/* Validate a Unicode character */
|
||||
gboolean g_unichar_validate (gunichar ch);
|
||||
|
||||
gchar *g_utf8_strup (const gchar *str);
|
||||
gchar *g_utf8_strdown (const gchar *str);
|
||||
gchar *g_utf8_casefold (const gchar *str);
|
||||
gchar *g_utf8_strup (const gchar *str,
|
||||
gssize len);
|
||||
gchar *g_utf8_strdown (const gchar *str,
|
||||
gssize len);
|
||||
gchar *g_utf8_casefold (const gchar *str,
|
||||
gssize len);
|
||||
|
||||
typedef enum {
|
||||
G_NORMALIZE_DEFAULT,
|
||||
@@ -263,11 +266,13 @@ typedef enum {
|
||||
} GNormalizeMode;
|
||||
|
||||
gchar *g_utf8_normalize (const gchar *str,
|
||||
gssize len,
|
||||
GNormalizeMode mode);
|
||||
|
||||
gint g_utf8_collate (const gchar *str1,
|
||||
const gchar *str2);
|
||||
gchar *g_utf8_collate_key (const gchar *str);
|
||||
gchar *g_utf8_collate_key (const gchar *str,
|
||||
gssize len);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user