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

Function Trim

src/utils/StringUtils.h:146–149  ·  view source on GitHub ↗

From the left and right, trim the character.

Source from the content-addressed store, hash-verified

144
145// From the left and right, trim the character.
146inline std::string Trim(std::string str, char c)
147{
148 return LeftTrim(RightTrim(str, c), c);
149}
150
151// From the left and right, trim all the space characters i.e. space, tabulation, etc.
152inline std::string Trim(std::string str)

Callers 9

OCIO_ADD_TESTFunction · 0.50
mainFunction · 0.50
UnitTestMainFunction · 0.50
CompareFloatsFunction · 0.50
mainFunction · 0.50
OCIO_ADD_TESTFunction · 0.50
OCIO_ADD_TESTFunction · 0.50
compareFloatsFunction · 0.50
OCIO_ADD_TESTFunction · 0.50

Calls 2

LeftTrimFunction · 0.85
RightTrimFunction · 0.85

Tested by 9

OCIO_ADD_TESTFunction · 0.40
mainFunction · 0.40
UnitTestMainFunction · 0.40
CompareFloatsFunction · 0.40
mainFunction · 0.40
OCIO_ADD_TESTFunction · 0.40
OCIO_ADD_TESTFunction · 0.40
compareFloatsFunction · 0.40
OCIO_ADD_TESTFunction · 0.40