| 9 | #include "StringUtil.h" |
| 10 | |
| 11 | void str_split(const std::string& str, std::vector<std::string>& tokens, char delim) |
| 12 | { |
| 13 | std::istringstream iss(str); |
| 14 | std::string tmp; |
| 15 | while (std::getline(iss, tmp, delim)) { |
| 16 | if (tmp.size()) { |
| 17 | tokens.push_back(tmp); |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | void str_split(const std::wstring& wstr, std::vector<std::wstring>& tokens, wchar_t delim) |
| 23 | { |
nothing calls this directly
no outgoing calls
no test coverage detected