| 39 | using namespace pdal::uuidGenerator; |
| 40 | |
| 41 | std::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 | |
| 58 | TEST(UUIDTest, uuidGenerate) |
| 59 | { |
no test coverage detected