Lines Matching refs:ep
268 static int singlematch (int c, const char *p, const char *ep) { in singlematch() argument
272 case '[': return matchbracketclass(c, p, ep-1); in singlematch()
302 const char *p, const char *ep) { in max_expand() argument
304 while ((s+i)<ms->src_end && singlematch(uchar(*(s+i)), p, ep)) in max_expand()
308 const char *res = match(ms, (s+i), ep+1); in max_expand()
317 const char *p, const char *ep) { in min_expand() argument
319 const char *res = match(ms, s, ep+1); in min_expand()
322 else if (s<ms->src_end && singlematch(uchar(*s), p, ep)) in min_expand()
385 const char *ep; char previous; in match() local
390 ep = classend(ms, p); /* points to what is next */ in match()
392 if (matchbracketclass(uchar(previous), p, ep-1) || in match()
393 !matchbracketclass(uchar(*s), p, ep-1)) return NULL; in match()
394 p=ep; goto init; /* else return match(ms, s, ep); */ in match()
415 const char *ep = classend(ms, p); /* points to what is next */ in match() local
416 int m = s<ms->src_end && singlematch(uchar(*s), p, ep); in match()
417 switch (*ep) { in match()
420 if (m && ((res=match(ms, s+1, ep+1)) != NULL)) in match()
422 p=ep+1; goto init; /* else return match(ms, s, ep+1); */ in match()
425 return max_expand(ms, s, p, ep); in match()
428 return (m ? max_expand(ms, s+1, p, ep) : NULL); in match()
431 return min_expand(ms, s, p, ep); in match()
435 s++; p=ep; goto init; /* else return match(ms, s+1, ep); */ in match()