Small optimization. (#348011, Nicolai Weibull)

2006-07-20  Matthias Clasen  <mclasen@redhat.com>

	* glib/guniprop.c (real_toupper, real_tolower): Small optimization.
	(#348011, Nicolai Weibull)
This commit is contained in:
Matthias Clasen 2006-07-20 19:17:50 +00:00 committed by Matthias Clasen
parent 9a0f54fe92
commit c639cfe436
3 changed files with 20 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2006-07-20 Matthias Clasen <mclasen@redhat.com>
* glib/guniprop.c (real_toupper, real_tolower): Small optimization.
(#348011, Nicolai Weibull)
2006-07-19 Behdad Esfahbod <behdad@gnome.org>
* glib/gunibreak.h:

View File

@ -1,3 +1,8 @@
2006-07-20 Matthias Clasen <mclasen@redhat.com>
* glib/guniprop.c (real_toupper, real_tolower): Small optimization.
(#348011, Nicolai Weibull)
2006-07-19 Behdad Esfahbod <behdad@gnome.org>
* glib/gunibreak.h:

View File

@ -320,8 +320,8 @@ g_unichar_istitle (gunichar c)
unsigned int i;
for (i = 0; i < G_N_ELEMENTS (title_table); ++i)
if (title_table[i][0] == c)
return 1;
return 0;
return TRUE;
return FALSE;
}
/**
@ -823,7 +823,10 @@ real_toupper (const gchar *str,
for (i = 0; i < G_N_ELEMENTS (title_table); ++i)
{
if (title_table[i][0] == c)
val = title_table[i][1];
{
val = title_table[i][1];
break;
}
}
}
@ -1007,7 +1010,10 @@ real_tolower (const gchar *str,
for (i = 0; i < G_N_ELEMENTS (title_table); ++i)
{
if (title_table[i][0] == c)
val = title_table[i][2];
{
val = title_table[i][2];
break;
}
}
}