Split string into array.
| 16 | |
| 17 | // Split string into array. |
| 18 | std::vector<std::string> str_split(const std::string& str, char delimiter) { |
| 19 | std::vector<std::string> tokens; |
| 20 | std::string token; |
| 21 | std::istringstream tokenStream(str); |
| 22 | while (std::getline(tokenStream, token, delimiter)) { |
| 23 | tokens.push_back(token); |
| 24 | } |
| 25 | return tokens; |
| 26 | } |
| 27 | |
| 28 | // Get path information about MSVC. |
| 29 | struct VisualStudioInfo { |
no test coverage detected