diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-06-14 18:26:29 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-06-14 18:26:29 +0000 |
commit | 0043f79996b6bf582194fd45d42d86ca2816292f (patch) | |
tree | 083bb550630bc245210e8609e96e2bdec4a4bfc9 /protocols/Skype/src/skype_utils.cpp | |
parent | 19130f846c811022b5a765162f4a146f1362727d (diff) |
Skype:
- fixed chat creating/removing
- fixed chat inviting
- fixed #367
git-svn-id: http://svn.miranda-ng.org/main/trunk@4945 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_utils.cpp')
-rw-r--r-- | protocols/Skype/src/skype_utils.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_utils.cpp b/protocols/Skype/src/skype_utils.cpp index 10203a3577..9af8c5b5cf 100644 --- a/protocols/Skype/src/skype_utils.cpp +++ b/protocols/Skype/src/skype_utils.cpp @@ -551,4 +551,15 @@ void CSkypeProto::CopyToClipboard(const wchar_t *text) ::GlobalUnlock(hMem);
::SetClipboardData(CF_UNICODETEXT, hMem);
::CloseClipboard();
+}
+
+void CSkypeProto::ReplaceSpecialChars(wchar_t *text, wchar_t replaceWith)
+{
+ if (text == NULL)
+ return;
+
+ wchar_t *special = L"\\/:*?\"<>|";
+ for (size_t i = 0; i < ::wcslen(text); i++)
+ if (::wcschr(special, text[i]) != NULL)
+ text[i] = replaceWith;
}
\ No newline at end of file |