MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / inputStringToList

Function inputStringToList

extensions/sql/data/Utils.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42std::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 */

Callers 1

processOnScheduleMethod · 0.85

Calls 1

toLowerFunction · 0.85

Tested by

no test coverage detected