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

Function push_captures

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

Source from the content-addressed store, hash-verified

564
565
566static int push_captures (MatchState *ms, const char *s, const char *e) {
567 int i;
568 int nlevels = (ms->level == 0 && s) ? 1 : ms->level;
569 luaL_checkstack(ms->L, nlevels, "too many captures");
570 for (i = 0; i < nlevels; i++)
571 push_onecapture(ms, i, s, e);
572 return nlevels; /* number of strings pushed */
573}
574
575
576/* check whether pattern has no special characters */

Callers 3

str_find_auxFunction · 0.70
gmatch_auxFunction · 0.70
add_valueFunction · 0.70

Calls 2

luaL_checkstackFunction · 0.70
push_onecaptureFunction · 0.70

Tested by

no test coverage detected