From Jason Turner

[string::rfind]

Diff to HTML by rtfpessoa

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