Lines Matching refs:pat
943 match(const Char *name, const Char *pat, const Char *patend) in match() argument
949 _DIAGASSERT(pat != NULL); in match()
952 while (pat < patend) { in match()
953 c = *pat++; in match()
956 while (pat < patend && (*pat & M_MASK) == M_ALL) in match()
957 pat++; /* eat consecutive '*' */ in match()
958 if (pat == patend) in match()
960 for (; !match(name, pat, patend); name++) in match()
972 if ((negate_range = ((*pat & M_MASK) == M_NOT)) != EOS) in match()
973 ++pat; in match()
974 while (((c = *pat++) & M_MASK) != M_END) in match()
975 if ((*pat & M_MASK) == M_RNG) { in match()
976 if (c <= k && k <= pat[1]) in match()
978 pat += 2; in match()