| 40 | } |
| 41 | |
| 42 | std::vector<std::string> inputStringToList(const std::string& str) { |
| 43 | std::vector<std::string> ret; |
| 44 | |
| 45 | std::string token; |
| 46 | // Convert to lower and remove white characters. |
| 47 | std::istringstream tokenStream(std::regex_replace(toLower(str), std::regex("\\s"), std::string(""))); |
| 48 | |
| 49 | while (std::getline(tokenStream, token, ',')) { |
| 50 | ret.push_back(token); |
| 51 | } |
| 52 | |
| 53 | return ret; |
| 54 | } |
| 55 | |
| 56 | } /* namespace utils */ |
| 57 | } /* namespace minifi */ |
no test coverage detected