MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaL_gsub

Function luaL_gsub

lib/lua/src/lauxlib.c:1016–1023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014
1015
1016LUALIB_API const char *luaL_gsub (lua_State *L, const char *s,
1017 const char *p, const char *r) {
1018 luaL_Buffer b;
1019 luaL_buffinit(L, &b);
1020 luaL_addgsub(&b, s, p, r);
1021 luaL_pushresult(&b);
1022 return lua_tostring(L, -1);
1023}
1024
1025
1026static 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