pub fn many_matches_at(
        &self,
        matches: &mut [bool],
        text: &[u8],
        start: usize,
    ) -> bool {
        use self::MatchType::*;
        if !self.is_anchor_end_match(text) {
            return false;
        }
        match self.ro.match_type {
            Literal(ty) => {
                debug_assert!(matches.len() == 1);
                matches[0] = self.exec_literals(ty, text, start).is_some();
                matches[0]
            }
            Dfa | DfaMany => {
                match dfa::Fsm::forward_many(
                    &self.ro.dfa,
                    &self.cache,
                    matches,
                    text,
                    start,
                ) {
                    dfa::Result::Match(_) => true,
                    dfa::Result::NoMatch => false,
                    dfa::Result::Quit => {
                        self.exec_nfa(
                            MatchNfaType::Auto,
                            matches,
                            &mut [],
                            false,
                            text,
                            start)
                    }
                }
            }
            Nfa(ty) => self.exec_nfa(ty, matches, &mut [], false, text, start),
            Nothing => false,
        }
    }
/// Finds which regular expressions match the given text.
///
/// `matches` should have length equal to the number of regexes being
/// searched.
///
/// This is only useful when one wants to know which regexes in a set
/// match some text.
Finds which regular expressions match the given text.
`matches` should have length equal to the number of regexes being
searched.

This is only useful when one wants to know which regexes in a set
match some text.
Finds which regular expressions match the given text . ` matches ` should have length equal to the number of regexes being searched . This is only useful when one wants to know which regexes in a set match some text .
pub fn many_matches_at(
        &self,
        matches: &mut [bool],
        text: &[u8],
        start: usize,
    ) -> bool {
        use self::MatchType::*;
        if !self.is_anchor_end_match(text) {
            return false;
        }
        match self.ro.match_type {
            Literal(ty) => {
                debug_assert!(matches.len() == 1);
                matches[0] = self.exec_literals(ty, text, start).is_some();
                matches[0]
            }
            Dfa | DfaMany => {
                match dfa::Fsm::forward_many(
                    &self.ro.dfa,
                    &self.cache,
                    matches,
                    text,
                    start,
                ) {
                    dfa::Result::Match(_) => true,
                    dfa::Result::NoMatch => false,
                    dfa::Result::Quit => {
                        self.exec_nfa(
                            MatchNfaType::Auto,
                            matches,
                            &mut [],
                            false,
                            text,
                            start)
                    }
                }
            }
            Nfa(ty) => self.exec_nfa(ty, matches, &mut [], false, text, start),
            Nothing => false,
        }
    }
pub fn many_matches_at ( & self , matches : & mut [ bool ] , text : & [ u8 ] , start : usize , ) -> bool { use self :: MatchType :: * ; if ! self . is_anchor_end_match ( text ) { return false ; } match self . ro . match_type { Literal ( ty ) => { debug_assert ! ( matches len ( ) 1 ) ; matches [ 0 ] = self . exec_literals ( ty , text , start ) . is_some ( ) ; matches [ 0 ] } Dfa | DfaMany => { match dfa :: Fsm :: forward_many ( & self . ro . dfa , & self . cache , matches , text , start , ) { dfa :: Result :: Match ( _ ) => true , dfa :: Result :: NoMatch => false , dfa :: Result :: Quit => { self . exec_nfa ( MatchNfaType :: Auto , matches , & mut [ ] , false , text , start ) } } } Nfa ( ty ) => self . exec_nfa ( ty , matches , & mut [ ] , false , text , start ) , Nothing => false , } }
Finds which regular expressions match the given text.
Finds which regular expressions match the given text .
&self
matches
&mut [bool]
text
&[u8]
start
usize
&self
matches
&mut [bool]
text
&[u8]
start
usize