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

Function IsSpace

src/utils/StringUtils.h:49–52  ·  view source on GitHub ↗

Checks if character is whitespace (space, tab, newline or other non-printable char). Does not take locale into account.

Source from the content-addressed store, hash-verified

47// Checks if character is whitespace (space, tab, newline or other
48// non-printable char). Does not take locale into account.
49inline bool IsSpace(unsigned char c)
50{
51 return c <= ' ';
52}
53
54// Return the lower case string.
55inline std::string Lower(std::string str)

Callers 3

LeftTrimFunction · 0.70
RightTrimFunction · 0.70
IsEmptyOrWhiteSpaceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected