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

Function match_capture

third-party/lua-5.5.0/src/lstrlib.c:561–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559
560
561static 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
572static 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