Add string.format shortcut to lua
This commit is contained in:
@@ -205,6 +205,7 @@ function floor(x) return math.floor(x) end
|
|||||||
function ceil(x) return math.ceil(x) end
|
function ceil(x) return math.ceil(x) end
|
||||||
function upper(s) return string.upper(s) end
|
function upper(s) return string.upper(s) end
|
||||||
function lower(s) return string.lower(s) end
|
function lower(s) return string.lower(s) end
|
||||||
|
function format(s, ...) return string.format(s, ...) end
|
||||||
|
|
||||||
-- String to number conversion helper
|
-- String to number conversion helper
|
||||||
function num(str)
|
function num(str)
|
||||||
|
Reference in New Issue
Block a user