mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
replace islower to g_ascii_islower
replace tolower to g_ascii_tolower
This commit is contained in:
parent
5be16e2a0b
commit
87a891a54c
@ -513,7 +513,7 @@ edit_init (WEdit *edit, int lines, int columns, const char *filename,
|
|||||||
option_whole_chars_search);
|
option_whole_chars_search);
|
||||||
|
|
||||||
for (i = 1; i <= sizeof (option_whole_chars_search_buf); i++) {
|
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;
|
option_whole_chars_search_buf[len++] = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1687,7 +1687,7 @@ my_type_of (int c)
|
|||||||
}
|
}
|
||||||
if (isupper (c))
|
if (isupper (c))
|
||||||
c = 'A';
|
c = 'A';
|
||||||
else if (islower (c))
|
else if (g_ascii_islower ((gchar) c))
|
||||||
c = 'a';
|
c = 'a';
|
||||||
else if (g_ascii_isalpha (c))
|
else if (g_ascii_isalpha (c))
|
||||||
c = 'a';
|
c = 'a';
|
||||||
|
@ -90,7 +90,7 @@ static unsigned char *edit_get_block (WEdit *edit, long start,
|
|||||||
|
|
||||||
static inline int my_lower_case (int c)
|
static inline int my_lower_case (int c)
|
||||||
{
|
{
|
||||||
return tolower(c & 0xFF);
|
return g_ascii_tolower ((gchar)c & 0xFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
|
Loading…
Reference in New Issue
Block a user