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

Method dfa

regex/src/compile.rs:105–108  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 5

cmd_compileFunction · 0.80
buildMethod · 0.80
newMethod · 0.80
newMethod · 0.80
newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected