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