MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / str_rep

Function str_rep

deps/lua/src/lstrlib.c:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static int str_rep (lua_State *L) {
94 size_t l;
95 luaL_Buffer b;
96 const char *s = luaL_checklstring(L, 1, &l);
97 int n = luaL_checkint(L, 2);
98 luaL_buffinit(L, &b);
99 while (n-- > 0)
100 luaL_addlstring(&b, s, l);
101 luaL_pushresult(&b);
102 return 1;
103}
104
105
106static int str_byte (lua_State *L) {

Callers

nothing calls this directly

Calls 4

luaL_checklstringFunction · 0.85
luaL_buffinitFunction · 0.85
luaL_addlstringFunction · 0.85
luaL_pushresultFunction · 0.85

Tested by

no test coverage detected