#white-space #iterator

split_preserve

An iterator that splits on whitespace but doesn't throw it away

1 unstable release

0.1.0 May 28, 2019

#6 in #whitespace

25 downloads per month
Used in 2 crates

MIT license

6KB
73 lines

split-conserve-ws

This crate provides an iterator over strings that splits on whitespace but doesn't throw the whitespace away, like the version in std does.


lib.rs:

This module provides an iterator over strings that splits on whitespace but doesn't throw the whitespace away, like the version in std does. An iterator over the whitespace and non-whitespace sub-strings of a string, separated by any amount of whitespace.

No runtime deps