From Jason Turner

[re.alg.search]

Diff to HTML by rtfpessoa

tmp/tmpp7z91dpe/{from.md → to.md} RENAMED
@@ -24,25 +24,25 @@ that `m.size()` returns `0` and `m.empty()` returns `true`. Otherwise
24
  the effects on parameter `m` are given in Table  [[tab:re:alg:search]].
25
 
26
  **Table: Effects of `regex_search` algorithm** <a id="tab:re:alg:search">[tab:re:alg:search]</a>
27
 
28
  | Element | Value |
29
- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
30
  | `m.size()` | `1 + e.mark_count()` |
31
  | `m.empty()` | `false` |
32
  | `m.prefix().first` | `first` |
33
  | `m.prefix().second` | `m[0].first` |
34
  | `m.prefix().matched` | `m.prefix().first != m.prefix().second` |
35
  | `m.suffix().first` | `m[0].second` |
36
  | `m.suffix().second` | `last` |
37
  | `m.suffix().matched` | `m.suffix().first != m.suffix().second` |
38
  | `m[0].first` | The start of the sequence of characters that matched the regular expression |
39
  | `m[0].second` | The end of the sequence of characters that matched the regular expression |
40
- | `m[0].matched` | `true` if a match was found, and `false` otherwise. |
41
- | `m[n].first` | For all integers `n < m.size()`, the start of the sequence that matched sub-expression `n`. Alternatively, if sub-expression `n` did not participate in the match, then `last`. |
42
- | `m[n].second` | For all integers `n < m.size()`, the end of the sequence that matched sub-expression `n`. Alternatively, if sub-expression `n` did not participate in the match, then `last` . |
43
- | `m[n].matched` | For all integers `n < m.size()`, `true` if sub-expression `n` participated in the match, `false` otherwise. |
44
 
45
  ``` cpp
46
  template <class charT, class Allocator, class traits>
47
  bool regex_search(const charT* str, match_results<const charT*, Allocator>& m,
48
  const basic_regex<charT, traits>& e,
 
24
  the effects on parameter `m` are given in Table  [[tab:re:alg:search]].
25
 
26
  **Table: Effects of `regex_search` algorithm** <a id="tab:re:alg:search">[tab:re:alg:search]</a>
27
 
28
  | Element | Value |
29
+ | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
30
  | `m.size()` | `1 + e.mark_count()` |
31
  | `m.empty()` | `false` |
32
  | `m.prefix().first` | `first` |
33
  | `m.prefix().second` | `m[0].first` |
34
  | `m.prefix().matched` | `m.prefix().first != m.prefix().second` |
35
  | `m.suffix().first` | `m[0].second` |
36
  | `m.suffix().second` | `last` |
37
  | `m.suffix().matched` | `m.suffix().first != m.suffix().second` |
38
  | `m[0].first` | The start of the sequence of characters that matched the regular expression |
39
  | `m[0].second` | The end of the sequence of characters that matched the regular expression |
40
+ | `m[0].matched` | `true` |
41
+ | `m[n].first` | For all integers `0 < n < m.size()`, the start of the sequence that matched sub-expression `n`. Alternatively, if sub-expression `n` did not participate in the match, then `last`. |
42
+ | `m[n].second` | For all integers `0 < n < m.size()`, the end of the sequence that matched sub-expression `n`. Alternatively, if sub-expression `n` did not participate in the match, then `last` . |
43
+ | `m[n].matched` | For all integers `0 < n < m.size()`, `true` if sub-expression `n` participated in the match, `false` otherwise. |
44
 
45
  ``` cpp
46
  template <class charT, class Allocator, class traits>
47
  bool regex_search(const charT* str, match_results<const charT*, Allocator>& m,
48
  const basic_regex<charT, traits>& e,