MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / find_last_of

Function find_last_of

example/cacheHierarchy/fkYAML/node.hpp:2778–2780  ·  view source on GitHub ↗

@brief Finds the last occurence of `sv` character sequence in this referenced character sequence. @param sv The character sequence to compare with. @param pos The offset of the search beginning position in this referenced character sequence. @return The beginning position of `sv` characters, `npos` otherwise.

Source from the content-addressed store, hash-verified

2776 /// @param pos The offset of the search beginning position in this referenced character sequence.
2777 /// @return The beginning position of `sv` characters, `npos` otherwise.
2778 size_type find_last_of(basic_str_view sv, size_type pos = npos) const noexcept {
2779 return find_last_of(sv.mp_str, pos, sv.m_len);
2780 }
2781
2782 /// @brief Finds the last occurence of `c` character in this referenced character sequence.
2783 /// @param c The character to compare with.

Callers

nothing calls this directly

Calls 3

rfindFunction · 0.85
findFunction · 0.85
basic_str_viewFunction · 0.85

Tested by

no test coverage detected