MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / push_captures

Function push_captures

src/Chain/libraries/glua/lstrlib.cpp:582–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580
581
582static int push_captures(MatchState *ms, const char *s, const char *e) {
583 int i;
584 int nlevels = (ms->level == 0 && s) ? 1 : ms->level;
585 luaL_checkstack(ms->L, nlevels, "too many captures");
586 for (i = 0; i < nlevels; i++)
587 push_onecapture(ms, i, s, e);
588 return nlevels; /* number of strings pushed */
589}
590
591
592/* check whether pattern has no special characters */

Callers 3

str_find_auxFunction · 0.85
gmatch_auxFunction · 0.85
add_valueFunction · 0.85

Calls 2

luaL_checkstackFunction · 0.85
push_onecaptureFunction · 0.85

Tested by

no test coverage detected