| 164 | } |
| 165 | |
| 166 | std::vector<std::string> StrSplit(const std::string& str, char delim) { |
| 167 | if (str.empty()) return {}; |
| 168 | std::vector<std::string> ret; |
| 169 | size_t first = 0; |
| 170 | size_t next = str.find(delim); |
| 171 | for (; next != std::string::npos; |
| 172 | first = next + 1, next = str.find(delim, first)) { |
| 173 | ret.push_back(str.substr(first, next - first)); |
| 174 | } |
| 175 | ret.push_back(str.substr(first)); |
| 176 | return ret; |
| 177 | } |
| 178 | |
| 179 | #ifdef BENCHMARK_STL_ANDROID_GNUSTL |
| 180 | /* |