MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / push_captures

Function push_captures

extlibs/lua/src/lstrlib.c:732–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730
731
732static int push_captures (MatchState *ms, const char *s, const char *e) {
733 int i;
734 int nlevels = (ms->level == 0 && s) ? 1 : ms->level;
735 luaL_checkstack(ms->L, nlevels, "too many captures");
736 for (i = 0; i < nlevels; i++)
737 push_onecapture(ms, i, s, e);
738 return nlevels; /* number of strings pushed */
739}
740
741
742/* check whether pattern has no special characters */

Callers 3

str_find_auxFunction · 0.85
gmatch_auxFunction · 0.85
add_valueFunction · 0.85

Calls 2

push_onecaptureFunction · 0.85
luaL_checkstackFunction · 0.70

Tested by

no test coverage detected