diff options
Diffstat (limited to 'src/common/string_util.h')
| -rw-r--r-- | src/common/string_util.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/common/string_util.h b/src/common/string_util.h index 78b558405..32bf6a19c 100644 --- a/src/common/string_util.h +++ b/src/common/string_util.h | |||
| @@ -76,24 +76,6 @@ std::u16string UTF8ToUTF16(const std::string& input); | |||
| 76 | std::string UTF16ToUTF8(const std::wstring& input); | 76 | std::string UTF16ToUTF8(const std::wstring& input); |
| 77 | std::wstring UTF8ToUTF16W(const std::string& str); | 77 | std::wstring UTF8ToUTF16W(const std::string& str); |
| 78 | 78 | ||
| 79 | #ifdef _UNICODE | ||
| 80 | inline std::string TStrToUTF8(const std::wstring& str) { | ||
| 81 | return UTF16ToUTF8(str); | ||
| 82 | } | ||
| 83 | |||
| 84 | inline std::wstring UTF8ToTStr(const std::string& str) { | ||
| 85 | return UTF8ToUTF16W(str); | ||
| 86 | } | ||
| 87 | #else | ||
| 88 | inline std::string TStrToUTF8(const std::string& str) { | ||
| 89 | return str; | ||
| 90 | } | ||
| 91 | |||
| 92 | inline std::string UTF8ToTStr(const std::string& str) { | ||
| 93 | return str; | ||
| 94 | } | ||
| 95 | #endif | ||
| 96 | |||
| 97 | #endif | 79 | #endif |
| 98 | 80 | ||
| 99 | /** | 81 | /** |