|
REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
|
Thrown when a pattern cannot be represented as a DFA. More...
#include <dfa.hpp>
Public Member Functions | |
| dfa_error (const std::string &message) | |
| Builds the error. | |
Thrown when a pattern cannot be represented as a DFA.
Five causes: a zero-width assertion other than a leading \A/^ ($, \b, \B, multiline anchors), a lookaround, a possessive quantifier / atomic group, a code-point class whose UTF-8 expansion is too large (text-mode \w, or a class repeated many times; \d, \p{Greek} or [àé] build), or an automaton past the state cap (65 536 states). Never a silent fallback: the caller decides, e.g. by keeping that rule on the Pike VM.
|
inlineexplicit |
Builds the error.
| [in] | message | Human-readable cause. |