Expand description
Engine module - coordinates regex execution.
Selects the optimal execution strategy based on pattern properties.
Structs§
- Capabilities
- Runtime capabilities.
- Compiled
Regex - A compiled regex ready for execution.
Enums§
- Engine
Type - The selected engine type.
Functions§
- compile
- Compiles an NFA into an executable regex (legacy API). Note: This cannot use Shift-Or as it requires HIR for Glushkov construction. Also cannot use prefilter (requires HIR for literal extraction).
- compile_
from_ hir - Compiles an HIR into an executable regex. This is the preferred API as it can use Shift-Or for small patterns and prefilters for SIMD-accelerated candidate detection.
- compile_
with_ jit - Compiles an HIR with JIT compilation for maximum performance.
- compile_
with_ pikevm - Compiles an HIR using PikeVM (default, no JIT).
- select_
engine - Selects the optimal engine for a given NFA (legacy API).
Note: For Shift-Or selection, use
select_engine_from_hirinstead. - select_
engine_ from_ hir - Selects the optimal engine for a given HIR. This is the preferred API as it can properly evaluate Shift-Or compatibility using Glushkov construction.