| 1058 | |
| 1059 | |
| 1060 | static int lua_number2strx (lua_State *L, char *buff, unsigned sz, |
| 1061 | const char *fmt, lua_Number x) { |
| 1062 | int n = num2straux(buff, sz, x); |
| 1063 | if (fmt[SIZELENMOD] == 'A') { |
| 1064 | int i; |
| 1065 | for (i = 0; i < n; i++) |
| 1066 | buff[i] = cast_char(toupper(cast_uchar(buff[i]))); |
| 1067 | } |
| 1068 | else if (l_unlikely(fmt[SIZELENMOD] != 'a')) |
| 1069 | return luaL_error(L, "modifiers for format '%%a'/'%%A' not implemented"); |
| 1070 | return n; |
| 1071 | } |
| 1072 | |
| 1073 | #endif /* } */ |
| 1074 |
no test coverage detected