MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / luaL_gsub

Function luaL_gsub

xrepo/packages/l/lua/port/lua/src/lauxlib.c:1001–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

999
1000
1001LUALIB_API const char *luaL_gsub (lua_State *L, const char *s,
1002 const char *p, const char *r) {
1003 luaL_Buffer b;
1004 luaL_buffinit(L, &b);
1005 luaL_addgsub(&b, s, p, r);
1006 luaL_pushresult(&b);
1007 return lua_tostring(L, -1);
1008}
1009
1010
1011static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {

Callers 3

setprogdirFunction · 0.85
searchpathFunction · 0.85
loadfuncFunction · 0.85

Calls 3

luaL_addgsubFunction · 0.85
luaL_buffinitFunction · 0.70
luaL_pushresultFunction · 0.70

Tested by

no test coverage detected