| 83 | } |
| 84 | |
| 85 | string_view::size_type string_view::find(string_view v, |
| 86 | size_type pos) const noexcept |
| 87 | { |
| 88 | if (pos < size_) { |
| 89 | for (; pos + v.size_ <= size_; ++pos) { |
| 90 | if (std::char_traits<char>::compare(data_ + pos, v.data_, v.size_) == |
| 91 | 0) { |
| 92 | return pos; |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | return npos; |
| 97 | } |
| 98 | |
| 99 | string_view::size_type string_view::find(char c, size_type pos) const noexcept |
| 100 | { |