|
|
| Options ()=default |
| | Default options: UTF-8, leftmost-first, case-sensitive, every RE2 default kept.
|
| |
| std::int64_t | max_mem () const noexcept |
| | Approximate memory budget RE2 uses for its compiled program/DFA cache. Stored for API shape; REAL has its own, unrelated internal budget knobs and does not consult this.
|
| |
| void | set_max_mem (std::int64_t value) noexcept |
| | Sets max_mem.
|
| |
| Encoding | encoding () const noexcept |
| | The pattern/text encoding.
|
| |
| void | set_encoding (Encoding value) noexcept |
| | Sets encoding. EncodingLatin1 makes the owning RE2 reject at construction.
|
| |
| bool | posix_syntax () const noexcept |
| | Whether the pattern is restricted to POSIX egrep syntax. Always rejected here (no REAL-side equivalent grammar mode) if set to true.
|
| |
| void | set_posix_syntax (bool value) noexcept |
| | Sets posix_syntax.
|
| |
| bool | longest_match () const noexcept |
| | Whether to search for the longest match instead of the first. Honored for PartialMatch (via real::regex::search_longest()); see the file-level doc comment.
|
| |
| void | set_longest_match (bool value) noexcept |
| | Sets longest_match.
|
| |
| bool | log_errors () const noexcept |
| | Whether to log syntax/execution errors. Stored for API shape; this layer reports errors through RE2::error() regardless, never a logging side-channel.
|
| |
| void | set_log_errors (bool value) noexcept |
| | Sets log_errors.
|
| |
| bool | literal () const noexcept |
| | Whether the pattern is matched as a literal string rather than parsed as a regex. Honored by escaping the pattern (QuoteMeta) before compiling.
|
| |
| void | set_literal (bool value) noexcept |
| | Sets literal.
|
| |
| bool | never_nl () const noexcept |
| | Whether the pattern must never match \n, even where the pattern text says it should. Always rejected here (no REAL-side equivalent) if set to true.
|
| |
| void | set_never_nl (bool value) noexcept |
| | Sets never_nl.
|
| |
| bool | dot_nl () const noexcept |
| | Whether . also matches \n. Honored via flags::dotall.
|
| |
| void | set_dot_nl (bool value) noexcept |
| | Sets dot_nl.
|
| |
| bool | never_capture () const noexcept |
| | Whether every (...) parses as non-capturing. Always rejected here (this layer always captures every group; honoring true silently would change NumberOfCapturingGroups() and which Arg extractions succeed) if set to true.
|
| |
| void | set_never_capture (bool value) noexcept |
| | Sets never_capture.
|
| |
| bool | case_sensitive () const noexcept |
| | Whether matching is case-sensitive by default (overridable per-pattern with (?i), same interaction RE2 itself documents). Honored via flags::icase when false.
|
| |
| void | set_case_sensitive (bool value) noexcept |
| | Sets case_sensitive.
|
| |
| bool | perl_classes () const noexcept |
| | Only consulted by real RE2 under posix_syntax, which this layer rejects — inert here for the same reason it is inert in real RE2 outside posix_syntax mode.
|
| |
| void | set_perl_classes (bool value) noexcept |
| | Sets perl_classes (inert; see the getter).
|
| |
| bool | word_boundary () const noexcept |
| | Only consulted by real RE2 under posix_syntax, which this layer rejects — inert here for the same reason it is inert in real RE2 outside posix_syntax mode.
|
| |
| void | set_word_boundary (bool value) noexcept |
| | Sets word_boundary (inert; see the getter).
|
| |
| bool | one_line () const noexcept |
| | Only consulted by real RE2 under posix_syntax, which this layer rejects — inert here for the same reason it is inert in real RE2 outside posix_syntax mode.
|
| |
| void | set_one_line (bool value) noexcept |
| | Sets one_line (inert; see the getter).
|
| |
|
|
std::int64_t | max_mem_ {8 << 20} |
| | RE2's own default budget; unused by REAL.
|
| |
|
Encoding | encoding_ {EncodingUTF8} |
| | The pattern/text encoding.
|
| |
|
bool | posix_syntax_ {false} |
| | POSIX egrep syntax restriction.
|
| |
|
bool | longest_match_ {false} |
| | Leftmost-longest vs leftmost-first.
|
| |
|
bool | log_errors_ {true} |
| | Log syntax/execution errors (inert here).
|
| |
|
bool | literal_ {false} |
| | Match the pattern as a literal string.
|
| |
|
bool | never_nl_ {false} |
| | Never match \n.
|
| |
|
bool | dot_nl_ {false} |
| | . also matches \n.
|
| |
|
bool | never_capture_ {false} |
| | Parse every (...) as non-capturing.
|
| |
|
bool | case_sensitive_ {true} |
| | Case-sensitive by default.
|
| |
|
bool | perl_classes_ {false} |
| | POSIX-mode-only; inert here.
|
| |
|
bool | word_boundary_ {false} |
| | POSIX-mode-only; inert here.
|
| |
|
bool | one_line_ {false} |
| | POSIX-mode-only; inert here.
|
| |
RE2-compatible construction options. Mirrors real RE2's RE2::Options field-for-field (names, defaults); see the file-level doc comment for which fields this layer honors.