mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
Create Common::ToLower and Common::ToUpper
This commit is contained in:
@ -669,3 +669,16 @@ std::string GetEscapedHtml(std::string html)
|
||||
}
|
||||
return html;
|
||||
}
|
||||
|
||||
namespace Common
|
||||
{
|
||||
void ToLower(std::string* str)
|
||||
{
|
||||
std::transform(str->begin(), str->end(), str->begin(), [](char c) { return Common::ToLower(c); });
|
||||
}
|
||||
|
||||
void ToUpper(std::string* str)
|
||||
{
|
||||
std::transform(str->begin(), str->end(), str->begin(), [](char c) { return Common::ToUpper(c); });
|
||||
}
|
||||
} // namespace Common
|
||||
|
Reference in New Issue
Block a user