tmp/tmppkrb2vq_/{from.md → to.md}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
-
### Class template `regex_token_iterator` <a id="re.tokiter">[[re.tokiter]]</a>
|
| 2 |
|
| 3 |
-
#### General <a id="re.tokiter.general">[[re.tokiter.general]]</a>
|
| 4 |
|
| 5 |
The class template `regex_token_iterator` is an iterator adaptor; that
|
| 6 |
is to say it represents a new view of an existing iterator sequence, by
|
| 7 |
enumerating all the occurrences of a regular expression within that
|
| 8 |
sequence, and presenting one or more sub-expressions for each match
|
|
@@ -136,11 +136,11 @@ same as the end of the last match found, and `suffix.second` is the same
|
|
| 136 |
as the end of the target sequence. — *end note*]
|
| 137 |
|
| 138 |
The *current match* is `(*position).prefix()` if `subs[N] == -1`, or
|
| 139 |
`(*position)[subs[N]]` for any other value of `subs[N]`.
|
| 140 |
|
| 141 |
-
#### Constructors <a id="re.tokiter.cnstr">[[re.tokiter.cnstr]]</a>
|
| 142 |
|
| 143 |
``` cpp
|
| 144 |
regex_token_iterator();
|
| 145 |
```
|
| 146 |
|
|
@@ -184,11 +184,11 @@ end-of-sequence iterator the constructor sets `result` to the address of
|
|
| 184 |
the current match. Otherwise if any of the values stored in `subs` is
|
| 185 |
equal to -1 the constructor sets `*this` to a suffix iterator that
|
| 186 |
points to the range \[`a`, `b`), otherwise the constructor sets `*this`
|
| 187 |
to an end-of-sequence iterator.
|
| 188 |
|
| 189 |
-
#### Comparisons <a id="re.tokiter.comp">[[re.tokiter.comp]]</a>
|
| 190 |
|
| 191 |
``` cpp
|
| 192 |
bool operator==(const regex_token_iterator& right) const;
|
| 193 |
```
|
| 194 |
|
|
@@ -197,11 +197,11 @@ iterators, or if `*this` and `right` are both suffix iterators and
|
|
| 197 |
`suffix == right.suffix`; otherwise returns `false` if `*this` or
|
| 198 |
`right` is an end-of-sequence iterator or a suffix iterator. Otherwise
|
| 199 |
returns `true` if `position == right.position`, `N == right.N`, and
|
| 200 |
`subs == right.subs`. Otherwise returns `false`.
|
| 201 |
|
| 202 |
-
#### Indirection <a id="re.tokiter.deref">[[re.tokiter.deref]]</a>
|
| 203 |
|
| 204 |
``` cpp
|
| 205 |
const value_type& operator*() const;
|
| 206 |
```
|
| 207 |
|
|
@@ -211,11 +211,11 @@ const value_type& operator*() const;
|
|
| 211 |
const value_type* operator->() const;
|
| 212 |
```
|
| 213 |
|
| 214 |
*Returns:* `result`.
|
| 215 |
|
| 216 |
-
#### Increment <a id="re.tokiter.incr">[[re.tokiter.incr]]</a>
|
| 217 |
|
| 218 |
``` cpp
|
| 219 |
regex_token_iterator& operator++();
|
| 220 |
```
|
| 221 |
|
|
@@ -237,11 +237,11 @@ Otherwise, if any of the values stored in `subs` is equal to -1 and
|
|
| 237 |
iterator that points to the range \[`prev->suffix().first`,
|
| 238 |
`prev->suffix().second`).
|
| 239 |
|
| 240 |
Otherwise, sets `*this` to an end-of-sequence iterator.
|
| 241 |
|
| 242 |
-
*Returns:* `*this`
|
| 243 |
|
| 244 |
``` cpp
|
| 245 |
regex_token_iterator& operator++(int);
|
| 246 |
```
|
| 247 |
|
|
|
|
| 1 |
+
#### Class template `regex_token_iterator` <a id="re.tokiter">[[re.tokiter]]</a>
|
| 2 |
|
| 3 |
+
##### General <a id="re.tokiter.general">[[re.tokiter.general]]</a>
|
| 4 |
|
| 5 |
The class template `regex_token_iterator` is an iterator adaptor; that
|
| 6 |
is to say it represents a new view of an existing iterator sequence, by
|
| 7 |
enumerating all the occurrences of a regular expression within that
|
| 8 |
sequence, and presenting one or more sub-expressions for each match
|
|
|
|
| 136 |
as the end of the target sequence. — *end note*]
|
| 137 |
|
| 138 |
The *current match* is `(*position).prefix()` if `subs[N] == -1`, or
|
| 139 |
`(*position)[subs[N]]` for any other value of `subs[N]`.
|
| 140 |
|
| 141 |
+
##### Constructors <a id="re.tokiter.cnstr">[[re.tokiter.cnstr]]</a>
|
| 142 |
|
| 143 |
``` cpp
|
| 144 |
regex_token_iterator();
|
| 145 |
```
|
| 146 |
|
|
|
|
| 184 |
the current match. Otherwise if any of the values stored in `subs` is
|
| 185 |
equal to -1 the constructor sets `*this` to a suffix iterator that
|
| 186 |
points to the range \[`a`, `b`), otherwise the constructor sets `*this`
|
| 187 |
to an end-of-sequence iterator.
|
| 188 |
|
| 189 |
+
##### Comparisons <a id="re.tokiter.comp">[[re.tokiter.comp]]</a>
|
| 190 |
|
| 191 |
``` cpp
|
| 192 |
bool operator==(const regex_token_iterator& right) const;
|
| 193 |
```
|
| 194 |
|
|
|
|
| 197 |
`suffix == right.suffix`; otherwise returns `false` if `*this` or
|
| 198 |
`right` is an end-of-sequence iterator or a suffix iterator. Otherwise
|
| 199 |
returns `true` if `position == right.position`, `N == right.N`, and
|
| 200 |
`subs == right.subs`. Otherwise returns `false`.
|
| 201 |
|
| 202 |
+
##### Indirection <a id="re.tokiter.deref">[[re.tokiter.deref]]</a>
|
| 203 |
|
| 204 |
``` cpp
|
| 205 |
const value_type& operator*() const;
|
| 206 |
```
|
| 207 |
|
|
|
|
| 211 |
const value_type* operator->() const;
|
| 212 |
```
|
| 213 |
|
| 214 |
*Returns:* `result`.
|
| 215 |
|
| 216 |
+
##### Increment <a id="re.tokiter.incr">[[re.tokiter.incr]]</a>
|
| 217 |
|
| 218 |
``` cpp
|
| 219 |
regex_token_iterator& operator++();
|
| 220 |
```
|
| 221 |
|
|
|
|
| 237 |
iterator that points to the range \[`prev->suffix().first`,
|
| 238 |
`prev->suffix().second`).
|
| 239 |
|
| 240 |
Otherwise, sets `*this` to an end-of-sequence iterator.
|
| 241 |
|
| 242 |
+
*Returns:* `*this`.
|
| 243 |
|
| 244 |
``` cpp
|
| 245 |
regex_token_iterator& operator++(int);
|
| 246 |
```
|
| 247 |
|