From Jason Turner

[string.view.find]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpcj74_hwo/{from.md → to.md} +15 -20
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
- This section specifies the `basic_string_view` member functions named
4
- `find`, `rfind`, `find_first_of`, `find_last_of`, `find_first_not_of`,
5
- and `find_last_not_of`.
6
 
7
- Member functions in this section have complexity
8
- 𝑂(`size() * str.size()`) at worst, although implementations are
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
- is equivalent to `return F(basic_string_view(s), pos);`
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
- is equivalent to `return F(basic_string_view(s, n), pos);`
26
-
27
- Each member function of the form
28
-
29
  ``` cpp
30
- constexpr return-type F(charT c, size_type pos);
31
  ```
32
 
33
- is equivalent to `return F(basic_string_view(&c, 1), pos);`
 
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