MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / buffreplace

Function buffreplace

deps/lua/src/llex.c:171–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169
170
171static void buffreplace (LexState *ls, char from, char to) {
172 size_t n = luaZ_bufflen(ls->buff);
173 char *p = luaZ_buffer(ls->buff);
174 while (n--)
175 if (p[n] == from) p[n] = to;
176}
177
178
179static void trydecpoint (LexState *ls, SemInfo *seminfo) {

Callers 2

trydecpointFunction · 0.85
read_numeralFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected