char *p = cell;
while (*p)
{
- if (c_iscntrl (to_uchar (*p)))
+ if (c_iscntrl (*p))
*p = '?';
p++;
}
*keyword = nullptr;
*arg = nullptr;
- for (p = line; c_isspace (to_uchar (*p)); ++p)
+ for (p = line; c_isspace (*p); ++p)
continue;
/* Ignore blank lines and shell-style comments. */
keyword_start = p;
- while (!c_isspace (to_uchar (*p)) && *p != '\0')
+ while (!c_isspace (*p) && *p != '\0')
{
++p;
}
{
++p;
}
- while (c_isspace (to_uchar (*p)));
+ while (c_isspace (*p));
if (*p == '\0' || *p == '#')
return;
while (*p != '\0' && *p != '#')
++p;
- for (--p; c_isspace (to_uchar (*p)); --p)
+ for (--p; c_isspace (*p); --p)
continue;
++p;
{
/* A hexadecimal \xhh escape sequence must have 1 or 2 hex. digits. */
for (esc_length = 0, ++p;
- esc_length < 2 && c_isxdigit (to_uchar (*p));
+ esc_length < 2 && c_isxdigit (*p);
++esc_length, ++p)
esc_value = esc_value * 16 + fromhex (*p);
if (esc_length == 0)
esc_length > 0;
--esc_length, ++p)
{
- if (! c_isxdigit (to_uchar (*p)))
+ if (! c_isxdigit (*p))
error (EXIT_FAILURE, 0, _("missing hexadecimal number in escape"));
uni_value = uni_value * 16 + fromhex (*p);
}
case 'x': /* \xhhh escape, 3 chars maximum */
value = 0;
for (length = 0, string++;
- length < 3 && c_isxdigit (to_uchar (*string));
+ length < 3 && c_isxdigit (*string);
length++, string++)
value = value * 16 + HEXTOBIN (*string);
if (length == 0)
putchar (esc_value);
--b;
}
- else if (*b == 'x' && c_isxdigit (to_uchar (b[1])))
+ else if (*b == 'x' && c_isxdigit (b[1]))
{
int esc_value = fromhex (b[1]); /* Value of \xhh escape. */
/* A hexadecimal \xhh escape sequence must have
1 or 2 hex. digits. */
++b;
- if (c_isxdigit (to_uchar (b[1])))
+ if (c_isxdigit (b[1]))
{
++b;
esc_value = esc_value * 16 + fromhex (*b);
return false;
for (size_t i = idx + 1; i < es->len; i++)
- if (!ISDIGIT (to_uchar (es->s[i])) || es->escaped[i])
+ if (!ISDIGIT (es->s[i]) || es->escaped[i])
return es_match (es, i, ']');
return false;
}