libstdc++
regex_constants.h File Reference

Go to the source code of this file.

Namespaces

namespace  std
 
namespace  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
}
 
typedef unsigned int std::regex_constants::syntax_option_type
 
static constexpr syntax_option_type std::regex_constants::icase
 
static constexpr syntax_option_type std::regex_constants::nosubs
 
static constexpr syntax_option_type std::regex_constants::optimize
 
static constexpr syntax_option_type std::regex_constants::collate
 
static constexpr syntax_option_type std::regex_constants::ECMAScript
 
static constexpr syntax_option_type std::regex_constants::basic
 
static constexpr syntax_option_type std::regex_constants::extended
 
static constexpr syntax_option_type std::regex_constants::awk
 
static constexpr syntax_option_type std::regex_constants::grep
 
static constexpr syntax_option_type std::regex_constants::egrep
 

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
}
 
typedef std::bitset
< _S_match_flag_last > 
std::regex_constants::match_flag_type
 
static constexpr match_flag_type std::regex_constants::match_default
 
static constexpr match_flag_type std::regex_constants::match_not_bol
 
static constexpr match_flag_type std::regex_constants::match_not_eol
 
static constexpr match_flag_type std::regex_constants::match_not_bow
 
static constexpr match_flag_type std::regex_constants::match_not_eow
 
static constexpr match_flag_type std::regex_constants::match_any
 
static constexpr match_flag_type std::regex_constants::match_not_null
 
static constexpr match_flag_type std::regex_constants::match_continuous
 
static constexpr match_flag_type std::regex_constants::match_prev_avail
 
static constexpr match_flag_type std::regex_constants::format_default
 
static constexpr match_flag_type std::regex_constants::format_sed
 
static constexpr match_flag_type std::regex_constants::format_no_copy
 
static constexpr match_flag_type std::regex_constants::format_first_only
 

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.