| 359 | |
| 360 | |
| 361 | static const char *min_expand (MatchState *ms, const char *s, |
| 362 | const char *p, const char *ep) { |
| 363 | for (;;) { |
| 364 | const char *res = match(ms, s, ep+1); |
| 365 | if (res != NULL) |
| 366 | return res; |
| 367 | else if (singlematch(ms, s, p, ep)) |
| 368 | s++; /* try with one more repetition */ |
| 369 | else return NULL; |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | |
| 374 | static const char *start_capture (MatchState *ms, const char *s, |
no test coverage detected