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

Function toLower

extensions/sql/data/Utils.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace utils {
31
32std::string toLower(const std::string& str) {
33 std::string ret;
34
35 // (int(*)(int))std::tolower - to avoid compilation error 'no matching overloaded function found'.
36 // It is described in https://stackoverflow.com/questions/5539249/why-cant-transforms-begin-s-end-s-begin-tolower-be-complied-successfu.
37 std::transform(str.begin(), str.end(), std::back_inserter(ret), (int(*)(int))std::tolower);
38
39 return ret;
40}
41
42std::vector<std::string> inputStringToList(const std::string& str) {
43 std::vector<std::string> ret;

Callers 3

addRowMethod · 0.85
inputStringToListFunction · 0.85
processOnScheduleMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected