| 35 | namespace lczero { |
| 36 | |
| 37 | std::string StrJoin(const std::vector<std::string>& strings, |
| 38 | const std::string& delim) { |
| 39 | std::string res; |
| 40 | for (const auto& str : strings) { |
| 41 | if (!res.empty()) res += delim; |
| 42 | res += str; |
| 43 | } |
| 44 | return res; |
| 45 | } |
| 46 | |
| 47 | std::vector<std::string> StrSplitAtWhitespace(const std::string& str) { |
| 48 | std::vector<std::string> result; |