From 9ff8e69aa98b41a92ac561bfbb15efb9cf58cdac Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 18 Oct 2019 17:18:54 +0200 Subject: COMMON: Added new + operator to U32String --- common/ustr.cpp | 6 ++++++ common/ustr.h | 3 +++ 2 files changed, 9 insertions(+) (limited to 'common') diff --git a/common/ustr.cpp b/common/ustr.cpp index aab9dd6f05..07a0852a94 100644 --- a/common/ustr.cpp +++ b/common/ustr.cpp @@ -768,4 +768,10 @@ String convertFromU32String(const U32String &string, CodePage page) { return charsetString; } +U32String operator+(const U32String &x, const U32String &y) { + U32String temp(x); + temp += y; + return temp; +} + } // End of namespace Common diff --git a/common/ustr.h b/common/ustr.h index 431cd9694a..3d76eda765 100644 --- a/common/ustr.h +++ b/common/ustr.h @@ -237,6 +237,9 @@ enum CodePage { kWindows1257 }; + +U32String operator+(const U32String &x, const U32String &y); + U32String convertToU32String(const char *str, CodePage page = kUtf8); String convertFromU32String(const U32String &str, CodePage page = kUtf8); -- cgit v1.2.3