MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / iter_codes

Function iter_codes

lib/lua/src/lutf8lib.c:258–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257
258static int iter_codes (lua_State *L) {
259 int lax = lua_toboolean(L, 2);
260 const char *s = luaL_checkstring(L, 1);
261 luaL_argcheck(L, !iscontp(s), 1, MSGInvalid);
262 lua_pushcfunction(L, lax ? iter_auxlax : iter_auxstrict);
263 lua_pushvalue(L, 1);
264 lua_pushinteger(L, 0);
265 return 3;
266}
267
268
269/* 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