** change all characters 'from' in buffer to 'to' */
| 194 | ** change all characters 'from' in buffer to 'to' |
| 195 | */ |
| 196 | static 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) |
no outgoing calls
no test coverage detected