Closed tcbrindle closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
c2be7c5
) 97.71% compared to head (3daf890
) 97.98%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Rather than a pattern,
split_adaptor
now uses a "Splitter", a function object which, when passed a sequence, returns the bounds of the next slice.This opens the door to potentially doing more sophisticated splitting, for example using a (CTRE?) regex or one of the standard library searchers.
At the moment, we don't publicly expose the generic Splitter interface, but this could be done in future. Rather, our existing
split()
overloads have been changed to use new (internal)pattern_splitter
anddelim_splitter
implementations.