From Jason Turner

[string::find.last.of]

Diff to HTML by rtfpessoa

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