Splits str into at most n slices on each occurrence of any character in delims. collapse indicates whether to collapse consecutive occurrences to a single one to prevent producing empty slices.
destination array of slices
input string
delimiter character
maximum number of slices; set to 0 to indicate no limit
set to true to collapse consecutive occurrences to prevent producing empty "slices"
See Implementation
Splits str into at most n slices on each occurrence of any character in delims. collapse indicates whether to collapse consecutive occurrences to a single one to prevent producing empty slices.