首页 | 数据结构 | 文件列表 | 数据字段 | 全局定义

char_conv.c文件参考

#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]


宏定义文档

#define QQ_CHARSET_ENG   "ISO-8859-1"
 

在文件char_conv.c38行定义。

#define QQ_CHARSET_ZH_CN   "GBK"
 

在文件char_conv.c37行定义。

#define QQ_NULL_MSG   "(NULL)"
 

在文件char_conv.c40行定义。

参考自 _my_convert().

#define QQ_NULL_SMILEY   "(SM)"
 

在文件char_conv.c41行定义。

参考自 qq_smiley_to_gaim().

#define QQ_SMILEY_AMOUNT   96
 

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.c34行定义。

参考自 gaim_smiley_to_qq()qq_smiley_to_gaim().

#define UTF8   "UTF-8"
 

在文件char_conv.c36行定义。

参考自 convert_as_pascal_string()qq_to_utf8()utf8_to_qq().


函数文档

gboolean _check_bold gchar  font_attr  ) 
 

在文件char_conv.c89行定义。

参考自 qq_encode_to_gaim().

gboolean _check_italic gchar  font_attr  ) 
 

在文件char_conv.c94行定义。

参考自 qq_encode_to_gaim().

gboolean _check_underline gchar  font_attr  ) 
 

在文件char_conv.c99行定义。

参考自 qq_encode_to_gaim().

gchar _get_size gchar  font_attr  ) 
 

在文件char_conv.c84行定义。

参考自 qq_encode_to_gaim().

gchar* _my_convert const gchar *  str,
gssize  len,
const gchar *  to_charset,
const gchar *  from_charset
 

在文件char_conv.c106行定义。

参考 hex_dump_to_str()QQ_NULL_MSG.

参考自 convert_as_pascal_string()qq_to_utf8()utf8_to_qq().

函数调用图:

void _qq_show_packet gchar *  desc,
gchar *  buf,
gint  len
 

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.c62行定义。

参考自 _qq_process_recv_normal_im_text()qq_encode_to_gaim()qq_get_send_im_tail()qq_send_packet_im().

gint convert_as_pascal_string guint8 *  data,
gchar **  ret,
const gchar *  from_charset
 

在文件char_conv.c131行定义。

参考 _my_convert()UTF8.

参考自 qq_process_get_buddies_list_reply()qq_process_group_cmd_get_group_info()qq_process_group_cmd_get_member_info()qq_process_group_cmd_search_group()qq_process_recv_group_im_apply_join()qq_process_recv_group_im_been_approved()qq_process_recv_group_im_been_rejected().

函数调用图:

gchar* gaim_smiley_to_qq gchar *  text  ) 
 

在文件char_conv.c258行定义。

参考 gaim_smiley_mapQQ_SMILEY_AMOUNTqq_smiley_map.

参考自 _qq_chat_send()_qq_send_im().

gchar* qq_encode_to_gaim guint8 *  data,
gint  len,
const gchar *  msg
 

在文件char_conv.c145行定义。

参考 _check_bold()_check_italic()_check_underline()_get_size()_qq_show_packet()QQ_CHARSET_DEFAULTqq_to_utf8()read_packet_b()read_packet_data()read_packet_w().

参考自 _qq_process_recv_normal_im_text()qq_process_recv_group_im().

函数调用图:

gchar* qq_smiley_to_gaim gchar *  text  ) 
 

在文件char_conv.c227行定义。

参考 gaim_smiley_mapQQ_NULL_SMILEYQQ_SMILEY_AMOUNTqq_smiley_mapsplit_data().

参考自 _qq_process_recv_normal_im_text()qq_process_recv_group_im().

函数调用图:

gchar* qq_to_utf8 const gchar *  str,
const gchar *  from_charset
 

在文件char_conv.c219行定义。

参考 _my_convert()UTF8.

参考自 _qq_process_group_cmd_reply_error_default()_qq_process_login_wrong_pwd()_qq_process_recv_normal_im_text()_qq_process_recv_sys_im()_qq_set_entry()_qq_set_text()_qq_tooltip_text()qq_encode_to_gaim()qq_process_add_buddy_auth_reply()qq_process_msg_sys()qq_process_recv_group_im()qq_refresh_buddy_and_myself()try_dump_as_gbk().

函数调用图:

gchar* utf8_to_qq const gchar *  str,
const gchar *  to_charset
 

在文件char_conv.c214行定义。

参考 _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().

函数调用图:


变量文档

const gchar* gaim_smiley_map[QQ_SMILEY_AMOUNT]
 

初始化序列:

 {
        "\\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.c61行定义。

参考自 gaim_smiley_to_qq()qq_smiley_to_gaim().

const gchar qq_smiley_map[QQ_SMILEY_AMOUNT]
 

初始化序列:

 {
        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.c46行定义。

参考自 gaim_smiley_to_qq()qq_smiley_to_gaim().


Generated at Mon May 8 15:42:15 2006 for OpenQ by  doxygen 1.4.4