| 954 | |
| 955 | |
| 956 | static int lua_number2strx(lua_State *L, char *buff, int sz, |
| 957 | const char *fmt, lua_Number x) { |
| 958 | int n = num2straux(buff, sz, x); |
| 959 | if (fmt[SIZELENMOD] == 'A') { |
| 960 | int i; |
| 961 | for (i = 0; i < n; i++) |
| 962 | buff[i] = toupper(uchar(buff[i])); |
| 963 | } |
| 964 | else if (fmt[SIZELENMOD] != 'a') |
| 965 | luaL_error(L, "modifiers for format '%%a'/'%%A' not implemented"); |
| 966 | return n; |
| 967 | } |
| 968 | |
| 969 | #endif /* } */ |
| 970 |
no test coverage detected