MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / rfind

Method rfind

include/stringzilla/stringzilla.hpp:3201–3201  ·  view source on GitHub ↗

* @brief Find the last occurrence of a substring. * @return The offset of the first character of the match, or `npos` if not found. */

Source from the content-addressed store, hash-verified

3199 * @return The offset of the first character of the match, or `npos` if not found.
3200 */
3201 size_type rfind(string_view other) const noexcept { return view().rfind(other); }
3202
3203 /**
3204 * @brief Find the last occurrence of a substring, within first `until` characters.

Callers 6

test_unit_globalsFunction · 0.45
check_identicalFunction · 0.45
sz_rfindFunction · 0.45
operator()Method · 0.45
rfindMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_unit_globalsFunction · 0.36
check_identicalFunction · 0.36