MIT Latest Version docs Chat on Miaou

splitty

A no-std string splitter for which spaces between quotes aren't separators.

Quotes not starting or ending a substring are handled as ordinary characters.

```rust use splitty::*;

let cmd = "xterm -e \"vi /some/path\"";

let mut token = splitunquotedchar(cmd, ' ') .unwrap_quotes(true);

asserteq!(token.next(), Some("xterm")); asserteq!(token.next(), Some("-e")); assert_eq!(token.next(), Some("vi /some/path")); ```