diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-10-12 11:45:28 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-10-12 11:45:28 +0000 |
commit | 08fd5437555d0b5cab972fb3316b4cdb8f11cdae (patch) | |
tree | c18c5bfd833781b935871f6ffa7d4c14769f52ec /protocols/AimOscar/src/conv.h | |
parent | 8473fb7c85680042038cc0ad40d4e22bb6a639e7 (diff) |
AimOscar: folders restructurization
git-svn-id: http://svn.miranda-ng.org/main/trunk@1886 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/AimOscar/src/conv.h')
-rw-r--r-- | protocols/AimOscar/src/conv.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/protocols/AimOscar/src/conv.h b/protocols/AimOscar/src/conv.h new file mode 100644 index 0000000000..b7490cf63e --- /dev/null +++ b/protocols/AimOscar/src/conv.h @@ -0,0 +1,56 @@ +/*
+Plugin of Miranda IM for communicating with users of the AIM protocol.
+Copyright (c) 2008-2009 Boris Krasnovskiy
+Copyright (C) 2005-2006 Aaron Myles Landwehr
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+#ifndef CONV_H
+#define CONV_H
+
+char* process_status_msg (const char *src, const char* sn);
+void html_decode(char* str);
+char* html_encode(const char *src);
+char* html_to_bbcodes(char *src);
+char* bbcodes_to_html(const char *src);
+void strip_tag(char* begin, char* end);
+char* strip_tag_within(char* begin, char* end);
+char* rtf_to_html(HWND hwndDlg,int DlgItem);
+void wcs_htons(wchar_t * ch);
+char* bytes_to_string(char* bytes, int num_bytes);
+void string_to_bytes(char* string, char* bytes);
+bool is_utf(const char* msg);
+char* get_fname(char* path);
+TCHAR* get_dir(TCHAR* path);
+
+struct aimString
+{
+ union
+ {
+ char* szString;
+ wchar_t* wszString;
+ };
+ size_t size;
+ bool unicode;
+
+ aimString(char* str);
+ ~aimString() { mir_free(szString); }
+
+ bool isUnicode(void) { return unicode; }
+ unsigned short getSize(void) { return (unsigned short)size; }
+ unsigned short getTermSize(void) { return (unsigned short)(size + (unicode ? sizeof(wchar_t) : sizeof(char))); }
+ char* getBuf(void) { return szString; }
+};
+
+#endif
|