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

Function push_onecapture

extlibs/lua/src/lstrlib.c:722–729  ·  view source on GitHub ↗

** Push the i-th capture on the stack. */

Source from the content-addressed store, hash-verified

720** Push the i-th capture on the stack.
721*/
722static void push_onecapture (MatchState *ms, int i, const char *s,
723 const char *e) {
724 const char *cap;
725 ptrdiff_t l = get_onecapture(ms, i, s, e, &cap);
726 if (l != CAP_POSITION)
727 lua_pushlstring(ms->L, cap, l);
728 /* else position was already pushed */
729}
730
731
732static int push_captures (MatchState *ms, const char *s, const char *e) {

Callers 2

push_capturesFunction · 0.85
add_valueFunction · 0.85

Calls 2

get_onecaptureFunction · 0.85
lua_pushlstringFunction · 0.85

Tested by

no test coverage detected