From Jason Turner

[re.regex]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpi7ukjxbt/{from.md → to.md} +10 -10
tmp/tmpi7ukjxbt/{from.md → to.md} RENAMED
@@ -1,8 +1,8 @@
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
@@ -27,13 +27,13 @@ namespace std {
27
  class basic_regex {
28
  public:
29
  // types
30
  using value_type = charT;
31
  using traits_type = traits;
32
- using string_type = typename traits::string_type;
33
  using flag_type = regex_constants::syntax_option_type;
34
- using locale_type = typename traits::locale_type;
35
 
36
  // [re.synopt], constants
37
  static constexpr flag_type icase = regex_constants::icase;
38
  static constexpr flag_type nosubs = regex_constants::nosubs;
39
  static constexpr flag_type optimize = regex_constants::optimize;
@@ -100,11 +100,11 @@ namespace std {
100
  regex_constants::syntax_option_type = regex_constants::ECMAScript)
101
  -> basic_regex<typename iterator_traits<ForwardIterator>::value_type>;
102
  }
103
  ```
104
 
105
- ### Constructors <a id="re.regex.construct">[[re.regex.construct]]</a>
106
 
107
  ``` cpp
108
  basic_regex();
109
  ```
110
 
@@ -194,11 +194,11 @@ valid regular expression.
194
  basic_regex(initializer_list<charT> il, flag_type f = regex_constants::ECMAScript);
195
  ```
196
 
197
  *Effects:* Same as `basic_regex(il.begin(), il.end(), f)`.
198
 
199
- ### Assignment <a id="re.regex.assign">[[re.regex.assign]]</a>
200
 
201
  ``` cpp
202
  basic_regex& operator=(const basic_regex& e);
203
  ```
204
 
@@ -287,11 +287,11 @@ basic_regex& assign(initializer_list<charT> il,
287
  flag_type f = regex_constants::ECMAScript);
288
  ```
289
 
290
  *Effects:* Equivalent to: `return assign(il.begin(), il.end(), f);`
291
 
292
- ### Constant operations <a id="re.regex.operations">[[re.regex.operations]]</a>
293
 
294
  ``` cpp
295
  unsigned mark_count() const;
296
  ```
297
 
@@ -303,11 +303,11 @@ flag_type flags() const;
303
  ```
304
 
305
  *Effects:* Returns a copy of the regular expression syntax flags that
306
  were passed to the object’s constructor or to the last call to `assign`.
307
 
308
- ### Locale <a id="re.regex.locale">[[re.regex.locale]]</a>
309
 
310
  ``` cpp
311
  locale_type imbue(locale_type loc);
312
  ```
313
 
@@ -322,11 +322,11 @@ locale_type getloc() const;
322
 
323
  *Effects:* Returns the result of `traits_inst.getloc()` where
324
  `traits_inst` is a (default-initialized) instance of the template
325
  parameter `traits` stored within the object.
326
 
327
- ### Swap <a id="re.regex.swap">[[re.regex.swap]]</a>
328
 
329
  ``` cpp
330
  void swap(basic_regex& e);
331
  ```
332
 
@@ -335,11 +335,11 @@ void swap(basic_regex& e);
335
  *Ensures:* `*this` contains the regular expression that was in `e`, `e`
336
  contains the regular expression that was in `*this`.
337
 
338
  *Complexity:* Constant time.
339
 
340
- ### Non-member functions <a id="re.regex.nonmemb">[[re.regex.nonmemb]]</a>
341
 
342
  ``` cpp
343
  template<class charT, class traits>
344
  void swap(basic_regex<charT, traits>& lhs, basic_regex<charT, traits>& rhs);
345
  ```
 
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
 
27
  class basic_regex {
28
  public:
29
  // types
30
  using value_type = charT;
31
  using traits_type = traits;
32
+ using string_type = traits::string_type;
33
  using flag_type = regex_constants::syntax_option_type;
34
+ using locale_type = traits::locale_type;
35
 
36
  // [re.synopt], constants
37
  static constexpr flag_type icase = regex_constants::icase;
38
  static constexpr flag_type nosubs = regex_constants::nosubs;
39
  static constexpr flag_type optimize = regex_constants::optimize;
 
100
  regex_constants::syntax_option_type = regex_constants::ECMAScript)
101
  -> basic_regex<typename iterator_traits<ForwardIterator>::value_type>;
102
  }
103
  ```
104
 
105
+ #### Constructors <a id="re.regex.construct">[[re.regex.construct]]</a>
106
 
107
  ``` cpp
108
  basic_regex();
109
  ```
110
 
 
194
  basic_regex(initializer_list<charT> il, flag_type f = regex_constants::ECMAScript);
195
  ```
196
 
197
  *Effects:* Same as `basic_regex(il.begin(), il.end(), f)`.
198
 
199
+ #### Assignment <a id="re.regex.assign">[[re.regex.assign]]</a>
200
 
201
  ``` cpp
202
  basic_regex& operator=(const basic_regex& e);
203
  ```
204
 
 
287
  flag_type f = regex_constants::ECMAScript);
288
  ```
289
 
290
  *Effects:* Equivalent to: `return assign(il.begin(), il.end(), f);`
291
 
292
+ #### Constant operations <a id="re.regex.operations">[[re.regex.operations]]</a>
293
 
294
  ``` cpp
295
  unsigned mark_count() const;
296
  ```
297
 
 
303
  ```
304
 
305
  *Effects:* Returns a copy of the regular expression syntax flags that
306
  were passed to the object’s constructor or to the last call to `assign`.
307
 
308
+ #### Locale <a id="re.regex.locale">[[re.regex.locale]]</a>
309
 
310
  ``` cpp
311
  locale_type imbue(locale_type loc);
312
  ```
313
 
 
322
 
323
  *Effects:* Returns the result of `traits_inst.getloc()` where
324
  `traits_inst` is a (default-initialized) instance of the template
325
  parameter `traits` stored within the object.
326
 
327
+ #### Swap <a id="re.regex.swap">[[re.regex.swap]]</a>
328
 
329
  ``` cpp
330
  void swap(basic_regex& e);
331
  ```
332
 
 
335
  *Ensures:* `*this` contains the regular expression that was in `e`, `e`
336
  contains the regular expression that was in `*this`.
337
 
338
  *Complexity:* Constant time.
339
 
340
+ #### Non-member functions <a id="re.regex.nonmemb">[[re.regex.nonmemb]]</a>
341
 
342
  ``` cpp
343
  template<class charT, class traits>
344
  void swap(basic_regex<charT, traits>& lhs, basic_regex<charT, traits>& rhs);
345
  ```