LUAL_GSUB(3) Library Functions Manual LUAL_GSUB(3)

luaL_gsubcreates a copy of string A by replacing any occurrence of the string B with the string C, function indicator [-0, +1, m]

#include <lauxlib.h>

const char *
luaL_gsub(lua_State *L, const char *s, const char *p, const char *r);

() creates a copy of string s by replacing any occurrence of the string p with the string r. Pushes the resulting string on the stack and returns it.

Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.

The luaL_gsub() manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.

July 24, 2022 Debian