| 279 | } |
| 280 | |
| 281 | void GluaTokenParser::_loaddecesc(std::string &code, std::stringstream *ss) |
| 282 | { |
| 283 | int i; |
| 284 | int r = 0; // result accumulator |
| 285 | for (i = 0; i < 3 && is_digit(_current_char(code)); ++i) // read up to 3 digits |
| 286 | { |
| 287 | ss && *ss << (char)_current_char(code); |
| 288 | r = 10 * r + _current_char(code) - '0'; |
| 289 | _save_to_buff_and_next(_current_char(code) - '0'); |
| 290 | } |
| 291 | if (r > 0xff) |
| 292 | { |
| 293 | THROW_PERROR("decimal escape too large"); |
| 294 | return; |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | bool GluaTokenParser::_check_next2(std::string &code, const char *str) |
| 299 | { |
nothing calls this directly
no test coverage detected