Files
wow-weakauras/Meta/api/format.lua
2024-11-07 23:12:37 +01:00

7 lines
733 B
Lua

---@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