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

Method toLower

visage_utils/string_utils.cpp:92–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

transformFunction · 0.85
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected