MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaopen_string

Function luaopen_string

app/redis-6.2.6/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.70
lua_setfieldFunction · 0.70
createmetatableFunction · 0.70

Tested by

no test coverage detected