Lines Matching refs:second
92 static int casecompare(const char *first, const char *second) in casecompare() argument
94 while(*first && *second) { in casecompare()
95 if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second)) in casecompare()
99 second++; in casecompare()
105 return !*first == !*second; in casecompare()
109 int curl_strequal(const char *first, const char *second) in curl_strequal() argument
111 if(first && second) in curl_strequal()
113 return casecompare(first, second); in curl_strequal()
116 return (NULL == first && NULL == second); in curl_strequal()
119 static int ncasecompare(const char *first, const char *second, size_t max) in ncasecompare() argument
121 while(*first && *second && max) { in ncasecompare()
122 if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second)) in ncasecompare()
126 second++; in ncasecompare()
131 return Curl_raw_toupper(*first) == Curl_raw_toupper(*second); in ncasecompare()
135 int curl_strnequal(const char *first, const char *second, size_t max) in curl_strnequal() argument
137 if(first && second) in curl_strnequal()
139 return ncasecompare(first, second, max); in curl_strnequal()
142 return (NULL == first && NULL == second && max); in curl_strnequal()