MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaopen_string

Function luaopen_string

deps/lua/src/lstrlib.c:862–870  ·  view source on GitHub ↗

** Open string library */

Source from the content-addressed store, hash-verified

860** Open string library
861*/
862LUALIB_API int luaopen_string (lua_State *L) {
863 luaL_register(L, LUA_STRLIBNAME, strlib);
864#if defined(LUA_COMPAT_GFIND)
865 lua_getfield(L, -1, "gmatch");
866 lua_setfield(L, -2, "gfind");
867#endif
868 createmetatable(L);
869 return 1;
870}
871

Callers

nothing calls this directly

Calls 3

lua_getfieldFunction · 0.85
lua_setfieldFunction · 0.85
createmetatableFunction · 0.85

Tested by

no test coverage detected