| 559 | |
| 560 | |
| 561 | static const char *match_capture (MatchState *ms, const char *s, int l) { |
| 562 | size_t len; |
| 563 | l = check_capture(ms, l); |
| 564 | len = cast_sizet(ms->capture[l].len); |
| 565 | if ((size_t)(ms->src_end-s) >= len && |
| 566 | memcmp(ms->capture[l].init, s, len) == 0) |
| 567 | return s+len; |
| 568 | else return NULL; |
| 569 | } |
| 570 | |
| 571 | |
| 572 | static const char *match (MatchState *ms, const char *s, const char *p) { |
no test coverage detected