摘要:
以下讨论以gb2312字库为前提。汉字占两个字节高字节 - 0xA0 = 区码低字节 - 0xA0 = 位码汉字: "胡",的两个字节为[186, 250] = 186 * 256 + 250 = 47866186-->0xBA - 0xA0 = 1A = 26(区)250-->0xFA - 0xA0 = 5A = 90(位)得到,汉字"胡"的区位码为:2690============... 阅读全文
posted @ 2009-12-03 22:44
roogeer
阅读(696)
评论(0)
推荐(0)
摘要:
不多说,直接上代码代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//取得汉字首字母//只能取得gb2312一级汉字3755个,这段区位码是按拼音排序的。usingSystem;usingSystem.Text;namespaceTest{publ... 阅读全文
posted @ 2009-12-03 21:20
roogeer
阅读(203)
评论(0)
推荐(0)
浙公网安备 33010602011771号