Expand description
Cheap HIR proofs that literal candidate order is compatible with regex match order.
The reverse suffix and reverse inner strategies both scan for a required literal before confirming the surrounding regex. These proofs are all conservative. If they cannot establish that the first confirmed candidate is the match the regex engine would report, then the corresponding reverse strategy is not used.
Functionsยง
- byte_
class_ ๐contains - class_
is_ ๐disjoint_ from_ literal - class_
is_ ๐disjoint_ from_ literals - classes_
are_ ๐disjoint - has_
disjoint_ ๐class_ separator - Return true when an edge of
prefixprovides a required separator between the start of a match and each literal candidate. - has_
disjoint_ ๐class_ separator_ at - hir_
can_ ๐consume_ byte - hir_
can_ ๐contain_ literal - Return true when
hircan match some string containing every byte inlit. - hir_
has_ ๐fixed_ length - Returns true when the given
Hirhas a fixed length. - hir_
is_ ๐disjoint_ from_ class - hir_
matches_ ๐empty_ only - required_
class ๐ - uncapture ๐
- unicode_
class_ ๐contains