mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
StringUtil: Move GetEscapedHtml() into Common namespace
This commit is contained in:
@ -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); });
|
||||
|
@ -234,8 +234,6 @@ std::string ThousandSeparate(I value, int spaces = 0)
|
||||
std::vector<std::string> CommandLineToUtf8Argv(const wchar_t* command_line);
|
||||
#endif
|
||||
|
||||
std::string GetEscapedHtml(std::string html);
|
||||
|
||||
namespace Common
|
||||
{
|
||||
/// Returns whether a character is printable, i.e. whether 0x20 <= c <= 0x7e is true.
|
||||
@ -264,6 +262,8 @@ inline char ToUpper(char ch)
|
||||
return std::toupper(ch, std::locale::classic());
|
||||
}
|
||||
|
||||
std::string GetEscapedHtml(std::string html);
|
||||
|
||||
void ToLower(std::string* str);
|
||||
void ToUpper(std::string* str);
|
||||
bool CaseInsensitiveEquals(std::string_view a, std::string_view b);
|
||||
|
Reference in New Issue
Block a user