|
REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
|
The resource limits of one expression, for a service that compiles patterns it did not write: each may be lowered for the patterns of one call, none raised past this build's ceiling (REAL_MAX_*), and the defaults are those ceilings. A pattern past one is refused with error_kind::limit.
More...
#include <program.hpp>
Public Member Functions | |
| constexpr | limits () noexcept |
| This build's limits: its ceilings, and the default DFA memory. | |
The resource limits of one expression, for a service that compiles patterns it did not write: each may be lowered for the patterns of one call, none raised past this build's ceiling (REAL_MAX_*), and the defaults are those ceilings. A pattern past one is refused with error_kind::limit.
dfa_memory bounds what the search's lazy DFA may cache for this expression, per direction: past it the cache flushes, and a search that keeps flushing finishes on the VM, still linear and still exact. It has no ceiling, and may be raised.