MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / str_lower

Function str_lower

third-party/lua-5.2.4/src/lstrlib.c:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78
79static int str_lower (lua_State *L) {
80 size_t l;
81 size_t i;
82 luaL_Buffer b;
83 const char *s = luaL_checklstring(L, 1, &l);
84 char *p = luaL_buffinitsize(L, &b, l);
85 for (i=0; i<l; i++)
86 p[i] = tolower(uchar(s[i]));
87 luaL_pushresultsize(&b, l);
88 return 1;
89}
90
91
92static int str_upper (lua_State *L) {

Callers

nothing calls this directly

Calls 3

luaL_checklstringFunction · 0.70
luaL_buffinitsizeFunction · 0.70
luaL_pushresultsizeFunction · 0.70

Tested by

no test coverage detected