MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_number2strx

Function lua_number2strx

extlibs/lua/src/lstrlib.c:1053–1064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051
1052
1053static int lua_number2strx (lua_State *L, char *buff, int sz,
1054 const char *fmt, lua_Number x) {
1055 int n = num2straux(buff, sz, x);
1056 if (fmt[SIZELENMOD] == 'A') {
1057 int i;
1058 for (i = 0; i < n; i++)
1059 buff[i] = toupper(uchar(buff[i]));
1060 }
1061 else if (fmt[SIZELENMOD] != 'a')
1062 return luaL_error(L, "modifiers for format '%%a'/'%%A' not implemented");
1063 return n;
1064}
1065
1066#endif /* } */
1067

Callers 2

quotefloatFunction · 0.85
str_formatFunction · 0.85

Calls 2

num2strauxFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected