| 94 | } |
| 95 | |
| 96 | std::optional<size_t> StringBox::lastIndexOf(char character) const noexcept { |
| 97 | auto index = toStringView().rfind(character); |
| 98 | if (index == std::string_view::npos) { |
| 99 | return std::nullopt; |
| 100 | } |
| 101 | |
| 102 | return {index}; |
| 103 | } |
| 104 | |
| 105 | std::optional<size_t> StringBox::find(const std::string_view& str) const noexcept { |
| 106 | auto index = toStringView().find(str); |
no outgoing calls
no test coverage detected