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

Method find_first_of

include/boost/json/string.hpp:1870–1876  ·  view source on GitHub ↗

Find the first character present in the specified string. Search from `pos` onward for the first character in this string that is equal to any of the characters of `sv`. @par Complexity Linear in @ref size() `+ sv.size()`. @par Exception Safety No-throw guarantee. @return The index of the found character, or @ref npos if none exists.

Source from the content-addressed store, hash-verified

1868 @param pos The index to start searching at.
1869 */
1870 std::size_t
1871 find_first_of(
1872 string_view sv,
1873 std::size_t pos = 0) const noexcept
1874 {
1875 return subview().find_first_of(sv, pos);
1876 }
1877
1878 /** Find the first character missing from the specified string.
1879

Callers 1

testFindFirstOfMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected