MCPcopy Create free account
hub / github.com/Inori/GPCS4 / split

Function split

GPCS4/Util/UtilString.cpp:9–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7{
8
9 std::vector<std::string> split(const std::string& strToSplit, char cDelimeter)
10 {
11 std::vector<std::string> result;
12 do
13 {
14 if (strToSplit.empty())
15 {
16 break;
17 }
18
19 std::stringstream ss(strToSplit);
20 std::string item;
21 while (std::getline(ss, item, cDelimeter))
22 {
23 result.push_back(item);
24 }
25
26 if (item.empty())
27 {
28 result.push_back(item);
29 }
30
31 } while (false);
32 return result;
33 }
34
35 std::string concat(const std::vector<std::string>& ss, const std::string d)
36 {

Callers 3

decodeSymbolMethod · 0.85
ChannelMethod · 0.85
checkSigMethod · 0.85

Calls 2

emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected