MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / Split

Method Split

DAEValidator/library/src/StringUtil.cpp:22–36  ·  view source on GitHub ↗

Split string by whitespace

Source from the content-addressed store, hash-verified

20
21 // Split string by whitespace
22 vector<string> String::Split(const string & s)
23 {
24 if (s.empty())
25 return vector<string>();
26
27 vector<string> parts;
28 istringstream iss(s);
29 while (iss && !iss.eof())
30 {
31 string sub;
32 iss >> sub;
33 parts.emplace_back(sub);
34 }
35 return parts;
36 }
37
38 string String::Lower(const string & str)
39 {

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected