mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +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:
@@ -54,7 +54,7 @@ int main (int argc, char **argv)
|
||||
|
||||
test = strings[1];
|
||||
|
||||
convert = g_utf8_strup (test);
|
||||
convert = g_utf8_strup (test, -1);
|
||||
if (strcmp (convert, strings[4]) != 0)
|
||||
{
|
||||
fprintf (stderr, "Failure: toupper(%s) == %s, should have been %s\n",
|
||||
@@ -63,7 +63,7 @@ int main (int argc, char **argv)
|
||||
}
|
||||
g_free (convert);
|
||||
|
||||
convert = g_utf8_strdown (test);
|
||||
convert = g_utf8_strdown (test, -1);
|
||||
if (strcmp (convert, strings[2]) != 0)
|
||||
{
|
||||
fprintf (stderr, "Failure: tolower(%s) == %s, should have been %s\n",
|
||||
@@ -98,7 +98,7 @@ int main (int argc, char **argv)
|
||||
|
||||
test = strings[0];
|
||||
|
||||
convert = g_utf8_casefold (test);
|
||||
convert = g_utf8_casefold (test, -1);
|
||||
if (strcmp (convert, strings[1]) != 0)
|
||||
{
|
||||
fprintf (stderr, "Failure: casefold(%s) == '%s', should have been '%s'\n",
|
||||
|
Reference in New Issue
Block a user