| 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 | { |
no test coverage detected