When set, the machine returned is suitable for use in the DFA matching engine. In particular, this ensures that if the regex is not anchored in the beginning, then a preceding `.*?` is included in the program. (The NFA based engines handle the preceding `.*?` explicitly, which is difficult or impossible in the DFA engine.)
(mut self, yes: bool)
| 103 | /// based engines handle the preceding `.*?` explicitly, which is difficult |
| 104 | /// or impossible in the DFA engine.) |
| 105 | pub fn dfa(mut self, yes: bool) -> Self { |
| 106 | self.compiled.is_dfa = yes; |
| 107 | self |
| 108 | } |
| 109 | |
| 110 | /// When set, the machine returned is suitable for matching text in |
| 111 | /// reverse. In particular, all concatenations are flipped. |
no outgoing calls
no test coverage detected