Function escape_string::split_one[][src]

pub fn split_one<'a>(text: &'a str) -> Option<(Cow<'a, str>, &'a str)>

Split some text by unescaped whitespace.

find the first unescaped whitespace in text, return a tuple of the text before the whitespace and the text after the whitespace.

Ignores prefixed whitespace and discards whitespace between the first portion and the text after the whitespace.

Returns None if there was an escape character and then nothing

Does not look at the following text at all.