MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / iter_codes

Function iter_codes

3rd/lua-5.4.3/src/lutf8lib.c:257–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255
256
257static int iter_codes (lua_State *L) {
258 int lax = lua_toboolean(L, 2);
259 luaL_checkstring(L, 1);
260 lua_pushcfunction(L, lax ? iter_auxlax : iter_auxstrict);
261 lua_pushvalue(L, 1);
262 lua_pushinteger(L, 0);
263 return 3;
264}
265
266
267/* pattern to match a single UTF-8 character */

Callers

nothing calls this directly

Calls 3

lua_tobooleanFunction · 0.85
lua_pushvalueFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected