From 8dd95da35be27c28da9e0d082f3ce02d2200b82a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 6 Sep 2022 00:17:36 +0200 Subject: ctype: remove all use of , use our own versions Except in the test servers. Closes #9433 --- lib/strcase.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/strcase.c') diff --git a/lib/strcase.c b/lib/strcase.c index f93248520..7f49e7868 100644 --- a/lib/strcase.c +++ b/lib/strcase.c @@ -28,8 +28,6 @@ #include "strcase.h" -static char raw_tolower(char in); - /* Mapping table to go from lowercase to uppercase for plain ASCII.*/ static const unsigned char touppermap[256] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, @@ -79,7 +77,7 @@ char Curl_raw_toupper(char in) /* Portable, consistent tolower. Do not use tolower() because its behavior is altered by the current locale. */ -static char raw_tolower(char in) +char Curl_raw_tolower(char in) { return tolowermap[(unsigned char) in]; } @@ -165,7 +163,7 @@ void Curl_strntolower(char *dest, const char *src, size_t n) return; do { - *dest++ = raw_tolower(*src); + *dest++ = Curl_raw_tolower(*src); } while(*src++ && --n); } -- cgit v1.2.1