MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / buffreplace

Function buffreplace

third-party/lua-5.2.4/src/llex.c:196–201  ·  view source on GitHub ↗

** change all characters 'from' in buffer to 'to' */

Source from the content-addressed store, hash-verified

194** change all characters 'from' in buffer to 'to'
195*/
196static void buffreplace (LexState *ls, char from, char to) {
197 size_t n = luaZ_bufflen(ls->buff);
198 char *p = luaZ_buffer(ls->buff);
199 while (n--)
200 if (p[n] == from) p[n] = to;
201}
202
203
204#if !defined(getlocaledecpoint)

Callers 2

trydecpointFunction · 0.70
read_numeralFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected