numparam, use `tolower_c()'

This commit is contained in:
rlar 2016-04-30 20:32:19 +02:00
parent 3b0a595ecf
commit 6d5b968464
2 changed files with 1 additions and 12 deletions

View File

@ -31,7 +31,6 @@ bool stne(const char *s, const char *t);
void stri(long n, SPICE_DSTRINGPTR s);
char upcase(char c);
char lowcase(char c);
bool alfa(char c);
bool num(char c);
bool alfanum(char c);

View File

@ -214,7 +214,7 @@ scopy_lower(SPICE_DSTRINGPTR dstr_p, const char *str) /* returns success flag */
spice_dstring_reinit(dstr_p);
low[1] = '\0';
for (ptr = str; ptr && *ptr; ptr++) {
low[0] = lowcase(*ptr);
low[0] = tolower_c(*ptr);
spice_dstring_append(dstr_p, low, 1);
}
}
@ -390,16 +390,6 @@ stne(const char *s, const char *t)
}
char
lowcase(char c)
{
if ((c >= 'A') && (c <= 'Z'))
return (char) (c - 'A' + 'a');
else
return c;
}
bool
alfa(char c)
{