mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:53:37 +03:00
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
This commit is contained in:
parent
7399fa5b05
commit
3f039dfd6f
7 changed files with 36 additions and 47 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue