From Jason Turner

[re.regex]

Diff to HTML by rtfpessoa

tmp/tmpb3on4bqa/{from.md → to.md} RENAMED
@@ -1,7 +1,9 @@
1
  ## Class template `basic_regex` <a id="re.regex">[[re.regex]]</a>
2
 
 
 
3
  For a char-like type `charT`, specializations of class template
4
  `basic_regex` represent regular expressions constructed from character
5
  sequences of `charT` characters. In the rest of  [[re.regex]], `charT`
6
  denotes a given char-like type. Storage for a regular expression is
7
  allocated and freed as necessary by the member functions of class
@@ -14,11 +16,11 @@ nor how it is accessed by algorithms that operate on regular
14
  expressions.
15
 
16
  [*Note 1*: Implementations will typically declare some function
17
  templates as friends of `basic_regex` to achieve this. — *end note*]
18
 
19
- The functions described in this Clause report errors by throwing
20
  exceptions of type `regex_error`.
21
 
22
  ``` cpp
23
  namespace std {
24
  template<class charT, class traits = regex_traits<charT>>
@@ -258,20 +260,20 @@ basic_regex& assign(const charT* p, size_t len, flag_type f = regex_constants::E
258
  template<class ST, class SA>
259
  basic_regex& assign(const basic_string<charT, ST, SA>& s,
260
  flag_type f = regex_constants::ECMAScript);
261
  ```
262
 
263
- *Returns:* `*this`.
264
-
265
  *Effects:* Assigns the regular expression contained in the string `s`,
266
  interpreted according the flags specified in `f`. If an exception is
267
  thrown, `*this` is unchanged.
268
 
269
  *Ensures:* If no exception is thrown, `flags()` returns `f` and
270
  `mark_count()` returns the number of marked sub-expressions within the
271
  expression.
272
 
 
 
273
  *Throws:* `regex_error` if `s` is not a valid regular expression.
274
 
275
  ``` cpp
276
  template<class InputIterator>
277
  basic_regex& assign(InputIterator first, InputIterator last,
 
1
  ## Class template `basic_regex` <a id="re.regex">[[re.regex]]</a>
2
 
3
+ ### General <a id="re.regex.general">[[re.regex.general]]</a>
4
+
5
  For a char-like type `charT`, specializations of class template
6
  `basic_regex` represent regular expressions constructed from character
7
  sequences of `charT` characters. In the rest of  [[re.regex]], `charT`
8
  denotes a given char-like type. Storage for a regular expression is
9
  allocated and freed as necessary by the member functions of class
 
16
  expressions.
17
 
18
  [*Note 1*: Implementations will typically declare some function
19
  templates as friends of `basic_regex` to achieve this. — *end note*]
20
 
21
+ The functions described in [[re.regex]] report errors by throwing
22
  exceptions of type `regex_error`.
23
 
24
  ``` cpp
25
  namespace std {
26
  template<class charT, class traits = regex_traits<charT>>
 
260
  template<class ST, class SA>
261
  basic_regex& assign(const basic_string<charT, ST, SA>& s,
262
  flag_type f = regex_constants::ECMAScript);
263
  ```
264
 
 
 
265
  *Effects:* Assigns the regular expression contained in the string `s`,
266
  interpreted according the flags specified in `f`. If an exception is
267
  thrown, `*this` is unchanged.
268
 
269
  *Ensures:* If no exception is thrown, `flags()` returns `f` and
270
  `mark_count()` returns the number of marked sub-expressions within the
271
  expression.
272
 
273
+ *Returns:* `*this`.
274
+
275
  *Throws:* `regex_error` if `s` is not a valid regular expression.
276
 
277
  ``` cpp
278
  template<class InputIterator>
279
  basic_regex& assign(InputIterator first, InputIterator last,