diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-03-22 21:07:19 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-03-22 21:07:19 +0000 |
commit | d2a83c7d22df33abd1678756fd4caba432700860 (patch) | |
tree | e1e2dc51a300c3af8fb9877f97a34db094ea2653 /protocols/SkypeWeb/src/skype_utils.cpp | |
parent | a9edb12c2cc13a74f16c0a61deaeaa8780f13f4e (diff) |
SkypeWeb:
- refactored HttpRequest 2
- status changing support (patch from MikalaiR)
git-svn-id: http://svn.miranda-ng.org/main/trunk@12478 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_utils.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_utils.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_utils.cpp b/protocols/SkypeWeb/src/skype_utils.cpp index 5ce367f768..a9a44e1c27 100644 --- a/protocols/SkypeWeb/src/skype_utils.cpp +++ b/protocols/SkypeWeb/src/skype_utils.cpp @@ -37,4 +37,24 @@ bool CSkypeProto::IsFileExists(std::tstring path) return true;
}
return false;
+}
+
+std::string CSkypeProto::urlDecode(std::string SRC)
+{
+ std::string ret;
+ char ch;
+ int i, ii;
+ for (i = 0; i < SRC.length(); i++)
+ {
+ if (int(SRC[i]) == 37)
+ {
+ sscanf(SRC.substr(i + 1, 2).c_str(), "%x", &ii);
+ ch = static_cast<char>(ii);
+ ret += ch;
+ i = i + 2;
+ }
+ else
+ ret += SRC[i];
+ }
+ return (ret);
}
\ No newline at end of file |