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

Function split

lib/core/utils.cc:45–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45std::vector<std::string> split(const std::string& string, char separator)
46{
47 std::vector<std::string> result;
48 std::stringstream ss(string);
49 std::string item;
50
51 while (std::getline(ss, item, separator))
52 {
53 result.push_back(item);
54 }
55
56 return result;
57}
58
59bool beginsWith(const std::string& value, const std::string& ending)
60{

Callers 5

readMethod · 0.50
applyOptionsFileMethod · 0.50
stringToOptionsFunction · 0.50
PrepareConfigMethod · 0.50
LoadConfigMethod · 0.50

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected