• 大小: 82KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-06
  • 语言: 其他
  • 标签: unicode  gbk  

资源简介

unicode,gbk编码相互转换C程序,附转换码表

资源截图

代码片段和文件信息

#include 

#define MAX_UNI_INDEX 6768

typedef unsigned short uint16;
typedef unsigned char uchar;

const uint16 uni_table[][2]={
    {0x4E000xD2BB} /* 一: GB2312 Code: 0xD2BB ==> Row:50 Col:27 */
    {0x4E010xB6A1} /* 丁: GB2312 Code: 0xB6A1 ==> Row:22 Col:01 */
    
    {0x4E030xC6DF} /* 七: GB2312 Code: 0xC6DF ==> Row:38 Col:63 */
    {0x4E070xCDF2} /* 万: GB2312 Code: 0xCDF2 ==> Row:45 Col:82 */
    {0x4E080xD5C9} /* 丈: GB2312 Code: 0xD5C9 ==> Row:53 Col:41 */
    {0x4E090xC8FD} /* 三: GB2312 Code: 0xC8FD ==> Row:40 Col:93 */
    {0x4E0A0xC9CF} /* 上: GB2312 Code: 0xC9CF ==> Row:41 Col:47 */
    {0x4E0B0xCFC2} /* 下: GB2312 Code: 0xCFC2 ==> Row:47 Col:34 */
    {0x4E0C0xD8A2} /* 丌: GB2312 Code: 0xD8A2 ==> Row:56 Col:02 */
    {0x4E0D0xB2BB} /* 不: GB2312 Code: 0xB2BB ==> Row:18 Col:27 */
    {0x4E0E0xD3EB} /* 与: GB2312 Code: 0xD3EB ==> Row:51 Col:75 */
    {0x4E100xD8A4} /* 丐: GB2312 Code: 0xD8A4 ==> Row:56 Col:04 */
    {0x4E110xB3F3} /* 丑: GB2312 Code: 0xB3F3 ==> Row:19 Col:83 */
    {0x4E130xD7A8} /* 专: GB2312 Code: 0xD7A8 ==> Row:55 Col:08 */
    {0x4E140xC7D2} /* 且: GB2312 Code: 0xC7D2 ==> Row:39 Col:50 */
    {0x4E150xD8A7} /* 丕: GB2312 Code: 0xD8A7 ==> Row:56 Col:07 */
    {0x4E160xCAC0} /* 世: GB2312 Code: 0xCAC0 ==> Row:42 Col:32 */
    {0x4E180xC7F0} /* 丘: GB2312 Code: 0xC7F0 ==> Row:39 Col:80 */
    {0x4E190xB1FB} /* 丙: GB2312 Code: 0xB1FB ==> Row:17 Col:91 */
    {0x4E1A0xD2B5} /* 业: GB2312 Code: 0xD2B5 ==> Row:50 Col:21 */
    {0x4E1B0xB4D4} /* 丛: GB2312 Code: 0xB4D4 ==> Row:20 Col:52 */
    {0x4E1C0xB6AB} /* 东: GB2312 Code: 0xB6AB ==> Row:22 Col:11 */
    {0x4E1D0xCBBF} /* 丝: GB2312 Code: 0xCBBF ==> Row:43 Col:31 */
    {0x4E1E0xD8A9} /* 丞: GB2312 Code: 0xD8A9 ==> Row:56 Col:09 */
    {0x4E220xB6AA} /* 丢: GB2312 Code: 0xB6AA ==> Row:22 Col:10 */
    {0x4E240xC1BD} /* 两: GB2312 Code: 0xC1BD ==> Row:33 Col:29 */
    {0x4E250xD1CF} /* 严: GB2312 Code: 0xD1CF ==> Row:49 Col:47 */
    {0x4E270xC9A5} /* 丧: GB2312 Code: 0xC9A5 ==> Row:41 Col:05 */
    {0x4E280xD8AD} /* 丨: GB2312 Code: 0xD8AD ==> Row:56 Col:13 */
    {0x4E2A0xB8F6} /* 个: GB2312 Code: 0xB8F6 ==> Row:24 Col:86 */
    {0x4E2B0xD1BE} /* 丫: GB2312 Code: 0xD1BE ==> Row:49 Col:30 */
    {0x4E2C0xE3DC} /* 丬: GB2312 Code: 0xE3DC ==> Row:67 Col:60 */
    {0x4E2D0xD6D0} /* 中: GB2312 Code: 0xD6D0 ==> Row:54 Col:48 */
    {0x4E300xB7E1} /* 丰: GB2312 Code: 0xB7E1 ==> Row:23 Col:65 */
    {0x4E320xB4AE} /* 串: GB2312 Code: 0xB4AE ==> Row:20 Col:14 */
    {0x4E340xC1D9} /* 临: GB2312 Code: 0xC1D9 ==> Row:33 Col:57 */
    {0x4E360xD8BC} /* 丶: GB2312 Code: 0xD8BC ==> Row:56 Col:28 */
    {0x4E380xCDE8} /* 丸: GB2312 Code: 0xCDE8 ==> Row:45 Col:72 */
    {0x4E390xB5A4} /* 丹: GB2312 Code: 0xB5A4 ==> Row:21 Col:04 */
    {0x4E3A0xCEAA} /* 为: GB2312 Code: 0xCEAA ==> Row:46 Col:10 */
    {0x4E3B0xD6F7} /* 主: GB2312 Code: 0xD6F7 ==> Row:54 Col:87 */
    {0x4E3D0xC0F6

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     474779  2009-03-12 20:19  uni.c

----------- ---------  ---------- -----  ----

               474779                    1


评论

共有 条评论