MCPcopy Create free account
hub / github.com/cuberite/cuberite / buffreplace

Function buffreplace

lib/lua/src/llex.c:169–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168
169static void buffreplace (LexState *ls, char from, char to) {
170 size_t n = luaZ_bufflen(ls->buff);
171 char *p = luaZ_buffer(ls->buff);
172 while (n--)
173 if (p[n] == from) p[n] = to;
174}
175
176
177static 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