Function read_token::until_any_or_whitespace [] [src]

pub fn until_any_or_whitespace(any: &str, chars: &[char], offset: usize) -> (Range, Option<usize>)

Reads a token until any character in string or whitespace. Returns (range, None) if stopping at whitespace or end of characters. Returns (range, Some(x)) if stopping at a character.