mirror of
https://github.com/aristocratos/btop.git
synced 2025-12-23 22:29:08 -05:00
Revert e266ccd which broke str_to_upper() and str_to_lower()
This commit is contained in:
@@ -238,13 +238,13 @@ namespace Tools {
|
||||
|
||||
//* Return <str> with only uppercase characters
|
||||
inline auto str_to_upper(string str) {
|
||||
std::ranges::for_each(str, ::toupper);
|
||||
std::ranges::for_each(str, [](auto& c) { c = ::toupper(c); } );
|
||||
return str;
|
||||
}
|
||||
|
||||
//* Return <str> with only lowercase characters
|
||||
inline auto str_to_lower(string str) {
|
||||
std::ranges::for_each(str, ::tolower);
|
||||
std::ranges::for_each(str, [](char& c) { c = ::tolower(c); } );
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user