mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
Remove check for >= 0 for unsigned unichar.
This commit is contained in:
parent
685d8fe5b0
commit
5f35fbc57a
1 changed files with 3 additions and 3 deletions
|
|
@ -35,21 +35,21 @@ static unichar i_toupper(unichar c)
|
||||||
{
|
{
|
||||||
if (term_type == TERM_TYPE_UTF8)
|
if (term_type == TERM_TYPE_UTF8)
|
||||||
return g_unichar_toupper(c);
|
return g_unichar_toupper(c);
|
||||||
return (c >= 0 && c <= 255) ? toupper(c) : c;
|
return c <= 255 ? toupper(c) : c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unichar i_tolower(unichar c)
|
static unichar i_tolower(unichar c)
|
||||||
{
|
{
|
||||||
if (term_type == TERM_TYPE_UTF8)
|
if (term_type == TERM_TYPE_UTF8)
|
||||||
return g_unichar_tolower(c);
|
return g_unichar_tolower(c);
|
||||||
return (c >= 0 && c <= 255) ? tolower(c) : c;
|
return c <= 255 ? tolower(c) : c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int i_isalnum(unichar c)
|
static int i_isalnum(unichar c)
|
||||||
{
|
{
|
||||||
if (term_type == TERM_TYPE_UTF8)
|
if (term_type == TERM_TYPE_UTF8)
|
||||||
return (g_unichar_isalnum(c) || mk_wcwidth(c) == 0);
|
return (g_unichar_isalnum(c) || mk_wcwidth(c) == 0);
|
||||||
return (c >= 0 && c <= 255) ? isalnum(c) : 0;
|
return c <= 255 ? isalnum(c) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
GUI_ENTRY_REC *active_entry;
|
GUI_ENTRY_REC *active_entry;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue