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

Function IsEmptyOrWhiteSpace

src/utils/StringUtils.h:166–169  ·  view source on GitHub ↗

Checks if string is empty or white-space only.

Source from the content-addressed store, hash-verified

164
165// Checks if string is empty or white-space only.
166inline bool IsEmptyOrWhiteSpace(const std::string& str)
167{
168 return std::find_if(str.begin(), str.end(), [](char ch) { return !IsSpace(ch); }) == str.end();
169}
170
171// Split a string content using an arbitrary separator.
172inline StringVec Split(const std::string & str, char separator)

Callers 1

nextlineFunction · 0.85

Calls 3

IsSpaceFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected