REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
Loading...
Searching...
No Matches
real::dfa_error Class Reference

Thrown when a pattern cannot be represented as a DFA. More...

#include <dfa.hpp>

Inheritance diagram for real::dfa_error:
[legend]
Collaboration diagram for real::dfa_error:
[legend]

Public Member Functions

 dfa_error (const std::string &message)
 Builds the error.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ dfa_error()

real::dfa_error::dfa_error ( const std::string &  message)
inlineexplicit

Builds the error.

Parameters
[in]messageHuman-readable cause.

The documentation for this class was generated from the following file: