| 353 | } |
| 354 | |
| 355 | bool strtolower(std::string &str, std::string::size_type offs) |
| 356 | { |
| 357 | bool changed = false; |
| 358 | for (auto ch = str.begin() + offs; ch != str.end(); ++ch) { |
| 359 | auto new_ch = static_cast<char>(tolower(static_cast<unsigned char>(*ch))); |
| 360 | changed |= new_ch != *ch; |
| 361 | *ch = new_ch; |
| 362 | } |
| 363 | return changed; |
| 364 | } |
| 365 | |
| 366 | /** |
| 367 | * Only allow certain keys. You can define the filter to be used. This makes |
no test coverage detected