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