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

Function luaL_gsub

3rd/lua-5.4.3/src/lauxlib.c:1000–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998
999
1000LUALIB_API const char *luaL_gsub (lua_State *L, const char *s,
1001 const char *p, const char *r) {
1002 luaL_Buffer b;
1003 luaL_buffinit(L, &b);
1004 luaL_addgsub(&b, s, p, r);
1005 luaL_pushresult(&b);
1006 return lua_tostring(L, -1);
1007}
1008
1009
1010static 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_buffinitFunction · 0.85
luaL_addgsubFunction · 0.85
luaL_pushresultFunction · 0.85

Tested by

no test coverage detected