| 55 | |
| 56 | |
| 57 | static int str_reverse (lua_State *L) { |
| 58 | size_t l; |
| 59 | luaL_Buffer b; |
| 60 | const char *s = luaL_checklstring(L, 1, &l); |
| 61 | luaL_buffinit(L, &b); |
| 62 | while (l--) luaL_addchar(&b, s[l]); |
| 63 | luaL_pushresult(&b); |
| 64 | return 1; |
| 65 | } |
| 66 | |
| 67 | |
| 68 | static int str_lower (lua_State *L) { |
nothing calls this directly
no test coverage detected