diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-10-31 12:49:46 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-11-01 17:01:26 +0100 |
commit | 3f039dfd6f0a1d806b94cc2d5548926182485b7e (patch) | |
tree | 35ba93da831cc90582661f6ed63b3710a1570410 /lib/strcase.h | |
parent | 7399fa5b05ce897277b8713c659c939d068570a4 (diff) | |
download | curl-3f039dfd6f0a1d806b94cc2d5548926182485b7e.tar.gz |
strcase: use curl_str(n)equal for case insensitive matches
No point in having two entry points for the same functions.
Also merged the *safe* function treatment into these so that they can
also be used when one or both pointers are NULL.
Closes #9837
Diffstat (limited to 'lib/strcase.h')
-rw-r--r-- | lib/strcase.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/strcase.h b/lib/strcase.h index 65a575385..192e0da09 100644 --- a/lib/strcase.h +++ b/lib/strcase.h @@ -35,12 +35,8 @@ * Result is 1 if text matches and 0 if not. */ -#define strcasecompare(a,b) Curl_strcasecompare(a,b) -#define strncasecompare(a,b,c) Curl_strncasecompare(a,b,c) - -int Curl_strcasecompare(const char *first, const char *second); -int Curl_safe_strcasecompare(const char *first, const char *second); -int Curl_strncasecompare(const char *first, const char *second, size_t max); +#define strcasecompare(a,b) curl_strequal(a,b) +#define strncasecompare(a,b,c) curl_strnequal(a,b,c) char Curl_raw_toupper(char in); char Curl_raw_tolower(char in); |