|
REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
|
#include <program.hpp>
Public Member Functions | |
| regex_error (const std::string &message, std::size_t position, error_kind kind=error_kind::syntax) | |
| Builds the error. | |
| error_kind | kind () const noexcept |
Whether the pattern is malformed (syntax) or well-formed but unsupported by REAL. | |
| const char * | what () const noexcept override |
| Returns the formatted error message (with position). | |
| std::size_t | position () const noexcept |
| Returns the byte offset in the pattern where the error was found. | |
Private Attributes | |
| std::string | message_ |
| Formatted message returned by what(). | |
| std::size_t | position_ |
| Offset in the pattern text. | |
| error_kind | kind_ |
| Malformed (syntax) vs unsupported-by-REAL. | |
Definition at line 113 of file program.hpp.
|
inline |
Builds the error.
| [in] | message | Human-readable cause. |
| [in] | position | Byte offset in the pattern where the error was found. |
| [in] | kind | Whether the pattern is malformed or merely unsupported (default syntax). |
Definition at line 123 of file program.hpp.
|
inlinenoexcept |
Whether the pattern is malformed (syntax) or well-formed but unsupported by REAL.
Definition at line 134 of file program.hpp.
|
inlinenoexcept |
Returns the byte offset in the pattern where the error was found.
Definition at line 150 of file program.hpp.
|
inlineoverridenoexcept |
Returns the formatted error message (with position).
Definition at line 142 of file program.hpp.
|
private |
Malformed (syntax) vs unsupported-by-REAL.
Definition at line 159 of file program.hpp.
|
private |
Formatted message returned by what().
Definition at line 157 of file program.hpp.
|
private |
Offset in the pattern text.
Definition at line 158 of file program.hpp.