mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 01:18:53 +02:00
to match g_strcasecmp, check if it is lower/upper before converting to
Mon Jun 4 16:02:57 2001 Owen Taylor <otaylor@redhat.com> * gstrfuncs.c (g_strup/strdown): to match g_strcasecmp, check if it is lower/upper before converting to upper/lower [ not required by ISO... ] (#55682, Jon Trowbridge)
This commit is contained in:
@@ -974,7 +974,8 @@ g_strdown (gchar *string)
|
||||
|
||||
while (*s)
|
||||
{
|
||||
*s = tolower (*s);
|
||||
if (isupper (*s))
|
||||
*s = tolower (*s);
|
||||
s++;
|
||||
}
|
||||
|
||||
@@ -992,7 +993,8 @@ g_strup (gchar *string)
|
||||
|
||||
while (*s)
|
||||
{
|
||||
*s = toupper (*s);
|
||||
if (islower (*s))
|
||||
*s = toupper (*s);
|
||||
s++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user