MCPcopy Create free account
hub / github.com/F-Stack/f-stack / buffreplace

Function buffreplace

freebsd/contrib/openzfs/module/lua/llex.c:193–198  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

trydecpointFunction · 0.70
read_numeralFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected