Skip to main content

add_gsub

Function add_gsub 

Source
pub fn add_gsub(buf: &mut LuaBuffer, s: &[u8], pat: &[u8], repl: &[u8])
Expand description

Perform global byte-string substitution: replace all occurrences of pat with repl in s, appending results into buf.

C: LUALIB_API void luaL_addgsub(luaL_Buffer *b, const char *s, const char *p, const char *r)