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:
Owen Taylor
2001-07-07 02:42:49 +00:00
committed by Owen Taylor
parent 33e1075b22
commit f1f680b68c
16 changed files with 129 additions and 54 deletions

View File

@@ -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