Lines Matching refs:pattern_len
575 typedef int (*equal_fn) (const unsigned char *pattern, size_t pattern_len,
585 size_t pattern_len = *plen; in skip_prefix() local
596 while (pattern_len > subject_len && *pattern) { in skip_prefix()
601 --pattern_len; in skip_prefix()
605 if (pattern_len == subject_len) { in skip_prefix()
607 *plen = pattern_len; 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()
617 if (pattern_len != subject_len) in equal_nocase()
619 while (pattern_len != 0) { in equal_nocase()
636 --pattern_len; 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()
647 if (pattern_len != subject_len) 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()
822 star + 1, (pattern + pattern_len) - star - 1, in equal_wildcard()