| 34 | } |
| 35 | |
| 36 | std::string string_to_lower(const std::string& original) |
| 37 | { |
| 38 | std::wstring result(from_utf8(original)); |
| 39 | auto it(result.begin()); |
| 40 | auto end(result.end()); |
| 41 | while (it != end) { |
| 42 | *it = std::tolower(*it); |
| 43 | ++it; |
| 44 | } |
| 45 | return to_utf8(result); |
| 46 | } |
| 47 | |
| 48 | std::string string_to_upper(const std::string& original) |
| 49 | { |