MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_number2strx

Function lua_number2strx

src/Chain/libraries/glua/lstrlib.cpp:956–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954
955
956static 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

Callers 1

str_formatFunction · 0.85

Calls 3

num2strauxFunction · 0.85
toupperFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected