| 13756 | |
| 13757 | |
| 13758 | static int str_upper (lua_State *L) { |
| 13759 | size_t l; |
| 13760 | size_t i; |
| 13761 | luaL_Buffer b; |
| 13762 | const char *s = luaL_checklstring(L, 1, &l); |
| 13763 | luaL_buffinit(L, &b); |
| 13764 | for (i=0; i<l; i++) |
| 13765 | luaL_addchar(&b, toupper(uchar(s[i]))); |
| 13766 | luaL_pushresult(&b); |
| 13767 | return 1; |
| 13768 | } |
| 13769 | |
| 13770 | static int str_rep (lua_State *L) { |
| 13771 | size_t l; |
nothing calls this directly
no test coverage detected