| 86 | } |
| 87 | |
| 88 | std::string string_to_lower(const std::string& original) |
| 89 | { |
| 90 | std::wstring result(from_utf8(original)); |
| 91 | auto it(result.begin()); |
| 92 | auto end(result.end()); |
| 93 | while (it != end) { |
| 94 | *it = std::tolower(*it); |
| 95 | ++it; |
| 96 | } |
| 97 | return to_utf8(result); |
| 98 | } |
| 99 | |
| 100 | std::string string_to_upper(const std::string& original) |
| 101 | { |