MCPcopy Create free account
hub / github.com/F-Stack/f-stack / match_capture

Function match_capture

freebsd/contrib/openzfs/module/lua/lstrlib.c:410–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408
409
410static const char *match_capture (MatchState *ms, const char *s, int l) {
411 size_t len;
412 l = check_capture(ms, l);
413 len = ms->capture[l].len;
414 if ((size_t)(ms->src_end-s) >= len &&
415 memcmp(ms->capture[l].init, s, len) == 0)
416 return s+len;
417 else return NULL;
418}
419
420
421static 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