replace islower to g_ascii_islower

replace tolower to g_ascii_tolower
This commit is contained in:
Ilia Maslakov 2009-04-06 10:54:31 +00:00
parent 5be16e2a0b
commit 87a891a54c
2 changed files with 3 additions and 3 deletions

View File

@ -513,7 +513,7 @@ edit_init (WEdit *edit, int lines, int columns, const char *filename,
option_whole_chars_search);
for (i = 1; i <= sizeof (option_whole_chars_search_buf); i++) {
if (islower (i) && !strchr (option_whole_chars_search, i)) {
if (g_ascii_islower ((gchar) i) && !strchr (option_whole_chars_search, i)) {
option_whole_chars_search_buf[len++] = i;
}
}
@ -1687,7 +1687,7 @@ my_type_of (int c)
}
if (isupper (c))
c = 'A';
else if (islower (c))
else if (g_ascii_islower ((gchar) c))
c = 'a';
else if (g_ascii_isalpha (c))
c = 'a';

View File

@ -90,7 +90,7 @@ static unsigned char *edit_get_block (WEdit *edit, long start,
static inline int my_lower_case (int c)
{
return tolower(c & 0xFF);
return g_ascii_tolower ((gchar)c & 0xFF);
}
static const char *