| 13732 | |
| 13733 | |
| 13734 | static int str_reverse (lua_State *L) { |
| 13735 | size_t l; |
| 13736 | luaL_Buffer b; |
| 13737 | const char *s = luaL_checklstring(L, 1, &l); |
| 13738 | luaL_buffinit(L, &b); |
| 13739 | while (l--) luaL_addchar(&b, s[l]); |
| 13740 | luaL_pushresult(&b); |
| 13741 | return 1; |
| 13742 | } |
| 13743 | |
| 13744 | |
| 13745 | static int str_lower (lua_State *L) { |
nothing calls this directly
no test coverage detected