fn look_ahead(&mut self, query: &str, folding: bool) -> bool {
        let q_len = query.len();
        if self.input.len() - self.pos >= q_len {
            let text = &self.input[self.pos..self.pos + q_len];
            return if folding {
                let lower_text = to_lowercase(text);
                &lower_text[..] == query
            } else {
                text == query
            };
        }
        false
    }
/// `look_ahead` returns true if the next characters in the input
/// text match the given query.
`look_ahead` returns true if the next characters in the input
text match the given query.
` look_ahead ` returns true if the next characters in the input text match the given query .
fn look_ahead(&mut self, query: &str, folding: bool) -> bool {
        let q_len = query.len();
        if self.input.len() - self.pos >= q_len {
            let text = &self.input[self.pos..self.pos + q_len];
            return if folding {
                let lower_text = to_lowercase(text);
                &lower_text[..] == query
            } else {
                text == query
            };
        }
        false
    }
fn look_ahead ( & mut self , query : & str , folding : bool ) -> bool { let q_len = query . len ( ) ; if self . input . len ( ) - self . pos >= q_len { let text = & self . input [ self . pos .. self . pos + q_len ] ; return if folding { let lower_text = to_lowercase ( text ) ; & lower_text [ .. ] == query } else { text == query } ; } false }
`look_ahead` returns true if the next characters in the input
text match the given query.
` look_ahead ` returns true if the next characters in the input text match the given query .
&mut self
query
&str
folding
bool