numparam, use `isdigit_c()'
This commit is contained in:
parent
e88e75a8d4
commit
31ca73a6f0
|
|
@ -390,13 +390,6 @@ alfa(char c)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
|
||||||
num(char c)
|
|
||||||
{
|
|
||||||
return (c >= '0') && (c <= '9');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
alfanum(char c)
|
alfanum(char c)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1342,7 +1342,7 @@ getword(char *s, SPICE_DSTRINGPTR tstr_p, int after, int *pi)
|
||||||
|
|
||||||
spice_dstring_reinit(tstr_p);
|
spice_dstring_reinit(tstr_p);
|
||||||
|
|
||||||
while ((i <= ls) && (alfa(s[i - 1]) || num(s[i - 1]))) {
|
while ((i <= ls) && (alfa(s[i - 1]) || isdigit_c(s[i - 1]))) {
|
||||||
cadd(tstr_p, toupper_c(s[i - 1]));
|
cadd(tstr_p, toupper_c(s[i - 1]));
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue