| 120 | } |
| 121 | |
| 122 | void strTolower(std::string& str) |
| 123 | { |
| 124 | // This wrapper exists because Sun's CC does not allow a static_cast |
| 125 | // from extern "C" int(*)(int) to int(*)(int). |
| 126 | std::transform(str.cbegin(), str.cend(), str.begin(), [](int c) { |
| 127 | return std::tolower(c); |
| 128 | }); |
| 129 | } |
| 130 | |
| 131 | std::string trim(const std::string& s, const std::string& t) |
| 132 | { |
no test coverage detected