#white-space #iterator #split #throw #away

split_preserve

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

1 unstable release

0.1.0 May 28, 2019

#15 in #away


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