libstdc++
regex_constants.h File Reference

Go to the source code of this file.

Namespaces

 std
 
 std::regex_constants
 

5.1 Regular Expression Syntax Options

enum  std::regex_constants::__syntax_option {
  _S_icase, _S_nosubs, _S_optimize, _S_collate,
  _S_ECMAScript, _S_basic, _S_extended, _S_awk,
  _S_grep, _S_egrep, _S_syntax_last
}
 
enum  std::regex_constants::syntax_option_type : unsigned int {
  std::regex_constants::icase, std::regex_constants::nosubs, std::regex_constants::optimize, std::regex_constants::collate,
  std::regex_constants::ECMAScript, std::regex_constants::basic, std::regex_constants::extended, std::regex_constants::awk,
  std::regex_constants::grep, std::regex_constants::egrep
}
 
constexpr syntax_option_type std::regex_constants::operator& (syntax_option_type __a, syntax_option_type __b)
 
constexpr syntax_option_type std::regex_constants::operator| (syntax_option_type __a, syntax_option_type __b)
 
constexpr syntax_option_type std::regex_constants::operator^ (syntax_option_type __a, syntax_option_type __b)
 
constexpr syntax_option_type std::regex_constants::operator~ (syntax_option_type __a)
 
syntax_option_type & std::regex_constants::operator&= (syntax_option_type &__a, syntax_option_type __b)
 
syntax_option_type & std::regex_constants::operator|= (syntax_option_type &__a, syntax_option_type __b)
 
syntax_option_type & std::regex_constants::operator^= (syntax_option_type &__a, syntax_option_type __b)
 

5.2 Matching Rules

Matching a regular expression against a sequence of characters [first, last) proceeds according to the rules of the grammar specified for the regular expression object, modified according to the effects listed below for any bitmask elements set.

enum  std::regex_constants::__match_flag {
  _S_not_bol, _S_not_eol, _S_not_bow, _S_not_eow,
  _S_any, _S_not_null, _S_continuous, _S_prev_avail,
  _S_sed, _S_no_copy, _S_first_only, _S_match_flag_last
}
 
enum  std::regex_constants::match_flag_type : unsigned int {
  std::regex_constants::match_default, std::regex_constants::match_not_bol, std::regex_constants::match_not_eol, std::regex_constants::match_not_bow,
  std::regex_constants::match_not_eow, std::regex_constants::match_any, std::regex_constants::match_not_null, std::regex_constants::match_continuous,
  std::regex_constants::match_prev_avail, std::regex_constants::format_default, std::regex_constants::format_sed, std::regex_constants::format_no_copy,
  std::regex_constants::format_first_only
}
 
constexpr match_flag_type std::regex_constants::operator& (match_flag_type __a, match_flag_type __b)
 
constexpr match_flag_type std::regex_constants::operator| (match_flag_type __a, match_flag_type __b)
 
constexpr match_flag_type std::regex_constants::operator^ (match_flag_type __a, match_flag_type __b)
 
constexpr match_flag_type std::regex_constants::operator~ (match_flag_type __a)
 
match_flag_type & std::regex_constants::operator&= (match_flag_type &__a, match_flag_type __b)
 
match_flag_type & std::regex_constants::operator|= (match_flag_type &__a, match_flag_type __b)
 
match_flag_type & std::regex_constants::operator^= (match_flag_type &__a, match_flag_type __b)
 

Detailed Description

Constant definitions for the std regex library.

This is an internal header file, included by other library headers. Do not attempt to use it directly. Instead, include <regex>.

Definition in file regex_constants.h.