|
REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
|
Compatibility constants mirroring std::regex_constants (own values, mapped internally).
More...
Typedefs | |
| using | error_type = std::regex_constants::error_type |
Error categories, aliased to std's so regex_error::code() is a true drop-in. | |
Enumerations | |
| enum | syntax_option_type : unsigned { ECMAScript = 0 , icase = 1U << 0U , nosubs = 1U << 1U , optimize = 1U << 2U , collate = 1U << 3U , multiline = 1U << 4U , basic = 1U << 5U , extended = 1U << 6U , awk = 1U << 7U , grep = 1U << 8U , egrep = 1U << 9U } |
| Grammar / option flags (own bit values; mapped to real::flags or std at construction). More... | |
| enum | match_flag_type : unsigned { match_default = 0 , match_not_bol = 1U << 0U , match_not_eol = 1U << 1U , match_not_bow = 1U << 2U , match_not_eow = 1U << 3U , match_any = 1U << 4U , match_not_null = 1U << 5U , match_continuous = 1U << 6U , match_prev_avail = 1U << 7U , format_default = 0 , format_sed = 1U << 8U , format_no_copy = 1U << 9U , format_first_only = 1U << 10U } |
| Match-control flags: the common subset. More... | |
Functions | |
| constexpr syntax_option_type | operator| (syntax_option_type a, syntax_option_type b) noexcept |
Bitwise OR of two syntax options, so ECMAScript | icase stays typed. | |
| constexpr syntax_option_type | operator& (syntax_option_type a, syntax_option_type b) noexcept |
| Bitwise AND of two syntax options, for testing a bit. | |
| constexpr match_flag_type | operator| (match_flag_type a, match_flag_type b) noexcept |
| Bitwise OR of two match flags. | |
| constexpr match_flag_type | operator& (match_flag_type a, match_flag_type b) noexcept |
| Bitwise AND of two match flags, for testing a bit. | |
| constexpr match_flag_type | operator~ (match_flag_type a) noexcept |
| Bitwise complement of a match-flag set, for masking bits off. | |
Compatibility constants mirroring std::regex_constants (own values, mapped internally).
| enum real::compat::regex_constants::match_flag_type : unsigned |
Match-control flags: the common subset.
| enum real::compat::regex_constants::syntax_option_type : unsigned |
Grammar / option flags (own bit values; mapped to real::flags or std at construction).
|
constexprnoexcept |
Bitwise AND of two match flags, for testing a bit.
| [in] | a | Left operand. |
| [in] | b | Right operand. |
|
constexprnoexcept |
Bitwise AND of two syntax options, for testing a bit.
| [in] | a | Left operand. |
| [in] | b | Right operand. |
|
constexprnoexcept |
Bitwise OR of two match flags.
| [in] | a | Left operand. |
| [in] | b | Right operand. |
|
constexprnoexcept |
Bitwise OR of two syntax options, so ECMAScript | icase stays typed.
| [in] | a | Left operand. |
| [in] | b | Right operand. |
|
constexprnoexcept |
Bitwise complement of a match-flag set, for masking bits off.
| [in] | a | The flags to complement. |
a does not hold.