| 90 | } |
| 91 | |
| 92 | String String::toLower() const { |
| 93 | std::u32string result = string_; |
| 94 | auto to_lower = [](char32_t c) { return (c >= U'A' && c <= U'Z') ? c + 32 : c; }; |
| 95 | std::transform(result.begin(), result.end(), result.begin(), to_lower); |
| 96 | return result; |
| 97 | } |
| 98 | |
| 99 | String String::toUpper() const { |
| 100 | std::u32string result = string_; |
no test coverage detected