mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 01:59:52 -06:00
StringUtil: Move CommandLineToUtf8Argv() into Common namespace
This commit is contained in:
@ -656,6 +656,8 @@ std::string PathToString(const std::filesystem::path& path)
|
||||
#endif
|
||||
}
|
||||
|
||||
namespace Common
|
||||
{
|
||||
#ifdef _WIN32
|
||||
std::vector<std::string> CommandLineToUtf8Argv(const wchar_t* command_line)
|
||||
{
|
||||
@ -675,8 +677,6 @@ 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{{
|
||||
|
@ -230,10 +230,6 @@ std::string ThousandSeparate(I value, int spaces = 0)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
std::vector<std::string> CommandLineToUtf8Argv(const wchar_t* command_line);
|
||||
#endif
|
||||
|
||||
namespace Common
|
||||
{
|
||||
/// Returns whether a character is printable, i.e. whether 0x20 <= c <= 0x7e is true.
|
||||
@ -262,6 +258,10 @@ inline char ToUpper(char ch)
|
||||
return std::toupper(ch, std::locale::classic());
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
std::vector<std::string> CommandLineToUtf8Argv(const wchar_t* command_line);
|
||||
#endif
|
||||
|
||||
std::string GetEscapedHtml(std::string html);
|
||||
|
||||
void ToLower(std::string* str);
|
||||
|
Reference in New Issue
Block a user