MCPcopy Create free account
hub / github.com/ColinPitrat/caprice32 / split

Function split

src/stringutils.cpp:9–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace stringutils
8{
9 std::vector<std::string> split(const std::string& s, char delim)
10 {
11 std::vector<std::string> elems;
12 std::stringstream ss(s);
13 std::string item;
14 while (std::getline(ss, item, delim))
15 {
16 elems.push_back(item);
17 }
18 return elems;
19 }
20
21 std::string trim(const std::string& s, char c)
22 {

Callers 2

TESTFunction · 0.85
parseDiskFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected