#include "debug.h"#include "internal.h"#include "utils.h"#include "packet_parse.h"#include "char_conv.h"#include "qq.h"char_conv.c包含/依赖关系图:

宏定义 | |
| #define | QQ_SMILEY_AMOUNT 96 |
| #define | UTF8 "UTF-8" |
| #define | QQ_CHARSET_ZH_CN "GBK" |
| #define | QQ_CHARSET_ENG "ISO-8859-1" |
| #define | QQ_NULL_MSG "(NULL)" |
| #define | QQ_NULL_SMILEY "(SM)" |
函数 | |
| void | _qq_show_packet (gchar *desc, gchar *buf, gint len) |
| gchar | _get_size (gchar font_attr) |
| gboolean | _check_bold (gchar font_attr) |
| gboolean | _check_italic (gchar font_attr) |
| gboolean | _check_underline (gchar font_attr) |
| gchar * | _my_convert (const gchar *str, gssize len, const gchar *to_charset, const gchar *from_charset) |
| gint | convert_as_pascal_string (guint8 *data, gchar **ret, const gchar *from_charset) |
| gchar * | qq_encode_to_gaim (guint8 *data, gint len, const gchar *msg) |
| gchar * | utf8_to_qq (const gchar *str, const gchar *to_charset) |
| gchar * | qq_to_utf8 (const gchar *str, const gchar *from_charset) |
| gchar * | qq_smiley_to_gaim (gchar *text) |
| gchar * | gaim_smiley_to_qq (gchar *text) |
变量 | |
| const gchar | qq_smiley_map [QQ_SMILEY_AMOUNT] |
| const gchar * | gaim_smiley_map [QQ_SMILEY_AMOUNT] |
|
|
在文件char_conv.c第38行定义。 |
|
|
在文件char_conv.c第37行定义。 |
|
|
在文件char_conv.c第40行定义。 参考自 _my_convert(). |
|
|
在文件char_conv.c第41行定义。 参考自 qq_smiley_to_gaim(). |
|
|
The QQ2003C protocol plugin for gaim Copyright (C) 2004 Puzzlebird 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 在文件char_conv.c第34行定义。 |
|
|
在文件char_conv.c第36行定义。 |
|
|
在文件char_conv.c第89行定义。 参考自 qq_encode_to_gaim(). |
|
|
在文件char_conv.c第94行定义。 参考自 qq_encode_to_gaim(). |
|
|
在文件char_conv.c第99行定义。 参考自 qq_encode_to_gaim(). |
|
|
在文件char_conv.c第84行定义。 参考自 qq_encode_to_gaim(). |
|
||||||||||||||||||||
|
在文件char_conv.c第106行定义。 参考 hex_dump_to_str()及QQ_NULL_MSG. 参考自 convert_as_pascal_string()、qq_to_utf8()及utf8_to_qq(). 函数调用图: ![]() |
|
||||||||||||||||
|
The QQ2003C protocol plugin for gaim Copyright (C) 2004 Puzzlebird Henry Ou <henry@linux.net> 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 在文件qq_proxy.c第62行定义。 参考自 _qq_process_recv_normal_im_text()、qq_encode_to_gaim()、qq_get_send_im_tail()及qq_send_packet_im(). |
|
||||||||||||||||
|
|
在文件char_conv.c第258行定义。 |
|
||||||||||||||||
|
|
在文件char_conv.c第227行定义。 参考 gaim_smiley_map、QQ_NULL_SMILEY、QQ_SMILEY_AMOUNT、qq_smiley_map及split_data(). 参考自 _qq_process_recv_normal_im_text()及qq_process_recv_group_im(). 函数调用图: ![]() |
|
||||||||||||
|
||||||||||||
|
在文件char_conv.c第214行定义。 参考 _my_convert()及UTF8. 参考自 _qq_chat_send()、_qq_get_entry()、_qq_get_text()、_qq_send_im()、_qq_send_packet_buddy_auth()、qq_group_modify_info()及qq_send_cmd_group_auth(). 函数调用图: ![]() |
|
|
初始化序列: {
"\\jy", "\\pz", "\\se", "\\fd", "\\dy", "\\ll", "\\hx", "\\bz",
"\\shui", "\\dk ", "\\gg", "\\fn", "\\tp", "\\cy", "\\wx", "\\ng",
"\\kuk", "\\feid", "\\zk", "\\tu", "\\tx", "\\ka", "\\by", "\\am",
"\\jie", "\\kun", "\\jk", "\\lh", "\\hanx", "\\db", "\\fendou",
"\\zhm",
"\\yiw", "\\xu", "\\yun", "\\zhem", "\\shuai", "\\kl", "\\qiao",
"\\zj",
"\\shan", "\\fad", "\\aiq", "\\tiao", "\\zhao", "\\mm", "\\zt",
"\\maom",
"\\xg", "\\yb", "\\qianc", "\\dp", "\\bei", "\\dg", "\\shd",
"\\zhd",
"\\dao", "\\zq", "\\yy", "\\bb", "\\gf", "\\fan", "\\yw", "\\mg",
"\\dx", "\\wen", "\\xin", "\\xs", "\\hy", "\\lw", "\\dh", "\\sj",
"\\yj", "\\ds", "\\ty", "\\yl", "\\qiang", "\\ruo", "\\ws",
"\\shl",
"\\dd", "\\mn", "\\hl", "\\mamao", "\\qz", "\\fw", "\\oh", "\\bj",
"\\qsh", "\\xig", "\\xy", "\\duoy", "\\xr", "\\xixing", "\\nv",
"\\nan"
}
在文件char_conv.c第61行定义。 |
|
|
初始化序列: {
0x41, 0x43, 0x42, 0x44, 0x45, 0x46, 0x47, 0x48,
0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x73,
0x74, 0x75, 0x76, 0x77, 0x8a, 0x8b, 0x8c, 0x8d,
0x8e, 0x8f, 0x78, 0x79, 0x7a, 0x7b, 0x90, 0x91,
0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99,
0x59, 0x5a, 0x5c, 0x58, 0x57, 0x55, 0x7c, 0x7d,
0x7e, 0x7f, 0x9a, 0x9b, 0x60, 0x67, 0x9c, 0x9d,
0x9e, 0x5e, 0x9f, 0x89, 0x80, 0x81, 0x82, 0x62,
0x63, 0x64, 0x65, 0x66, 0x83, 0x68, 0x84, 0x85,
0x86, 0x87, 0x6b, 0x6e, 0x6f, 0x70, 0x88, 0xa0,
0x50, 0x51, 0x52, 0x53, 0x54, 0x56, 0x5b, 0x5d,
0x5f, 0x61, 0x69, 0x6a, 0x6c, 0x6d, 0x71, 0x72,
}
在文件char_conv.c第46行定义。 |
1.4.4