tmp/tmpuan9vr7p/{from.md → to.md}
RENAMED
|
@@ -1,44 +0,0 @@
|
|
| 1 |
-
##### `basic_string::rfind` <a id="string.rfind">[[string.rfind]]</a>
|
| 2 |
-
|
| 3 |
-
``` cpp
|
| 4 |
-
size_type rfind(basic_string_view<charT, traits> sv, size_type pos = npos) const noexcept;
|
| 5 |
-
```
|
| 6 |
-
|
| 7 |
-
*Effects:* Determines the highest position `xpos`, if possible, such
|
| 8 |
-
that both of the following conditions hold:
|
| 9 |
-
|
| 10 |
-
- `xpos <= pos` and `xpos + sv.size() <= size()`;
|
| 11 |
-
- `traits::eq(at(xpos + I), sv.at(I))` for all elements `I` of the data
|
| 12 |
-
referenced by `sv`.
|
| 13 |
-
|
| 14 |
-
*Returns:* `xpos` if the function can determine such a value for `xpos`.
|
| 15 |
-
Otherwise, returns `npos`.
|
| 16 |
-
|
| 17 |
-
``` cpp
|
| 18 |
-
size_type rfind(const basic_string& str, size_type pos = npos) const noexcept;
|
| 19 |
-
```
|
| 20 |
-
|
| 21 |
-
*Effects:* Equivalent to:
|
| 22 |
-
`return rfind(basic_string_view<charT, traits>(str), pos);`
|
| 23 |
-
|
| 24 |
-
``` cpp
|
| 25 |
-
size_type rfind(const charT* s, size_type pos, size_type n) const;
|
| 26 |
-
```
|
| 27 |
-
|
| 28 |
-
*Returns:* `rfind(basic_string_view<charT, traits>(s, n), pos)`.
|
| 29 |
-
|
| 30 |
-
``` cpp
|
| 31 |
-
size_type rfind(const charT* s, size_type pos = npos) const;
|
| 32 |
-
```
|
| 33 |
-
|
| 34 |
-
*Requires:* `s` points to an array of at least `traits::length(s) + 1`
|
| 35 |
-
elements of `charT`.
|
| 36 |
-
|
| 37 |
-
*Returns:* `rfind(basic_string_view<charT, traits>(s), pos)`.
|
| 38 |
-
|
| 39 |
-
``` cpp
|
| 40 |
-
size_type rfind(charT c, size_type pos = npos) const;
|
| 41 |
-
```
|
| 42 |
-
|
| 43 |
-
*Returns:* `rfind(basic_string(1, c), pos)`.
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|