MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / match_capture

Function match_capture

third-party/lua-5.2.4/src/lstrlib.c:399–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397
398
399static const char *match_capture (MatchState *ms, const char *s, int l) {
400 size_t len;
401 l = check_capture(ms, l);
402 len = ms->capture[l].len;
403 if ((size_t)(ms->src_end-s) >= len &&
404 memcmp(ms->capture[l].init, s, len) == 0)
405 return s+len;
406 else return NULL;
407}
408
409
410static const char *match (MatchState *ms, const char *s, const char *p) {

Callers 1

matchFunction · 0.70

Calls 1

check_captureFunction · 0.70

Tested by

no test coverage detected