summaryrefslogtreecommitdiff
path: root/Source/Core/Common/StringUtil.cpp
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2023-05-16 14:21:19 -0400
committerLioncash <mai.iam2048@gmail.com>2023-05-16 14:21:19 -0400
commitd368c989e7dce342626c1a0afd9258eb149d5299 (patch)
tree65814efe7031ab83de534234a227b71e4e108d0c /Source/Core/Common/StringUtil.cpp
parent21df3ca572a0fad37440b29c56c83d50c45c92f4 (diff)
StringUtil: Move GetEscapedHtml() into Common namespace
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
-rw-r--r--Source/Core/Common/StringUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp
index c041164f22..3083cc01f0 100644
--- a/Source/Core/Common/StringUtil.cpp
+++ b/Source/Core/Common/StringUtil.cpp
@@ -675,6 +675,8 @@ std::vector<std::string> CommandLineToUtf8Argv(const wchar_t* command_line)
}
#endif
+namespace Common
+{
std::string GetEscapedHtml(std::string html)
{
static constexpr std::array<std::array<const char*, 2>, 5> replacements{{
@@ -693,8 +695,6 @@ 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); });