Lines Matching refs:pattern
575 typedef int (*equal_fn) (const unsigned char *pattern, size_t pattern_len,
584 const unsigned char *pattern = *p; in skip_prefix() local
596 while (pattern_len > subject_len && *pattern) { in skip_prefix()
598 *pattern == '.') in skip_prefix()
600 ++pattern; in skip_prefix()
606 *p = pattern; in skip_prefix()
612 static int equal_nocase(const unsigned char *pattern, size_t pattern_len, in equal_nocase() argument
616 skip_prefix(&pattern, &pattern_len, subject_len, flags); in equal_nocase()
620 unsigned char l = *pattern; in equal_nocase()
634 ++pattern; in equal_nocase()
642 static int equal_case(const unsigned char *pattern, size_t pattern_len, in equal_case() argument
646 skip_prefix(&pattern, &pattern_len, subject_len, flags); in equal_case()
649 return !memcmp(pattern, subject, pattern_len); in equal_case()
806 static int equal_wildcard(const unsigned char *pattern, size_t pattern_len, in equal_wildcard() argument
817 star = valid_star(pattern, pattern_len, flags); in equal_wildcard()
819 return equal_nocase(pattern, pattern_len, in equal_wildcard()
821 return wildcard_match(pattern, star - pattern, in equal_wildcard()
822 star + 1, (pattern + pattern_len) - star - 1, in equal_wildcard()