Lines Matching defs:pattern
155 * Match a hostname against a wildcard pattern.
163 static int hostmatch(const char *hostname, const char *pattern)
168 pattern_wildcard = strchr(pattern, '*');
170 return Curl_raw_equal(pattern, hostname) ?
173 /* We require at least 2 dots in pattern to avoid too wide wildcard
176 pattern_label_end = strchr(pattern, '.');
179 Curl_raw_nequal(pattern, "xn--", 4)) {
183 return Curl_raw_equal(pattern, hostname) ?
193 of the pattern. */
194 if(hostname_label_end - hostname < pattern_label_end - pattern)
197 prefixlen = pattern_wildcard - pattern;
199 return Curl_raw_nequal(pattern, hostname, prefixlen) &&