Lines Matching refs:ep
340 const char *ep) { in singlematch() argument
348 case '[': return matchbracketclass(c, p, ep-1); in singlematch()
377 const char *p, const char *ep) { in max_expand() argument
379 while (singlematch(ms, s + i, p, ep)) in max_expand()
383 const char *res = match(ms, (s+i), ep+1); in max_expand()
392 const char *p, const char *ep) { in min_expand() argument
394 const char *res = match(ms, s, ep+1); in min_expand()
397 else if (singlematch(ms, s, p, ep)) in min_expand()
473 const char *ep; char previous; in match() local
478 ep = classend(ms, p); /* points to what is next */ in match()
480 if (!matchbracketclass(uchar(previous), p, ep - 1) && in match()
481 matchbracketclass(uchar(*s), p, ep - 1)) { in match()
482 p = ep; goto init; /* return match(ms, s, ep); */ in match()
501 const char *ep = classend(ms, p); /* points to optional suffix */ in match() local
503 if (!singlematch(ms, s, p, ep)) { in match()
504 if (*ep == '*' || *ep == '?' || *ep == '-') { /* accept empty? */ in match()
505 p = ep + 1; goto init; /* return match(ms, s, ep + 1); */ in match()
511 switch (*ep) { /* handle optional suffix */ in match()
514 if ((res = match(ms, s + 1, ep + 1)) != NULL) in match()
517 p = ep + 1; goto init; /* else return match(ms, s, ep + 1); */ in match()
525 s = max_expand(ms, s, p, ep); in match()
528 s = min_expand(ms, s, p, ep); in match()
531 s++; p = ep; goto init; /* return match(ms, s + 1, ep); */ in match()