MCPcopy Create free account
hub / github.com/davidblewett/rure-python / shortest_dfa_reverse_suffix

Method shortest_dfa_reverse_suffix

regex/src/exec.rs:754–763  ·  view source on GitHub ↗

reduces constant overhead

(
        &self,
        text: &[u8],
        start: usize,
    )

Source from the content-addressed store, hash-verified

752 ///
753 #[inline(always)] // reduces constant overhead
754 fn shortest_dfa_reverse_suffix(
755 &self,
756 text: &[u8],
757 start: usize,
758 ) -> dfa::Result<usize> {
759 match self.exec_dfa_reverse_suffix(text, start) {
760 None => self.shortest_dfa(text, start),
761 Some(r) => r.map(|(_, end)| end),
762 }
763 }
764
765 /// Finds the end of the shortest match using only the DFA by scanning for
766 /// suffix literals. It also reports the start of the match.

Callers 2

shortest_match_atMethod · 0.80
is_match_atMethod · 0.80

Calls 3

shortest_dfaMethod · 0.80
mapMethod · 0.80

Tested by

no test coverage detected