MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / match_capture

Function match_capture

Source/Misc/lua/src/lua.c:14031–14039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14029
14030
14031static const char *match_capture (MatchState *ms, const char *s, int l) {
14032size_t len;
14033l = check_capture(ms, l);
14034len = ms->capture[l].len;
14035if ((size_t)(ms->src_end-s) >= len &&
14036memcmp(ms->capture[l].init, s, len) == 0)
14037return s+len;
14038else return NULL;
14039}
14040
14041
14042static const char *match (MatchState *ms, const char *s, const char *p) {

Callers 1

matchFunction · 0.85

Calls 1

check_captureFunction · 0.85

Tested by

no test coverage detected