File utils/stringutil.lua
Functions
stringutil.concat (...) | Concats all the given items by invoking tostring on them into one string. |
stringutil.split (text, split) | Splits the given text using the given split value. |
Functions
- stringutil.concat (...)
-
Concats all the given items by invoking tostring on them into one string.
Parameters
- ...: The items to concat.
Return value:
The concatenated items as string. - stringutil.split (text, split)
-
Splits the given text using the given split value. Returns the splitted text as array indexed beginning with zero. If the string is nil or empty, an empty array will be returned, if it only conists of the split value, the array will contain one empty value.
Parameters
- text: The text to split.
- split: The split value.
Return value:
The array (starting at zero) with the splitted text.