* @brief Find the last occurrence of a substring. * @return The offset of the first character of the match, or `npos` if not found. */
| 2162 | * @return The offset of the first character of the match, or `npos` if not found. |
| 2163 | */ |
| 2164 | size_type rfind(string_view other) const noexcept { |
| 2165 | auto ptr = sz_rfind(start_, length_, other.data(), other.size()); |
| 2166 | return ptr ? ptr - start_ : npos; |
| 2167 | } |
| 2168 | |
| 2169 | /** |
| 2170 | * @brief Find the last occurrence of a substring, within first `until` characters. |