Splits a string into substrings using a separator. Inverse of CBA_fnc_join.
_string | String to split up [String] |
_separator | String to split around. If an empty string, “”, then split every character into a separate string [String, defaults to “”] |
The split string [Array of Strings]
_result = ["FISH\Cheese\frog.sqf", "\"] call CBA_fnc_split; _result is ["Fish", "Cheese", "frog.sqf"] _result = ["Peas", ""] call CBA_fnc_split; _result is ["P", "e", "a", "s"]
PabstMirror