| basic_regex(); |
(1) |
(C++11 起) |
| |
(2) |
(C++11 起) |
| |
(3) |
(C++11 起) |
| basic_regex( const basic_regex& other ); |
(4) |
(C++11 起) |
| basic_regex( basic_regex&& other ); |
(5) |
(C++11 起) |
| |
(6) |
(C++11 起) |
| |
(7) |
(C++11 起) |
| |
(8) |
(C++11 起) |
| | |
构造一个新的正则表达式,从一个字符序列解释根据标志
f.
原文:
Constructs a new regex from a sequence of characters interpreted according to the flags f.
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。
1) 默认构造函数。构造一个空的正则表达式,将匹配任何.
原文:
Default constructor. Constructs an empty regular expression which will match nothing.
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。
2) 构造一个正则表达式从一个空结束的字符串
s.
原文:
Constructs a regex from a null-terminated string s.
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。
3) count字符序列,构造一个正则表达式指出,
s.
原文:
Constructs a regex from a sequence of count characters, pointed to by s.
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。
4) 拷贝构造函数。构造一个正则表达式复制
other原文:
Copy constructor. Constructs a regex by copying other
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。
5) 移动的构造函数。构造一个正则表达式
other使用移动语义的内容.
原文:
Move constructor. Constructs a regex by with the contents of other using move semantics.
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。
6) 构造一个正则表达式从字符串
str原文:
Constructs a regex from a string str.
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。
7) 范围的构造函数。构造的字符串的内容的范围内
[first, last).
原文:
Range constructor. Constructs the string with the contents of the range [first, last).
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。
8) 初始值设定项列表的构造函数。构造的字符串初始化列表的内容
init原文:
Initializer list constructor. Constructs the string with the contents of the initializer list init.
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。
[编辑] 参数
| s
|
-
|
指向一个空结束的字符串的指针 原文: pointer to a null-terminated string 文本通过 谷歌翻译机器翻译。 你可以帮忙校正和验证翻译。点击 此处查看指示。
|
| count
|
-
|
一个字符序列,用于初始化的正则表达式的长度 原文: length of a character sequence used to initialize the regex 文本通过 谷歌翻译机器翻译。 你可以帮忙校正和验证翻译。点击 此处查看指示。
|
| first, last
|
-
|
用于初始化的正则表达式的一个字符序列的范围内 原文: range of a character sequence used to initialize the regex 文本通过 谷歌翻译机器翻译。 你可以帮忙校正和验证翻译。点击 此处查看指示。
|
| str
|
-
|
作为一个basic_string的正则表达式用于初始化的来源 原文: a basic_string used as a source used to initialize the regex 文本通过 谷歌翻译机器翻译。 你可以帮忙校正和验证翻译。点击 此处查看指示。
|
| other
|
-
|
另一个正则表达式作为源使用到初始化的正则表达式 原文: another regex to use as source to initialize the regex 文本通过 谷歌翻译机器翻译。 你可以帮忙校正和验证翻译。点击 此处查看指示。
|
| init
|
-
|
初始化列表中使用到初始化的正则表达式 原文: initializer list used to initialize the regex 文本通过 谷歌翻译机器翻译。 你可以帮忙校正和验证翻译。点击 此处查看指示。
|
| f
|
-
|
标志用于指导解释为正则表达式的字符序列 原文: flags used to guide the interpretation of the character sequence as a regular expression 文本通过 谷歌翻译机器翻译。 你可以帮忙校正和验证翻译。点击 此处查看指示。
|
| 类型要求
|
-ForwardIt 必须满足 ForwardIterator 的要求。
|
[编辑] 例外
1) (无)
原文:
(none)
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。
2-3) std::regex_error如果所提供的正则表达式是无效的.....
原文:
std::regex_error if the supplied regular expression is not valid.
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。
5-8) std::regex_error如果所提供的正则表达式是无效的.....
原文:
std::regex_error if the supplied regular expression is not valid.
文本通过
谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击
此处查看指示。