tmp/tmpfa28by1u/{from.md → to.md}
RENAMED
|
@@ -1,37 +1,37 @@
|
|
| 1 |
-
###
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
difference_type length(size_type sub = 0) const;
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*
|
| 8 |
|
| 9 |
*Returns:* `(*this)[sub].length()`.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
difference_type position(size_type sub = 0) const;
|
| 13 |
```
|
| 14 |
|
| 15 |
-
*
|
| 16 |
|
| 17 |
*Returns:* The distance from the start of the target sequence to
|
| 18 |
`(*this)[sub].first`.
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
string_type str(size_type sub = 0) const;
|
| 22 |
```
|
| 23 |
|
| 24 |
-
*
|
| 25 |
|
| 26 |
*Returns:* `string_type((*this)[sub])`.
|
| 27 |
|
| 28 |
``` cpp
|
| 29 |
const_reference operator[](size_type n) const;
|
| 30 |
```
|
| 31 |
|
| 32 |
-
*
|
| 33 |
|
| 34 |
*Returns:* A reference to the `sub_match` object representing the
|
| 35 |
character sequence that matched marked sub-expression `n`. If `n == 0`
|
| 36 |
then returns a reference to a `sub_match` object representing the
|
| 37 |
character sequence that matched the whole regular expression. If
|
|
@@ -40,21 +40,21 @@ unmatched sub-expression.
|
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
const_reference prefix() const;
|
| 43 |
```
|
| 44 |
|
| 45 |
-
*
|
| 46 |
|
| 47 |
*Returns:* A reference to the `sub_match` object representing the
|
| 48 |
character sequence from the start of the string being matched/searched
|
| 49 |
to the start of the match found.
|
| 50 |
|
| 51 |
``` cpp
|
| 52 |
const_reference suffix() const;
|
| 53 |
```
|
| 54 |
|
| 55 |
-
*
|
| 56 |
|
| 57 |
*Returns:* A reference to the `sub_match` object representing the
|
| 58 |
character sequence from the end of the match found to the end of the
|
| 59 |
string being matched/searched.
|
| 60 |
|
|
|
|
| 1 |
+
### Element access <a id="re.results.acc">[[re.results.acc]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
difference_type length(size_type sub = 0) const;
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Preconditions:* `ready() == true`.
|
| 8 |
|
| 9 |
*Returns:* `(*this)[sub].length()`.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
difference_type position(size_type sub = 0) const;
|
| 13 |
```
|
| 14 |
|
| 15 |
+
*Preconditions:* `ready() == true`.
|
| 16 |
|
| 17 |
*Returns:* The distance from the start of the target sequence to
|
| 18 |
`(*this)[sub].first`.
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
string_type str(size_type sub = 0) const;
|
| 22 |
```
|
| 23 |
|
| 24 |
+
*Preconditions:* `ready() == true`.
|
| 25 |
|
| 26 |
*Returns:* `string_type((*this)[sub])`.
|
| 27 |
|
| 28 |
``` cpp
|
| 29 |
const_reference operator[](size_type n) const;
|
| 30 |
```
|
| 31 |
|
| 32 |
+
*Preconditions:* `ready() == true`.
|
| 33 |
|
| 34 |
*Returns:* A reference to the `sub_match` object representing the
|
| 35 |
character sequence that matched marked sub-expression `n`. If `n == 0`
|
| 36 |
then returns a reference to a `sub_match` object representing the
|
| 37 |
character sequence that matched the whole regular expression. If
|
|
|
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
const_reference prefix() const;
|
| 43 |
```
|
| 44 |
|
| 45 |
+
*Preconditions:* `ready() == true`.
|
| 46 |
|
| 47 |
*Returns:* A reference to the `sub_match` object representing the
|
| 48 |
character sequence from the start of the string being matched/searched
|
| 49 |
to the start of the match found.
|
| 50 |
|
| 51 |
``` cpp
|
| 52 |
const_reference suffix() const;
|
| 53 |
```
|
| 54 |
|
| 55 |
+
*Preconditions:* `ready() == true`.
|
| 56 |
|
| 57 |
*Returns:* A reference to the `sub_match` object representing the
|
| 58 |
character sequence from the end of the match found to the end of the
|
| 59 |
string being matched/searched.
|
| 60 |
|