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

Function SplitByWhiteSpaces

src/utils/StringUtils.h:231–236  ·  view source on GitHub ↗

Split a string content by whitespaces i.e. ' ', tab.

Source from the content-addressed store, hash-verified

229
230// Split a string content by whitespaces i.e. ' ', tab.
231inline StringVec SplitByWhiteSpaces(const std::string & str)
232{
233 std::stringstream stream(str);
234 return std::vector<std::string>(std::istream_iterator<std::string>(stream),
235 std::istream_iterator<std::string>());
236}
237
238// Find the position of 'search' substring.
239// It returns std::string::npos if not found.

Callers 13

readMethod · 0.85
readMethod · 0.85
readMethod · 0.85
readMethod · 0.85
readMethod · 0.85
readMethod · 0.85
readHeadersFunction · 0.85
readMethod · 0.85
readMethod · 0.85
OCIO_ADD_TESTFunction · 0.85
StringFloatVecCloseFunction · 0.85
CompareFloatsFunction · 0.85

Calls

no outgoing calls

Tested by 4

OCIO_ADD_TESTFunction · 0.68
StringFloatVecCloseFunction · 0.68
CompareFloatsFunction · 0.68
compareFloatsFunction · 0.68