MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / ReverseFind

Function ReverseFind

src/utils/StringUtils.h:247–250  ·  view source on GitHub ↗

Find the position of 'search' substring starting from the end. It returns std::string::npos if not found.

Source from the content-addressed store, hash-verified

245// Find the position of 'search' substring starting from the end.
246// It returns std::string::npos if not found.
247inline std::string::size_type ReverseFind(const std::string & subject, const std::string & search)
248{
249 return subject.rfind(search);
250}
251
252// In place replace the 'search' substring by the 'replace' string in 'str'.
253inline bool ReplaceInPlace(std::string & subject, const std::string & search, const std::string & replace)

Callers 3

ContainsContextVariablesFunction · 0.85
OCIO_ADD_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

OCIO_ADD_TESTFunction · 0.68