MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / createcat

Function createcat

other_src/lua/src/lpeg.cpp:2268–2274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2266
2267
2268static void createcat (lua_State *L, const char *catname, int (catf) (int)) {
2269 Instruction *p = newcharset(L);
2270 int i;
2271 for (i = 0; i < CHAR_MAX; i++)
2272 if (catf(i)) setchar(p[1].buff, i);
2273 lua_setfield(L, -2, catname);
2274}
2275
2276
2277static int locale_l (lua_State *L) {

Callers 1

locale_lFunction · 0.85

Calls 2

newcharsetFunction · 0.85
lua_setfieldFunction · 0.70

Tested by

no test coverage detected