std::regex_constants::match_flag_type
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <regex> 中定义
|
||
typedef /*unspecified*/ match_flag_type; static constexpr match_flag_type match_default = 0 |
||
BitmaskType
,下面的常量定义BitmaskType
, the following constants are defined:[first, last)
是指被匹配的字符序列.[first, last)
refers to the character sequence being matched. 常数
|
Explanation |
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“的”不匹配“[第一次,第一次)”.
|
match_not_eow
|
“”\ b“的”不匹配“,最后) .
|
match_any
|
如果多于一个匹配是可能的,那么任何比赛的是一个可以接受的结果.
原文: If more than one match is possible, then any match is an acceptable result. |
match_not_null
|
不匹配空序列.
|
match_continuous
|
只匹配子序列,在“第一”开始
原文: Only match a sub-sequence that begins at first |
match_prev_avail
|
“ - 第一个”是一个有效的迭代器位置。当设置,使“match_not_bol”和“match_not_bow”被忽略的.
原文: --first is a valid iterator position. When set, causes match_not_bol and match_not_bow to be ignored. |
format_default
|
使用ECMAScript的规则来构造字符串std::regex_replace(syntax documentation)
原文: Use ECMAScript rules to construct strings in std::regex_replace (syntax documentation) |
format_sed
|
使用POSIX的“SED”实用规则std::regex_replace。 (syntax documentation)
原文: Use POSIX sed utility rules in std::regex_replace. (syntax documentation) |
format_no_copy
|
不要复制不匹配的字符串的输出std::regex_replace.
原文: Do not copy un-matched strings to the output in std::regex_replace. |
format_first_only
|
只有更换的首场比赛中std::regex_replace
原文: Only replace the first match in std::regex_replace |