MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / join

Function join

cp-profiler/src/cpprofiler/utils/string_utils.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35string join(const vector<string>& strs, char sep) {
36 std::stringstream ss;
37 for(size_t i=0; i<strs.size(); i++) {
38 if(i) ss << sep;
39 ss << strs[i];
40 }
41 return ss.str();
42}
43
44} // namespace utils
45} // namespace cpprofiler

Callers 1

getHeatMapUrlFunction · 0.85

Calls 2

strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected