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

Function luaL_gsub

extlibs/lua/src/lauxlib.c:976–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974
975
976LUALIB_API const char *luaL_gsub (lua_State *L, const char *s,
977 const char *p, const char *r) {
978 luaL_Buffer b;
979 luaL_buffinit(L, &b);
980 luaL_addgsub(&b, s, p, r);
981 luaL_pushresult(&b);
982 return lua_tostring(L, -1);
983}
984
985
986static 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