Skip to main content

run_text_pattern

Function run_text_pattern 

Source
pub fn run_text_pattern(
    ops: &[TextOp],
    subject: &str,
    init: usize,
    limits: TextLimits,
) -> Option<TextMatch>
Expand description

Runs a compiled text pattern over subject starting at byte offset init.

Unanchored programs search forward from init; programs beginning with TextOp::AnchorStart only attempt a match at subject start. The matcher fails closed when limits.max_steps is reached.