StringParser.split() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
separator |
No |
|
parse_part? |
{function|constructor:StringParser} |
Yes |
{string|StringParser|StringParser[]|any[]}
Create multiple strings divided by the specified separator and return them in an array. Parts of the string can be parsed after separating them and returned as {StringParser}
if specified as such or by the specified function, which will be provided each string part as its only argument. The value of this parser will be set to a string part for the duration of each execution only. If the separator is not present, a single unseparated string is returned or {self}
if the parsing was specified as {StringParser}
.