Lines Matching refs:pat
1094 match(wcat_t *name, wcat_t *pat, wcat_t *patend) in match() argument
1102 while (pat < patend) { in match()
1103 c = *pat++; in match()
1112 while (pat < patend && pat->w_at == M_QUOTE && in match()
1113 pat->w_wc == M_ALL) in match()
1114 pat++; /* eat consecutive '*' */ in match()
1115 if (pat == patend) in match()
1120 nextp = pat - 1; in match()
1142 if ((negate_range = (pat->w_at == M_QUOTE && in match()
1143 pat->w_wc == M_NOT)) != 0) in match()
1144 ++pat; in match()
1145 while (((c = *pat++).w_at != M_QUOTE) || in match()
1150 cc.w_at = pat->w_at; in match()
1151 cc.w_wc = pat->w_wc; in match()
1154 ++pat; in match()
1156 if (pat->w_at == M_QUOTE && in match()
1157 pat->w_wc == M_RNG) { in match()
1159 k.w_wc <= pat[1].w_wc) in match()
1161 pat += 2; in match()
1180 pat = nextp; in match()