MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / buffreplace

Function buffreplace

Source/Misc/lua/src/lua.c:6882–6887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6880
6881
6882static void buffreplace (LexState *ls, char from, char to) {
6883size_t n = luaZ_bufflen(ls->buff);
6884char *p = luaZ_buffer(ls->buff);
6885while (n--)
6886if (p[n] == from) p[n] = to;
6887}
6888
6889
6890static 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