Strings library¶
Reference from lua manual
Functions¶
dump¶
Returns a binary representation of the given function, so that a later loadstring on that string returns a copy of the function. Function must be a Lua function without upvalues:
string.dump(fn)
Arguments¶
functionfn- lua function
Returns¶
stringresult
char¶
Receives 0 or more integers. Returns a string with length equal to the number of arguments, in which each character has the internal numerical code equal to its correspondent argument:
string.char(...)
Arguments¶
number...- integers
Returns¶
stringresult
byte¶
Returns the internal numerical code of the i-th character of s, or nil if the index is out of range. If i is absent, then it is assumed to be 1. i may be negative:
string.byte(s [, i])
Arguments¶
stringsnumberi
Returns¶
numberresult
unicode¶
TODO
match¶
TODO
gmatch¶
TODO
gsub¶
TODO
find¶
TODO
lower¶
TODO
upper¶
TODO
rep¶
TODO
format¶
TODO
reverse¶
TODO
sub¶
TODO
startsWith¶
TODO
endsWith¶
TODO
contains¶
TODO