Contains tools to work with regular expressions in the Maxon API.
Classes | |
class | RegexMatch |
class | RegexInterface |
Enumerations | |
enum class | REGEX_MATCH_FLAGS { DEFAULT , NOT_BOL , NOT_EO , NOT_BOW , NOT_EOW , ANY , NOT_NULL , CONTINUOUS , PREV_AVAIL , FORMAT_DEFAULT , FORMAT_SED , FORMAT_NO_COPY , FORMAT_FIRST_ONLY , MATCH_ALL } |
enum class | REGEX_SYNTAX_FLAGS { ICASE , NOSUBS , OPTIMIZE , COLLATE , ECMAScript , BASIC , EXTENDED , AWK , GREP , EGREP } |
Functions | |
enum maxon::regex::REGEX_MATCH_FLAGS | MAXON_ENUM_FLAGS (REGEX_MATCH_FLAGS) |
enum maxon::regex::REGEX_SYNTAX_FLAGS | MAXON_ENUM_FLAGS (REGEX_SYNTAX_FLAGS) |
Variables | |
class maxon::regex::RegexMatch | MAXON_ENUM_FLAGS |
|
strong |
Expresses options when matching regular expressions.
The flags are of identical meaning as the std::regex_constants::match_flag_type
flags, but do not use the same integer values (i.e., you cannot cast between them). Other than for std::regex
, there is a builtin MATCH_ALL
flag which enables matching all occurrences of a pattern when searching a string. For matching, splitting, and replacing operations, the MATCH_ALL
flag is without any effect.
Enumerator | |
---|---|
DEFAULT | Marks the match as having no special flags. |
NOT_BOL | Marks the match as not constrained to the beginning of a line. |
NOT_EO | Marks the match as not constrained to the end of a line. |
NOT_BOW | Marks the match as not constrained to the beginning of a word. |
NOT_EOW | Marks the match as not constrained to the end of a word. |
ANY | Allows matching any character, including newlines. |
NOT_NULL | Prevents matching empty sequences. |
CONTINUOUS | Requires the match to be contiguous with the previous match. |
PREV_AVAIL | Indicates that the previous character is available for matching. |
FORMAT_DEFAULT | Specifies the default formatting behavior. |
FORMAT_SED | Enables sed-style formatting. |
FORMAT_NO_COPY | Prevents copying unmatched portions of the input. |
FORMAT_FIRST_ONLY | Only formats the first match in the input. |
MATCH_ALL | Matches all occurrences of the pattern in the input and not just the first one (only relevant for |
|
strong |
Expresses options for how regular expressions strings are parsed.
These flags are of identical meaning as the std::regex_constants::syntax_option_type
flags, but do not use the same integer values (i.e., you cannot cast between them).
enum maxon::regex::REGEX_MATCH_FLAGS maxon::regex::MAXON_ENUM_FLAGS | ( | REGEX_MATCH_FLAGS | ) |
enum maxon::regex::REGEX_SYNTAX_FLAGS maxon::regex::MAXON_ENUM_FLAGS | ( | REGEX_SYNTAX_FLAGS | ) |
class maxon::regex::RegexMatch MAXON_ENUM_FLAGS |