diff options
Diffstat (limited to 'protocols/MSN/src/msn_libstr.cpp')
-rw-r--r-- | protocols/MSN/src/msn_libstr.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/protocols/MSN/src/msn_libstr.cpp b/protocols/MSN/src/msn_libstr.cpp index 8067341faa..7a9c07a2b2 100644 --- a/protocols/MSN/src/msn_libstr.cpp +++ b/protocols/MSN/src/msn_libstr.cpp @@ -229,35 +229,6 @@ char* HtmlEncode(const char* str) }
/////////////////////////////////////////////////////////////////////////////////////////
-// UrlEncode - converts printable characters into URL chars like %20
-
-void UrlEncode(const char* src, char* dest, size_t cbDest)
-{
- unsigned char* d = (unsigned char*)dest;
- size_t i = 0;
-
- for (const unsigned char* s = (unsigned char*)src; *s; s++)
- {
- if ((*s <= '/' && *s != '.' && *s != '-') ||
- (*s >= ':' && *s <= '?') ||
- (*s >= '[' && *s <= '`' && *s != '_'))
- {
- if (i + 4 >= cbDest) break;
-
- *d++ = '%';
- _itoa(*s, (char*)d, 16);
- d += 2;
- i += 3;
- }
- else
- {
- if (++i >= cbDest) break;
- *d++ = *s;
- } }
-
- *d = '\0';
-}
-
void stripBBCode(char* src)
{
|