maxon::regex Namespace Reference

Detailed Description

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
 

Enumeration Type Documentation

◆ REGEX_MATCH_FLAGS

enum REGEX_MATCH_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 RegexInterface::Search()).

◆ REGEX_SYNTAX_FLAGS

enum REGEX_SYNTAX_FLAGS
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).

Enumerator
ICASE 

Enables case-insensitive matching.

NOSUBS 

Prevents substitutions in the match.

OPTIMIZE 

Optimizes the regex for performance.

COLLATE 

Enables collation for matching.

ECMAScript 

Enables ECMAScript syntax.

BASIC 

Enables basic regex syntax.

EXTENDED 

Enables extended regex syntax.

AWK 

Enables AWK syntax.

GREP 

Enables GREP syntax.

EGREP 

Enables E-GREP syntax.

Function Documentation

◆ MAXON_ENUM_FLAGS() [1/2]

enum maxon::regex::REGEX_MATCH_FLAGS maxon::regex::MAXON_ENUM_FLAGS ( REGEX_MATCH_FLAGS  )

◆ MAXON_ENUM_FLAGS() [2/2]

enum maxon::regex::REGEX_SYNTAX_FLAGS maxon::regex::MAXON_ENUM_FLAGS ( REGEX_SYNTAX_FLAGS  )

Variable Documentation

◆ MAXON_ENUM_FLAGS

class maxon::regex::RegexMatch MAXON_ENUM_FLAGS