MCPcopy Create free account
hub / github.com/PDAL/PDAL / split

Function split

plugins/e57/test/E57UuidTest.cpp:41–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39using namespace pdal::uuidGenerator;
40
41std::vector<std::string> split(const std::string& s, char c)
42{
43 std::string::size_type i = 0;
44 std::string::size_type j = s.find(c);
45 std::vector<std::string> v;
46 while (j != std::string::npos)
47 {
48 v.push_back(s.substr(i, j - i));
49 i = ++j;
50 j = s.find(c, j);
51
52 if (j == std::string::npos)
53 v.push_back(s.substr(i, s.length()));
54 }
55 return v;
56}
57
58TEST(UUIDTest, uuidGenerate)
59{

Callers 15

extractDimMethod · 0.85
extractVertexMethod · 0.85
extractDimMethod · 0.85
doneFileMethod · 0.85
fillFieldsMethod · 0.85
initializeMethod · 0.85
parseUnquotedHeaderMethod · 0.85
fillFieldsMethod · 0.85
fillFunction · 0.85
KeyFunction · 0.85
TESTFunction · 0.85
initializeMethod · 0.85

Calls 2

findMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected