MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / push_onecapture

Function push_onecapture

3rd/lua-5.4.3/src/lstrlib.c:725–732  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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