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

Function EndsWith

src/utils/StringUtils.h:92–96  ·  view source on GitHub ↗

Return true if the string ends with the suffix. Note: The comparison is case sensitive.

Source from the content-addressed store, hash-verified

90// Return true if the string ends with the suffix.
91// Note: The comparison is case sensitive.
92inline bool EndsWith(const std::string & str, const std::string & suffix)
93{
94 return str.size() >= suffix.size() &&
95 0 == str.compare(str.size() - suffix.size(), suffix.size(), suffix);
96}
97
98// Return true if the string starts with the prefix.
99// Note: The comparison is case sensitive.

Callers 5

SplitFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
WriteLut3DFunction · 0.85
OCIO_ADD_TESTFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by 1

OCIO_ADD_TESTFunction · 0.68