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.

Four causes: a zero-width assertion other than a leading \A/^ ($, \b, \B, multiline anchors), a lookaround, a Unicode code-point class (\w/\d/\s in text mode — use byte classes), or a possessive quantifier / atomic group. real::dfa never falls back silently — a violated contract is an error the caller handles (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: