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

Method has_prefix

regex/src/dfa.rs:1582–1586  ·  view source on GitHub ↗

Returns true if there is a prefix we can quickly search for.

(&self)

Source from the content-addressed store, hash-verified

1580
1581 /// Returns true if there is a prefix we can quickly search for.
1582 fn has_prefix(&self) -> bool {
1583 !self.prog.is_reverse
1584 && !self.prog.prefixes.is_empty()
1585 && !self.prog.is_anchored_start
1586 }
1587
1588 /// Sets the STATE_START bit in the given state pointer if and only if
1589 /// we have a prefix to scan for.

Callers 1

start_ptrMethod · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected