Sets the STATE_START bit in the given state pointer if and only if we have a prefix to scan for. If there's no prefix, then it's a waste to treat the start state specially.
(&self, si: StatePtr)
| 1591 | /// If there's no prefix, then it's a waste to treat the start state |
| 1592 | /// specially. |
| 1593 | fn start_ptr(&self, si: StatePtr) -> StatePtr { |
| 1594 | if self.has_prefix() { |
| 1595 | si | STATE_START |
| 1596 | } else { |
| 1597 | si |
| 1598 | } |
| 1599 | } |
| 1600 | |
| 1601 | /// Approximate size returns the approximate heap space currently used by |
| 1602 | /// the DFA. It is used to determine whether the DFA's state cache needs to |
no test coverage detected