| 103 | } |
| 104 | |
| 105 | std::optional<size_t> StringBox::find(const std::string_view& str) const noexcept { |
| 106 | auto index = toStringView().find(str); |
| 107 | if (index == std::string_view::npos) { |
| 108 | return std::nullopt; |
| 109 | } |
| 110 | |
| 111 | return {index}; |
| 112 | } |
| 113 | |
| 114 | bool StringBox::contains(const std::string_view& str) const noexcept { |
| 115 | return toStringView().find(str) != std::string_view::npos; |
no outgoing calls
no test coverage detected