Skip to main content

Module prefix

Module prefix 

Source
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 prefix provides 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 hir can match some string containing every byte in lit.
hir_has_fixed_length ๐Ÿ”’
Returns true when the given Hir has a fixed length.
hir_is_disjoint_from_class ๐Ÿ”’
hir_matches_empty_only ๐Ÿ”’
required_class ๐Ÿ”’
uncapture ๐Ÿ”’
unicode_class_contains ๐Ÿ”’