FAQ Database Discussion Community


What are the names of all function from the Lua 5.3 string library?

string,lua,lua-5.3
Here is a function name register closure which I use to register library names: The Pool object: function FooBarPool() local Names = {} local self = {} function self:Register(fFoo,sName) if(fFoo) then Names[fFoo] = sName end end function self:GetName(fFoo) return Names[fFoo] or "N/A" end return self end Create a Pool object...

How to print lld in Lua 5.3

lua,string.format,lua-5.3
string.format (formatstring, ยทยทยท) Returns a formatted version of its variable number of arguments following the description given in its first argument (which must be a string). The format string follows the same rules as the ISO C function sprintf. The only differences are that the options/modifiers *, h, L, l,...