MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / readdecesc

Function readdecesc

third-party/lua-5.2.4/src/llex.c:329–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327
328
329static int readdecesc (LexState *ls) {
330 int c[3], i;
331 int r = 0; /* result accumulator */
332 for (i = 0; i < 3 && lisdigit(ls->current); i++) { /* read up to 3 digits */
333 c[i] = ls->current;
334 r = 10*r + c[i] - '0';
335 next(ls);
336 }
337 if (r > UCHAR_MAX)
338 escerror(ls, c, i, "decimal escape too large");
339 return r;
340}
341
342
343static void read_string (LexState *ls, int del, SemInfo *seminfo) {

Callers 1

read_stringFunction · 0.70

Calls 1

escerrorFunction · 0.85

Tested by

no test coverage detected