MCPcopy Create free account
hub / github.com/VitalAudio/visage / toUpper

Method toUpper

visage_utils/string_utils.cpp:99–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers 1

Calls 3

transformFunction · 0.85
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected