| 97 | } |
| 98 | |
| 99 | String String::toUpper() const { |
| 100 | std::u32string result = string_; |
| 101 | auto to_upper = [](char32_t c) { return (c >= U'a' && c <= U'z') ? c - 32 : c; }; |
| 102 | std::transform(result.begin(), result.end(), result.begin(), to_upper); |
| 103 | return result; |
| 104 | } |
| 105 | |
| 106 | String String::removeCharacters(const String& characters) const { |
| 107 | std::u32string result = string_; |
no test coverage detected