tmp/tmpdulkmx0r/{from.md → to.md}
RENAMED
|
@@ -62,20 +62,20 @@ basic_regex& assign(const charT* p, size_t len, flag_type f = regex_constants::E
|
|
| 62 |
template<class ST, class SA>
|
| 63 |
basic_regex& assign(const basic_string<charT, ST, SA>& s,
|
| 64 |
flag_type f = regex_constants::ECMAScript);
|
| 65 |
```
|
| 66 |
|
| 67 |
-
*Returns:* `*this`.
|
| 68 |
-
|
| 69 |
*Effects:* Assigns the regular expression contained in the string `s`,
|
| 70 |
interpreted according the flags specified in `f`. If an exception is
|
| 71 |
thrown, `*this` is unchanged.
|
| 72 |
|
| 73 |
*Ensures:* If no exception is thrown, `flags()` returns `f` and
|
| 74 |
`mark_count()` returns the number of marked sub-expressions within the
|
| 75 |
expression.
|
| 76 |
|
|
|
|
|
|
|
| 77 |
*Throws:* `regex_error` if `s` is not a valid regular expression.
|
| 78 |
|
| 79 |
``` cpp
|
| 80 |
template<class InputIterator>
|
| 81 |
basic_regex& assign(InputIterator first, InputIterator last,
|
|
|
|
| 62 |
template<class ST, class SA>
|
| 63 |
basic_regex& assign(const basic_string<charT, ST, SA>& s,
|
| 64 |
flag_type f = regex_constants::ECMAScript);
|
| 65 |
```
|
| 66 |
|
|
|
|
|
|
|
| 67 |
*Effects:* Assigns the regular expression contained in the string `s`,
|
| 68 |
interpreted according the flags specified in `f`. If an exception is
|
| 69 |
thrown, `*this` is unchanged.
|
| 70 |
|
| 71 |
*Ensures:* If no exception is thrown, `flags()` returns `f` and
|
| 72 |
`mark_count()` returns the number of marked sub-expressions within the
|
| 73 |
expression.
|
| 74 |
|
| 75 |
+
*Returns:* `*this`.
|
| 76 |
+
|
| 77 |
*Throws:* `regex_error` if `s` is not a valid regular expression.
|
| 78 |
|
| 79 |
``` cpp
|
| 80 |
template<class InputIterator>
|
| 81 |
basic_regex& assign(InputIterator first, InputIterator last,
|