summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-13 18:26:49 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-13 18:26:49 +0300
commit4b7131f74cd61043668d3a5805fe452d601181f1 (patch)
treec90fd20de073ab0f69c348159e005cdfe06a7b21 /include
parentfc9267f9677b1f40ea40d56e54aae9d655ea1a03 (diff)
CurrencyRates:
- own archaic xml processor removed; - Import/Export now uses TinyXml; - massive code cleaning - version bump.
Diffstat (limited to 'include')
-rw-r--r--include/m_system_cpp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h
index 35392c78e2..1cd2163f10 100644
--- a/include/m_system_cpp.h
+++ b/include/m_system_cpp.h
@@ -352,6 +352,16 @@ public:
#endif
};
+class Utf2T : public ptrW
+{
+public:
+ __forceinline Utf2T(const char *str) : ptrW(mir_utf8decodeW(str)) {}
+ __forceinline operator wchar_t* () const { return data; }
+ #ifdef _XSTRING_
+ std::wstring str() const { return std::wstring(data); }
+ #endif
+};
+
///////////////////////////////////////////////////////////////////////////////
// basic class for classes that should be cleared inside new()