mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07: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