fn build_fixed_searcher(
pattern: &str,
ignore_case: bool,
) -> Result<AhoCorasick, RError>Expand description
Build an AhoCorasick automaton for a single fixed pattern, optionally case-insensitive.
This builds the automaton once and amortizes the cost across many haystack searches.