diff options
author | crupest <crupest@outlook.com> | 2018-09-20 22:50:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-20 22:50:37 +0800 |
commit | 5f7d3268e3d2ea84a1afc97c209b703bf4092c76 (patch) | |
tree | 8cab3c7457420b55376e5825f0cdfefd47551c00 /CruUI/base.h | |
parent | 6cd7b4e168fdda6bf83187cda9269cad5f9ee0ed (diff) | |
download | cru-5f7d3268e3d2ea84a1afc97c209b703bf4092c76.tar.gz cru-5f7d3268e3d2ea84a1afc97c209b703bf4092c76.tar.bz2 cru-5f7d3268e3d2ea84a1afc97c209b703bf4092c76.zip |
Improve linear layout.
Diffstat (limited to 'CruUI/base.h')
-rw-r--r-- | CruUI/base.h | 5 |
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); } |