Namespaces
Variants
Views
Actions

std::regex_constants::match_flag_type

From cppreference.com
< cpp‎ | regex
Revision as of 10:58, 27 October 2011 by P12 (Talk | contribs)

Template:cpp/regex/sidebar

Defined in header <regex>
typedef /*unspecified*/ match_flag_type;

static constexpr match_flag_type match_default = 0
static constexpr match_flag_type match_not_bol = /*unspecified*/;
static constexpr match_flag_type match_not_eol = /*unspecified*/;
static constexpr match_flag_type match_not_bow = /*unspecified*/;
static constexpr match_flag_type match_not_eow = /*unspecified*/;
static constexpr match_flag_type match_any = /*unspecified*/;
static constexpr match_flag_type match_not_null = /*unspecified*/;
static constexpr match_flag_type match_continuous = /*unspecified*/;
static constexpr match_flag_type match_prev_avail = /*unspecified*/;
static constexpr match_flag_type format_default = 0;
static constexpr match_flag_type format_sed = /*unspecified*/;
static constexpr match_flag_type format_no_copy = /*unspecified*/;

static constexpr match_flag_type format_first_only = /*unspecified*/;

Template:cpp is an implementation-defined bitmask type (integer, enumeration, or Template:cpp). It provides ways to modify how regular expression matching should be performed on a character sequence [first, last).

Constants

Value Effect(s) if set
match_not_bol The first character in [first,last) will be treated as if it is not at the beginning of a line (i.e. ^ will not match [first,first).
match_not_eol The last character in [first,last) will be treated as if it is not at the end of a line (i.e. $ will not match [last,last).
match_not_bow "\b" will not match [first,first).
match_not_eow "\b" will not match [last,last).
match_any If more than one match is possible, then any match is an acceptable result.
match_not_null Do not match empty sequences.
match_continuous Only match a sub-sequence that begins at first.
match_prev_avail --first is a valid iterator position. When set, causes match_not_bol and match_not_bow to be ignored.
format_default Use ECMAScript rules to construct strings in Template:cpp.
format_sed Use POSIX sed utility rules in Template:cpp.
format_no_copy Do not copy un-matched strings to the output in Template:cpp.
format_first_only Only replace the first match in Template:cpp.