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