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

Method shortest_dfa

regex/src/exec.rs:746–748  ·  view source on GitHub ↗

reduces constant overhead

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

Source from the content-addressed store, hash-verified

744 /// Finds the end of the shortest match using only the DFA.
745 #[inline(always)] // reduces constant overhead
746 fn shortest_dfa(&self, text: &[u8], start: usize) -> dfa::Result<usize> {
747 dfa::Fsm::forward(&self.ro.dfa, self.cache, true, text, start)
748 }
749
750 /// Finds the end of the shortest match using only the DFA by scanning for
751 /// suffix literals.

Callers 3

shortest_match_atMethod · 0.80
is_match_atMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected