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

Method find_last_of

include/boost/json/string.hpp:1939–1945  ·  view source on GitHub ↗

Find the last character present in the specified string. Search from `pos` backwards for the first character in this string that is equal to any of the characters of `sv`. If `pos` is equal to @ref npos (the default), search from the last character. @par Complexity Linear in @ref size() `+ sv.size()`. @par Exception Safety No-throw guarant

Source from the content-addressed store, hash-verified

1937 @param pos The index to start searching at.
1938 */
1939 std::size_t
1940 find_last_of(
1941 string_view sv,
1942 std::size_t pos = npos) const noexcept
1943 {
1944 return subview().find_last_of(sv, pos);
1945 }
1946
1947 /** Find the last character missing from the specified string.
1948

Callers 1

testFindLastOfMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected