MCPcopy Create free account
hub / github.com/aseprite/laf / string_to_lower

Function string_to_lower

base/string.cpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88std::string string_to_lower(const std::string& original)
89{
90 std::wstring result(from_utf8(original));
91 auto it(result.begin());
92 auto end(result.end());
93 while (it != end) {
94 *it = std::tolower(*it);
95 ++it;
96 }
97 return to_utf8(result);
98}
99
100std::string string_to_upper(const std::string& original)
101{

Callers 5

setWMClassMethod · 0.85
loadMethod · 0.85
get_relative_pathFunction · 0.85
TESTFunction · 0.85
GenerateMethod · 0.85

Calls 4

from_utf8Function · 0.85
to_utf8Function · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.68