Skip to content

Commit b59d503

Browse files
author
blake2-ppc
committed
std::str: Double-ended CharSplitIterator
Add new methods `.rsplit_iter()` and `.rsplitn_iter()` for &str. Separate out CharSplitIterator and CharSplitNIterator, CharSplitIterator (`split_iter` and `rsplit_iter`) is made double-ended while `splitn_iter` and `rsplitn_iter` (limited to N splits) are not, since these don't have the same symmetry. With CharSplitIterator being double ended, derived iterators like `line_iter` and `word_iter` are too.
1 parent a17c7e4 commit b59d503

File tree

1 file changed

+228
-68
lines changed

1 file changed

+228
-68
lines changed

0 commit comments

Comments
 (0)