| 84 | } |
| 85 | |
| 86 | std::vector<std::string> split(const std::string& str, char delim) |
| 87 | { |
| 88 | std::stringstream ss(str); |
| 89 | std::string to; |
| 90 | std::vector<std::string> out; |
| 91 | |
| 92 | if (str.empty()) |
| 93 | return out; |
| 94 | |
| 95 | while (std::getline(ss, to, delim)) |
| 96 | out.push_back(to); |
| 97 | return out; |
| 98 | } |
| 99 | |
| 100 | /// Wrapper around sibr::sprintf that returns a string |
| 101 | std::string sprint(const char *msg, ...) |
no test coverage detected