1 / 18
文档名称:

汉字转换拼音 汉字转拼音.doc

格式:doc   页数:18页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

汉字转换拼音 汉字转拼音.doc

上传人:fy3986758 2016/6/9 文件大小:0 KB

下载得到文件列表

汉字转换拼音 汉字转拼音.doc

文档介绍

文档介绍:汉字转换拼音汉字转拼音 import ; import ; import ; import ; import ; import ; import ; public class ConverPinYin { private static LinkedHashMap spellMap = null; static { if (spellMap == null) { spellMap = new LinkedHashMap(400); } initialize(); } private static void spellPut(String spell, int ascii) { (spell, new Integer(ascii)); } private static void initialize() { spellPut("a",-20319); spellPut("ai",-20317); spellPut("an",-20304); spellPut("ang",-20295); spellPut("ao",-20292); spellPut("ba",-20283); spellPut("bai",-20265); spellPut("ban",-20257); spellPut("bang",-20242); spellPut("bao",-20230); spellPut("bei",-20051); spellPut("ben",-20036); spellPut("beng",-20032); spellPut("bi",-20026); spellPut("bian",-20002); spellPut("biao",-19990); spellPut("bie",-19986); spellPut("bin",-19982); spellPut("bing",-19976); spellPut("bo",-19805); spellPut("bu",-19784); spellPut("ca",-19775); spellPut("cai",-19774); spellPut("can",-19763); spellPut("cang",-19756); spellPut("cao",-19751); spellPut("ce",-19746); spellPut("ceng",-19741); spellPut("cha",-19739); spellPut("chai",-19728); spellPut("chan",-19725); spellPut("chang",-19715); spellPut("chao",-19540); spellPut("che",-19531); spellPut("chen",-19525); spellPut("cheng",-19515); spellPut("chi",-19500); spellPut("chong",-19484); spellPut("chou",-19479); spellPut("chu",-19467); spellPut("chuai",-19289); spellPut("chuan",-19288); spellPut("chuang",-19281); spellPut("chui",-19275); spellPut("chun",-19270); spellPut("chuo",-19263); spellPut("ci",-19261); spellPut("cong",-19249); spellPut("cou",-19243); spellPut("cu",-19242); spellPut("cuan",-19238); spellPut("cui",-19235); spellPut("cun",-19227); spellPut("cuo",-19224); spellPut("da",-19218); spellPut("dai",-19212); spellPut("dan",-19038); spellPut("dang",-19023); spellPut("dao",-19018); spellPut("de",-19006); spellPut("deng",-19003); spellPut("d