MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / utf8esc

Function utf8esc

xrepo/packages/l/lua/port/lua/src/llex.c:361–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359
360
361static void utf8esc (LexState *ls) {
362 char buff[UTF8BUFFSZ];
363 int n = luaO_utf8esc(buff, readutf8esc(ls));
364 for (; n > 0; n--) /* add 'buff' to string */
365 save(ls, buff[UTF8BUFFSZ - n]);
366}
367
368
369static int readdecesc (LexState *ls) {

Callers 1

read_stringFunction · 0.85

Calls 3

readutf8escFunction · 0.85
luaO_utf8escFunction · 0.70
saveFunction · 0.70

Tested by

no test coverage detected