GBK汉字库
1.整合6763个GB2312个汉字
2.整合GBK/3,GBK/4协议共21003个汉字
3.可能过查询记录得到汉字的五笔,拼音,和汉字结构等基本属性
4.已生成了GBKHelper.jar包,可直接使用或修改源代码实现更多功能
示例程序:
long lasttick = System.currentTimeMillis();
GB2312Helper gb2312Helper = GB2312Helper.singleton();
String info1 = "测试汉字拼音和五笔";
CharacterRecord recs1[] = gb2312Helper.getRecords(info1);
String rlt1 = gb2312Helper.getPingyin(recs1);
long curtick = System.currentTimeMillis();
System.out.println("=======GB2312用时:=======" + (curtick - lasttick));
System.out.println(rlt1);
System.out.println("size=" + GB2312Helper.singleton().getRecordSize());
long lasttick2 = System.currentTimeMillis();
GBKHelper gbkHelper = GBKHelper.singleton();
String info2 = "测试汉字拼音和五笔 龍齏";
CharacterRecord recs2[] = gbkHelper.getRecords(info2);
String rlt2 = gbkHelper.getPingyin(recs2);
long curtick2 = System.currentTimeMillis();
System.out.println("=======GBK用时:=======" + (curtick2 - lasttick2));
System.out.println(rlt2);
System.out.println("size=" + GBKHelper.singleton().getRecordSize());
=======GB2312用时:=======281
ce4shi4han4zi4pin1yin1he2wu3bi3
size=6763
=======GBK用时:=======140
ce4shi4han4zi4pin1yin1he2wu3bi3 long2ji1
size=20923
1