MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_number2strx

Function lua_number2strx

third-party/lua-5.5.0/src/lstrlib.c:1060–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058
1059
1060static 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

Callers 2

quotefloatFunction · 0.70
str_formatFunction · 0.70

Calls 2

num2strauxFunction · 0.70
luaL_errorFunction · 0.70

Tested by

no test coverage detected