Expand description
Provides a noncontiguous NFA implementation of Aho-Corasick.
This is a low-level API that generally only needs to be used in niche
circumstances. When possible, prefer using AhoCorasick
instead of a noncontiguous NFA directly. Using an NFA
directly is typically
only necessary when one needs access to the Automaton
trait implementation.
Structsยง
- Builder
- A builder for configuring an Aho-Corasick noncontiguous NFA.
- Compiler ๐
- A compiler uses a builder configuration and builds up the NFA formulation of an Aho-Corasick automaton. This roughly corresponds to the standard formulation described in textbooks, with some tweaks to support leftmost searching.
- Match ๐
- A single match in a non-contiguous NFA.
- NFA
- A noncontiguous NFA implementation of Aho-Corasick.
- Queued
Set ๐ - A set of state identifiers used to avoid revisiting the same state multiple times when filling in failure transitions.
- State ๐
- A representation of a sparse NFA state for an Aho-Corasick automaton.
- Transition ๐
- A single transition in a non-contiguous NFA.