From b2f86045d3b3dc2a454f127f186429b60e493072 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 6 Feb 2015 23:36:02 +0000 Subject: merge from branch git-svn-id: http://svn.miranda-ng.org/main/trunk@12029 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/utils.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'protocols/WhatsApp/src/utils.h') diff --git a/protocols/WhatsApp/src/utils.h b/protocols/WhatsApp/src/utils.h index a14a707a14..d9a1218312 100644 --- a/protocols/WhatsApp/src/utils.h +++ b/protocols/WhatsApp/src/utils.h @@ -27,8 +27,15 @@ public: std::string getLastErrorMsg(); +__forceinline TCHAR* str2t(const std::string &str) +{ return mir_utf8decodeT(str.c_str()); +} + namespace utils { + TCHAR* removeA(TCHAR *str); + void copyText(HWND hwnd, const TCHAR *text); + void setStatusMessage(MCONTACT hContact, const TCHAR *ptszMessage); BYTE* md5string(const BYTE*, int, BYTE* digest); -- cgit v1.2.3