From 35c6f6ccbb11f24a1385c5296a0f2b32c0b90dc9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 Jan 2017 18:52:14 +0300 Subject: no need to implement the same code in each plugin --- src/mir_app/src/chat_tools.cpp | 14 ++++++++++++++ src/mir_app/src/mir_app.def | 1 + src/mir_app/src/mir_app64.def | 1 + 3 files changed, 16 insertions(+) (limited to 'src/mir_app') diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp index 6670695478..5501a5e9ba 100644 --- a/src/mir_app/src/chat_tools.cpp +++ b/src/mir_app/src/chat_tools.cpp @@ -906,3 +906,17 @@ MIR_APP_DLL(void) Chat_HoverMouse(SESSION_INFO *si, HWND hwnd, LPARAM lParam, bo } } } + +///////////////////////////////////////////////////////////////////////////////////////// + +MIR_APP_DLL(wchar_t*) Chat_UnescapeTags(wchar_t *str_in) +{ + wchar_t *s = str_in, *d = str_in; + while (*s) { + if (*s == '%' && s[1] == '%') + s++; + *d++ = *s++; + } + *d = 0; + return str_in; +} diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index 5fb730b3d6..e3106f9927 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -395,3 +395,4 @@ Netlib_NtlmCreateResponse @383 ?get_uin@DB_AUTH_BLOB@@QBEKXZ @396 NONAME ?makeBlob@DB_AUTH_BLOB@@AAEPAEXZ @397 NONAME ?size@DB_AUTH_BLOB@@QBEKXZ @398 NONAME +Chat_UnescapeTags @399 NONAME diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index c239ba0fec..da54dec2d5 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -395,3 +395,4 @@ Netlib_NtlmCreateResponse @383 ?get_uin@DB_AUTH_BLOB@@QEBAKXZ @396 NONAME ?makeBlob@DB_AUTH_BLOB@@AEAAPEAEXZ @397 NONAME ?size@DB_AUTH_BLOB@@QEBAKXZ @398 NONAME +Chat_UnescapeTags @399 NONAME -- cgit v1.2.3