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

Method continue_past_first_match

regex/src/dfa.rs:1577–1579  ·  view source on GitHub ↗

Returns true if the DFA should continue searching past the first match. Leftmost first semantics in the DFA are preserved by not following NFA transitions after the first match is seen. On occasion, we want to avoid leftmost first semantics to find either the longest match (for reverse search) or all possible matches (for regex sets).

(&self)

Source from the content-addressed store, hash-verified

1575 /// the longest match (for reverse search) or all possible matches (for
1576 /// regex sets).
1577 fn continue_past_first_match(&self) -> bool {
1578 self.prog.is_reverse || self.prog.matches.len() > 1
1579 }
1580
1581 /// Returns true if there is a prefix we can quickly search for.
1582 fn has_prefix(&self) -> bool {

Callers 2

exec_byteMethod · 0.80
cached_state_keyMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected