MCPcopy Create free account
hub / github.com/esmBot/esmBot / split

Function split

natives/cli/cli.cc:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20std::vector<std::string> split(const std::string &s, char delim) {
21 std::vector<std::string> result;
22 std::stringstream ss(s);
23 std::string item;
24
25 while (getline(ss, item, delim)) {
26 result.push_back(item);
27 }
28
29 return result;
30}
31
32struct Args {
33 std::vector<std::string> args;

Callers 1

parseArgumentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected