aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/ustr.cpp6
-rw-r--r--common/ustr.h3
2 files changed, 9 insertions, 0 deletions
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);