MCPcopy Create free account
hub / github.com/dobin/RedEdr / to_lowercase2

Function to_lowercase2

RedEdrShared/utils.cpp:84–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84std::string to_lowercase2(const std::string& str) {
85 std::string lower_str = str;
86 std::transform(lower_str.begin(), lower_str.end(), lower_str.begin(),
87 [](unsigned char c){ return std::tolower(c); });
88 return lower_str;
89}
90
91
92void remove_all_occurrences_case_insensitive(std::string& str, const std::string& to_remove) {

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected