| 519 | |
| 520 | |
| 521 | static const char *min_expand (MatchState *ms, const char *s, |
| 522 | const char *p, const char *ep) { |
| 523 | for (;;) { |
| 524 | const char *res = match(ms, s, ep+1); |
| 525 | if (res != NULL) |
| 526 | return res; |
| 527 | else if (singlematch(ms, s, p, ep)) |
| 528 | s++; /* try with one more repetition */ |
| 529 | else return NULL; |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | |
| 534 | static const char *start_capture (MatchState *ms, const char *s, |
no test coverage detected