mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:03:39 +03:00
ctype: remove all use of <ctype.h>, use our own versions
Except in the test servers. Closes #9433
This commit is contained in:
parent
7b66050eae
commit
8dd95da35b
9 changed files with 13 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue