MCPcopy Create free account
hub / github.com/LeelaChessZero/lc0 / StrJoin

Function StrJoin

src/utils/string.cc:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace lczero {
36
37std::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
47std::vector<std::string> StrSplitAtWhitespace(const std::string& str) {
48 std::vector<std::string> result;

Callers 1

ShowHelpMethod · 0.85

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected