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

Function start_capture

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

Source from the content-addressed store, hash-verified

383
384
385static const char *start_capture (MatchState *ms, const char *s,
386 const char *p, int what) {
387 const char *res;
388 int level = ms->level;
389 if (level >= LUA_MAXCAPTURES) luaL_error(ms->L, "too many captures");
390 ms->capture[level].init = s;
391 ms->capture[level].len = what;
392 ms->level = level+1;
393 if ((res=match(ms, s, p)) == NULL) /* match failed? */
394 ms->level--; /* undo capture */
395 return res;
396}
397
398
399static const char *end_capture (MatchState *ms, const char *s,

Callers 1

matchFunction · 0.70

Calls 2

luaL_errorFunction · 0.70
matchFunction · 0.70

Tested by

no test coverage detected