ctype: remove all use of <ctype.h>, use our own versions

Except in the test servers.

Closes #9433
This commit is contained in:
Daniel Stenberg 2022-09-06 00:17:36 +02:00
parent 7b66050eae
commit 8dd95da35b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
9 changed files with 13 additions and 15 deletions

View file

@ -260,7 +260,7 @@ bool Curl_is_absolute_url(const char *url, char *buf, size_t buflen)
if(buf) {
buf[i] = 0;
while(i--) {
buf[i] = (char)TOLOWER(url[i]);
buf[i] = Curl_raw_tolower(url[i]);
}
}
return TRUE;
@ -1664,8 +1664,8 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
/* make sure percent encoded are lower case */
if((*p == '%') && ISXDIGIT(p[1]) && ISXDIGIT(p[2]) &&
(ISUPPER(p[1]) || ISUPPER(p[2]))) {
p[1] = (char)TOLOWER(p[1]);
p[2] = (char)TOLOWER(p[2]);
p[1] = Curl_raw_tolower(p[1]);
p[2] = Curl_raw_tolower(p[2]);
p += 3;
}
else