| 30 | namespace utils { |
| 31 | |
| 32 | std::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 | |
| 42 | std::vector<std::string> inputStringToList(const std::string& str) { |
| 43 | std::vector<std::string> ret; |
no test coverage detected