summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-23 18:52:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-23 18:52:14 +0300
commit35c6f6ccbb11f24a1385c5296a0f2b32c0b90dc9 (patch)
tree3e40f085a7114254966ddadafd1b92388c85b54e /src
parentac6a2d3c5a668324d4115305a621a81e4b5d99fb (diff)
no need to implement the same code in each plugin
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/chat_tools.cpp14
-rw-r--r--src/mir_app/src/mir_app.def1
-rw-r--r--src/mir_app/src/mir_app64.def1
3 files changed, 16 insertions, 0 deletions
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