How to use RegexMatcher.split()
With icu::RegexMatcher::split
you'd first create a matcher instance with the regex pattern for the split. Then you'd perform the split using that matcher.
icu::RegexMatcher::split(input, dest[], destCapacity, status)
, where input
is a UnicodeString object to be split, dest[]
is an array of size destCapacity
, and status
is for error processing. I have tried various permutations and keep getting an icu.InvalidArgsError
.
I assume that input
would be a icu.UnicodeString()
object. But which other parameters are required for icu.REgexMatcher.split()
, and what object types are they?