tmp/tmpcj74_hwo/{from.md → to.md}
RENAMED
|
@@ -1,38 +1,33 @@
|
|
| 1 |
#### Searching <a id="string.view.find">[[string.view.find]]</a>
|
| 2 |
|
| 3 |
-
|
| 4 |
-
`
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
encouraged to do better.
|
| 10 |
-
|
| 11 |
-
Each member function of the form
|
| 12 |
|
|
|
|
| 13 |
``` cpp
|
| 14 |
-
constexpr return-type F(const charT* s, size_type pos);
|
| 15 |
```
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
Each member function of the form
|
| 20 |
-
|
| 21 |
``` cpp
|
| 22 |
-
constexpr return-type F(const charT* s, size_type pos, size_type n);
|
| 23 |
```
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
Each member function of the form
|
| 28 |
-
|
| 29 |
``` cpp
|
| 30 |
-
constexpr return-type F(charT c, size_type pos);
|
| 31 |
```
|
| 32 |
|
| 33 |
-
|
|
|
|
| 34 |
|
| 35 |
``` cpp
|
| 36 |
constexpr size_type find(basic_string_view str, size_type pos = 0) const noexcept;
|
| 37 |
```
|
| 38 |
|
|
|
|
| 1 |
#### Searching <a id="string.view.find">[[string.view.find]]</a>
|
| 2 |
|
| 3 |
+
Member functions in this subclause have complexity
|
| 4 |
+
𝑂(`size() * str.size()`) at worst, although implementations should do
|
| 5 |
+
better.
|
| 6 |
|
| 7 |
+
Let *F* be one of `find`, `rfind`, `find_first_of`, `find_last_of`,
|
| 8 |
+
`find_first_not_of`, and `find_last_not_of`.
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
+
- Each member function of the form
|
| 11 |
``` cpp
|
| 12 |
+
constexpr return-type F(const charT* s, size_type pos) const;
|
| 13 |
```
|
| 14 |
|
| 15 |
+
has effects equivalent to: `return F(basic_string_view(s), pos);`
|
| 16 |
+
- Each member function of the form
|
|
|
|
|
|
|
| 17 |
``` cpp
|
| 18 |
+
constexpr return-type F(const charT* s, size_type pos, size_type n) const;
|
| 19 |
```
|
| 20 |
|
| 21 |
+
has effects equivalent to: `return F(basic_string_view(s, n), pos);`
|
| 22 |
+
- Each member function of the form
|
|
|
|
|
|
|
| 23 |
``` cpp
|
| 24 |
+
constexpr return-type F(charT c, size_type pos) const noexcept;
|
| 25 |
```
|
| 26 |
|
| 27 |
+
has effects equivalent to:
|
| 28 |
+
`return F(basic_string_view(addressof(c), 1), pos);`
|
| 29 |
|
| 30 |
``` cpp
|
| 31 |
constexpr size_type find(basic_string_view str, size_type pos = 0) const noexcept;
|
| 32 |
```
|
| 33 |
|