MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / _loaddecesc

Method _loaddecesc

src/Chain/libraries/glua/glua_tokenparser.cpp:281–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

is_digitFunction · 0.70

Tested by

no test coverage detected