Returns true if there is a prefix we can quickly search for.
(&self)
| 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. |