|
|
@ -160,8 +160,8 @@ int |
|
|
cieq(const char *p, const char *s) |
|
|
cieq(const char *p, const char *s) |
|
|
{ |
|
|
{ |
|
|
while (*p) { |
|
|
while (*p) { |
|
|
if ((isupper_c(*p) ? tolower(*p) : *p) != |
|
|
|
|
|
(isupper_c(*s) ? tolower(*s) : *s)) |
|
|
|
|
|
|
|
|
if ((isupper_c(*p) ? tolower_c(*p) : *p) != |
|
|
|
|
|
(isupper_c(*s) ? tolower_c(*s) : *s)) |
|
|
return(FALSE); |
|
|
return(FALSE); |
|
|
p++; |
|
|
p++; |
|
|
s++; |
|
|
s++; |
|
|
@ -175,8 +175,8 @@ int |
|
|
ciprefix(const char *p, const char *s) |
|
|
ciprefix(const char *p, const char *s) |
|
|
{ |
|
|
{ |
|
|
while (*p) { |
|
|
while (*p) { |
|
|
if ((isupper_c(*p) ? tolower(*p) : *p) != |
|
|
|
|
|
(isupper_c(*s) ? tolower(*s) : *s)) |
|
|
|
|
|
|
|
|
if ((isupper_c(*p) ? tolower_c(*p) : *p) != |
|
|
|
|
|
(isupper_c(*s) ? tolower_c(*s) : *s)) |
|
|
return(FALSE); |
|
|
return(FALSE); |
|
|
p++; |
|
|
p++; |
|
|
s++; |
|
|
s++; |
|
|
@ -190,7 +190,7 @@ strtolower(char *str) |
|
|
if (str) |
|
|
if (str) |
|
|
while (*str) { |
|
|
while (*str) { |
|
|
if(isupper_c(*str)) |
|
|
if(isupper_c(*str)) |
|
|
*str = (char) tolower(*str); |
|
|
|
|
|
|
|
|
*str = tolower_c(*str); |
|
|
str++; |
|
|
str++; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -201,7 +201,7 @@ strtoupper(char *str) |
|
|
if (str) |
|
|
if (str) |
|
|
while (*str) { |
|
|
while (*str) { |
|
|
if(islower_c(*str)) |
|
|
if(islower_c(*str)) |
|
|
*str = (char) toupper(*str); |
|
|
|
|
|
|
|
|
*str = toupper_c(*str); |
|
|
str++; |
|
|
str++; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -228,7 +228,7 @@ register int n) |
|
|
if (!p || !s) return( 0 ); |
|
|
if (!p || !s) return( 0 ); |
|
|
|
|
|
|
|
|
while (*p) { |
|
|
while (*p) { |
|
|
if ((isupper_c(*p) ? tolower(*p) : *p) != (isupper_c(*s) ? tolower(*s) : *s)) |
|
|
|
|
|
|
|
|
if ((isupper_c(*p) ? tolower_c(*p) : *p) != (isupper_c(*s) ? tolower_c(*s) : *s)) |
|
|
return( 0 ); |
|
|
return( 0 ); |
|
|
p++; |
|
|
p++; |
|
|
s++; |
|
|
s++; |
|
|
@ -255,7 +255,7 @@ register char *p, register char *s) |
|
|
if (!p || !s) return( 0 ); |
|
|
if (!p || !s) return( 0 ); |
|
|
|
|
|
|
|
|
while (*p) { |
|
|
while (*p) { |
|
|
if ((isupper_c(*p) ? tolower(*p) : *p) != (isupper_c(*s) ? tolower(*s) : *s)) |
|
|
|
|
|
|
|
|
if ((isupper_c(*p) ? tolower_c(*p) : *p) != (isupper_c(*s) ? tolower_c(*s) : *s)) |
|
|
return( n ); |
|
|
return( n ); |
|
|
p++; |
|
|
p++; |
|
|
s++; |
|
|
s++; |
|
|
|