diff options
author | archshift <admin@archshift.com> | 2014-11-10 23:36:32 +0100 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-11-13 04:30:17 +0100 |
commit | 1f7c4ab7f6c5b65d6569a1981b04c1d2ac33b713 (patch) | |
tree | 61693418f0cbfeddf4e416bae0d265691bf0dfa9 /src/common/string_util.h | |
parent | Add support for UTF-16 strings for LowPaths in FS:USER (diff) | |
download | yuzu-1f7c4ab7f6c5b65d6569a1981b04c1d2ac33b713.tar yuzu-1f7c4ab7f6c5b65d6569a1981b04c1d2ac33b713.tar.gz yuzu-1f7c4ab7f6c5b65d6569a1981b04c1d2ac33b713.tar.bz2 yuzu-1f7c4ab7f6c5b65d6569a1981b04c1d2ac33b713.tar.lz yuzu-1f7c4ab7f6c5b65d6569a1981b04c1d2ac33b713.tar.xz yuzu-1f7c4ab7f6c5b65d6569a1981b04c1d2ac33b713.tar.zst yuzu-1f7c4ab7f6c5b65d6569a1981b04c1d2ac33b713.zip |
Diffstat (limited to 'src/common/string_util.h')
-rw-r--r-- | src/common/string_util.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/string_util.h b/src/common/string_util.h index a41ccc691..787a5663f 100644 --- a/src/common/string_util.h +++ b/src/common/string_util.h @@ -89,20 +89,22 @@ std::string ReplaceAll(std::string result, const std::string& src, const std::st std::string UriDecode(const std::string & sSrc); std::string UriEncode(const std::string & sSrc); +std::string UTF16ToUTF8(const std::u16string& input); +std::u16string UTF8ToUTF16(const std::string& input); + std::string CP1252ToUTF8(const std::string& str); std::string SHIFTJISToUTF8(const std::string& str); -std::string UTF16ToUTF8(const std::wstring& str); #ifdef _WIN32 -std::wstring UTF8ToUTF16(const std::string& str); +std::wstring UTF8ToUTF16W(const std::string& str); #ifdef _UNICODE inline std::string TStrToUTF8(const std::wstring& str) { return UTF16ToUTF8(str); } inline std::wstring UTF8ToTStr(const std::string& str) -{ return UTF8ToUTF16(str); } +{ return UTF8ToUTF16W(str); } #else inline std::string TStrToUTF8(const std::string& str) { return str; } |