| 13991 | |
| 13992 | |
| 13993 | static const char *min_expand (MatchState *ms, const char *s, |
| 13994 | const char *p, const char *ep) { |
| 13995 | for (;;) { |
| 13996 | const char *res = match(ms, s, ep+1); |
| 13997 | if (res != NULL) |
| 13998 | return res; |
| 13999 | else if (s<ms->src_end && singlematch(uchar(*s), p, ep)) |
| 14000 | s++; /* try with one more repetition */ |
| 14001 | else return NULL; |
| 14002 | } |
| 14003 | } |
| 14004 | |
| 14005 | |
| 14006 | static const char *start_capture (MatchState *ms, const char *s, |
no test coverage detected