3 releases
Uses old Rust 2015
0.1.2 | Mar 11, 2022 |
---|---|
0.1.1 | Sep 7, 2018 |
0.1.0 | Sep 7, 2018 |
#1133 in Text processing
2,335 downloads per month
Used in 10 crates
(5 directly)
7KB
201 lines
Efficiently split lines by whitespace, while handling the backslash escape sequences in Rust-like string format.
For example, if you had a string like:
One\ two three\ four
Naïve splitting on whitespace would produce four outputs:
One\
two
three\
four
This crate will instead produce two strings:
One two
three four
This crate also handles special escape sequences like "\n", which represents a newline. Specifically, the escape sequences are:
\a
\b
\t
\n
\v
\f
\r
\\
If the backslash character is found, but the successive character is not special, then the backslash is disregarded and the successive character is included verbatim.