regex_constants::match_flag_type

規則運算式比對選項的旗標。

typedef T2 match_flag_type;
static const match_flag_type match_any, match_default, match_not_bol,
  match_not_bow, match_continuous, match_not_eol, match_not_eow,
  match_not_null, match_partial, match_prev_avail;

備註

型別是位元遮罩類型,將告訴您要用來比對規則運算式和格式的文字序列旗標的取代文字時所使用的選項。可與合併選項|.

比對選項如下:

match_default

match_not_bol-不作為行首將目標序列中的第一個位置

match_not_eol-不作為行尾將目標序列中的過去結束位置

match_not_bow-為字首不將目標序列中的第一個位置

match_not_eow-不要將目標序列中的過去結束位置為一個字結尾

match_any-如果可能有一個以上的符合項目是可以接受的任何符合的項目

match_not_null-不相符的項目以將空的子序列

match_continuous-不搜尋符合的項目以外的其他目標序列的開頭

match_prev_avail- --first是有效的 iterator ; ignore match_not_bol and match_not_bow if set

格式旗標如下:

format_default-使用 ECMAScript 格式規則

format_sed-使用 sed 格式規則

format_no_copy-不會複製不符合規則運算式的文字

format_first_only-第一個不搜尋的符合項目

需求

標頭: <regex>

Namespace: 標準

請參閱

參考

<regex>

regex_constants Class

其他資源

<regex> 成員