Module cp

Module cp 

Source
Available on crate features regex-automata and regex-cp only.
Expand description

The primary type in this module is Regex.

§Design

A copy-and-patch NFA.

To reduce binary size and maintenance cost, we do not copy the entire regex_automata crate, but only the backtrack engine and add a wrapper around NFA. The NFA wrapper allows us to inject our own State variants and copy-and-patch the compiled states.

The backtrack engine is forked from regex_automata::nfa::thompson::backtrack.

Re-exports§

pub use regex::Cache;
pub use regex::Config;
pub use regex::TryCapturesMatches;
pub use regex::TryFindMatches;

Structs§

BuildError
An error that can occurred during the construction of a thompson NFA.
Builder
Use builder syntax to set the inputs and finish with build_many_from_hir().
Regex
A compiled regular expression for searching Unicode haystacks.