MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / str_lower

Function str_lower

Source/Misc/lua/src/lua.c:13745–13755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13743
13744
13745static int str_lower (lua_State *L) {
13746size_t l;
13747size_t i;
13748luaL_Buffer b;
13749const char *s = luaL_checklstring(L, 1, &l);
13750luaL_buffinit(L, &b);
13751for (i=0; i<l; i++)
13752luaL_addchar(&b, tolower(uchar(s[i])));
13753luaL_pushresult(&b);
13754return 1;
13755}
13756
13757
13758static int str_upper (lua_State *L) {

Callers

nothing calls this directly

Calls 3

luaL_checklstringFunction · 0.85
luaL_buffinitFunction · 0.85
luaL_pushresultFunction · 0.85

Tested by

no test coverage detected