| 141 | } |
| 142 | |
| 143 | std::vector<std::string> strSplit(const std::string& str, const std::string& delimiters) |
| 144 | { |
| 145 | std::vector<std::string> tokens; |
| 146 | string::size_type lastPos = 0; |
| 147 | string::size_type pos = 0; |
| 148 | |
| 149 | do { |
| 150 | pos = str.find_first_of(delimiters, lastPos); |
| 151 | tokens.push_back(str.substr(lastPos, pos - lastPos)); |
| 152 | lastPos = pos + 1; |
| 153 | } while (string::npos != pos); |
| 154 | |
| 155 | return tokens; |
| 156 | } |
| 157 | |
| 158 | bool strStartsWith(const std::string& s, const std::string& start) |
| 159 | { |
no outgoing calls
no test coverage detected