mirror of
https://github.com/curl/curl.git
synced 2026-08-03 11:10:27 +03:00
lib: drop two interim macros in favor of native libcurl API calls
Drop `strcasecompare` and `strncasecompare` in favor of libcurl API calls `curl_strequal` and `curl_strnequal` respectively. Also drop unnecessary `strcase.h` includes. Include `curl/curl.h` instead where it wasn't included before. Closes #17772
This commit is contained in:
parent
d553f7e9f0
commit
a3787f98ac
54 changed files with 223 additions and 260 deletions
|
|
@ -26,18 +26,6 @@
|
|||
|
||||
#include <curl/curl.h>
|
||||
|
||||
/*
|
||||
* Only "raw" case insensitive strings. This is meant to be locale independent
|
||||
* and only compare strings we know are safe for this.
|
||||
*
|
||||
* The function is capable of comparing a-z case insensitively.
|
||||
*
|
||||
* Result is 1 if text matches and 0 if not.
|
||||
*/
|
||||
|
||||
#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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue