Whether captures for this pattern are found in a single scan, which makes captures faster.
Regex :: #import "Extensions/Regex";
re, _ := Regex.compile("(a)(b)");
assert(Regex.is_one_pass(*re));
Regex.free_regex(*re);is_one_pass :: (re: *Regex) -> bool
Parameters
- re: *Regex
Returns
- bool
is_one_pass :: ($R: Type) -> bool
is_one_pass for a static pattern.
Parameters
- $R: Type
Returns
- bool
Regex :: #import "Extensions/Regex";
Pair :: Regex.Static("(a)(b)");
assert(Regex.is_one_pass(Pair));