aboutsummaryrefslogtreecommitdiff
path: root/CruUI/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'CruUI/base.h')
-rw-r--r--CruUI/base.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/CruUI/base.h b/CruUI/base.h
index 542546fb..7ef78014 100644
--- a/CruUI/base.h
+++ b/CruUI/base.h
@@ -35,11 +35,14 @@ namespace cru
#ifdef CRU_DEBUG
using String = std::wstring;
+ using MultiByteString = std::string;
#else
using String = folly::basic_fbstring<wchar_t>;
+ using MultiByteString = folly::fbstring;
#endif
using StringView = std::wstring_view;
+ using MultiByteStringView = std::string_view;
template<typename FunctionType>
using Function = folly::Function<FunctionType>;
@@ -99,4 +102,6 @@ namespace cru
};
using CancelablePtr = std::shared_ptr<ICancelable>;
+
+ MultiByteString ToUtf8String(const StringView& string);
}