From 0043f79996b6bf582194fd45d42d86ca2816292f Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 14 Jun 2013 18:26:29 +0000 Subject: 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 --- protocols/Skype/src/skype_utils.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'protocols/Skype/src/skype_utils.cpp') 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 -- cgit v1.2.3