Initial commit
This commit is contained in:
7
api/format.lua
Normal file
7
api/format.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
---@diagnostic disable: missing-return, lowercase-global
|
||||
|
||||
---@param formatString string
|
||||
---@param ... list
|
||||
---@return number formatted
|
||||
---Returns a formatted string containing specified values. Alias for the standard library function string.format. This version, however, includes the positional argument specifiers from Lua 4.0. Lua does not support the ANSI C format specifiers *, l, L, n, p, and h but includes an extra specifier, q, which formats a string in a form suitable to be safely read back by the Lua interpreter: the string is written between double quotes, and all double quotes, newlines, embedded zeros, and backslashes in the string are correctly escaped when written.
|
||||
function format(formatString, ...) end
|
||||
Reference in New Issue
Block a user