MCPcopy Create free account
hub / github.com/boostorg/json / rfind

Method rfind

include/boost/json/string.hpp:1830–1836  ·  view source on GitHub ↗

Find the last occurrence of a string within the string. @li **(1)** searches for the last substring equal to `sv`. @li **(2)** searches for the last occurrence of `ch`. Both functions search for substrings fully contained within `[begin(), begin() + pos)`. @par Complexity Linear. @return Index of the first character of the found substring

Source from the content-addressed store, hash-verified

1828 @{
1829 */
1830 std::size_t
1831 rfind(
1832 string_view sv,
1833 std::size_t pos = npos) const noexcept
1834 {
1835 return subview().rfind(sv, pos);
1836 }
1837
1838 /** Overload
1839

Callers 2

testRfindMethod · 0.80
operator()Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected