| 878 | |
| 879 | |
| 880 | static int lua_number2strx (lua_State *L, char *buff, int sz, |
| 881 | const char *fmt, lua_Number x) { |
| 882 | int n = num2straux(buff, sz, x); |
| 883 | if (fmt[SIZELENMOD] == 'A') { |
| 884 | int i; |
| 885 | for (i = 0; i < n; i++) |
| 886 | buff[i] = toupper(uchar(buff[i])); |
| 887 | } |
| 888 | else if (fmt[SIZELENMOD] != 'a') |
| 889 | return luaL_error(L, "modifiers for format '%%a'/'%%A' not implemented"); |
| 890 | return n; |
| 891 | } |
| 892 | |
| 893 | #endif /* } */ |
| 894 |
no test coverage detected