MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / join

Function join

lib/core/utils.cc:25–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25std::string join(
26 const std::vector<std::string>& values, const std::string& separator)
27{
28 switch (values.size())
29 {
30 case 0:
31 return "";
32
33 case 1:
34 return values[0];
35
36 default:
37 std::stringstream ss;
38 ss << values[0];
39 for (int i = 1; i < values.size(); i++)
40 ss << separator << values[i];
41 return ss.str();
42 }
43}
44
45std::vector<std::string> split(const std::string& string, char separator)
46{

Callers 9

parseCylinderHeadsStringFunction · 0.50
to_strMethod · 0.50
getValidValuesFunction · 0.50
findOptionMethod · 0.50
fullFrameMethod · 0.50
SaveConfigMethod · 0.50
testJoinFunction · 0.50
build.pyFile · 0.50

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected