From Jason Turner

[string::find]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpgxo0mtai/{from.md → to.md} +0 -40
tmp/tmpgxo0mtai/{from.md → to.md} RENAMED
@@ -1,40 +0,0 @@
1
- #### `basic_string::find` <a id="string::find">[[string::find]]</a>
2
-
3
- ``` cpp
4
- size_type find(const basic_string& str,
5
- size_type pos = 0) const noexcept;
6
- ```
7
-
8
- *Effects:* Determines the lowest position `xpos`, if possible, such that
9
- both of the following conditions obtain:
10
-
11
- - `pos <= xpos` 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 find(const charT* s, size_type pos, size_type n) const;
22
- ```
23
-
24
- *Returns:* `find(basic_string(s,n),pos)`.
25
-
26
- ``` cpp
27
- size_type find(const charT* s, size_type pos = 0) const;
28
- ```
29
-
30
- *Requires:* `s` points to an array of at least `traits::length(s) + 1`
31
- elements of `charT`.
32
-
33
- *Returns:* `find(basic_string(s), pos)`.
34
-
35
- ``` cpp
36
- size_type find(charT c, size_type pos = 0) const;
37
- ```
38
-
39
- *Returns:* `find(basic_string(1,c), pos)`.
40
-