| 423 | |
| 424 | |
| 425 | static const char *match_capture(MatchState *ms, const char *s, int l) { |
| 426 | size_t len; |
| 427 | l = check_capture(ms, l); |
| 428 | len = ms->capture[l].len; |
| 429 | if ((size_t)(ms->src_end - s) >= len && |
| 430 | memcmp(ms->capture[l].init, s, len) == 0) |
| 431 | return s + len; |
| 432 | else return nullptr; |
| 433 | } |
| 434 | |
| 435 | |
| 436 | static const char *match(MatchState *ms, const char *s, const char *p) { |
no test coverage detected