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

Function end_capture

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

Source from the content-addressed store, hash-verified

397
398
399static const char *end_capture (MatchState *ms, const char *s,
400 const char *p) {
401 int l = capture_to_close(ms);
402 const char *res;
403 ms->capture[l].len = s - ms->capture[l].init; /* close capture */
404 if ((res = match(ms, s, p)) == NULL) /* match failed? */
405 ms->capture[l].len = CAP_UNFINISHED; /* undo capture */
406 return res;
407}
408
409
410static const char *match_capture (MatchState *ms, const char *s, int l) {

Callers 1

matchFunction · 0.70

Calls 2

capture_to_closeFunction · 0.70
matchFunction · 0.70

Tested by

no test coverage detected