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