1
1

replace islower to g_ascii_islower

replace tolower to g_ascii_tolower
Этот коммит содержится в:
Ilia Maslakov 2009-04-06 10:54:31 +00:00
родитель 5be16e2a0b
Коммит 87a891a54c
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

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

Просмотреть файл

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