Module 00_init
Initialization of basic functions This file is always executed first.
Override Lua's upper and lower functions with our own, which is always UTF-8.
Functions
Trace (message) | alias for lua.Trace |
Warn (message) | lua.Warn alias |
print (message) | lua.Trace alias |
string:find_last (text) | Find the last occurence of text in the string |
math.round (n) | Round to nearest integer. |
split (delimiter, text) | split text into a table by the delimiter |
join (delimiter, list) | table.concat alias |
Functions
- Trace (message)
-
alias for lua.Trace
Parameters:
- message string
- Warn (message)
-
lua.Warn alias
Parameters:
- message string
- print (message)
-
lua.Trace alias
Parameters:
- message string
- string:find_last (text)
-
Find the last occurence of text in the string
Parameters:
- text string
Returns:
-
int 0 if not found
- math.round (n)
-
Round to nearest integer.
Parameters:
- n number
Returns:
-
number
- split (delimiter, text)
-
split text into a table by the delimiter
Parameters:
Returns:
-
table
- join (delimiter, list)
-
table.concat alias
Parameters:
Returns:
-
string