dealtext.java

来自「spring+struts+hibernate做的银行系统」· Java 代码 · 共 685 行 · 第 1/2 页

JAVA
685
字号
     PYSpellPut("ken", -16433);
     PYSpellPut("keng", -16429);
     PYSpellPut("kong", -16427);
     PYSpellPut("kou", -16423);
     PYSpellPut("ku", -16419);
     PYSpellPut("kua", -16412);
     PYSpellPut("kuai", -16407);
     PYSpellPut("kuan", -16403);
     PYSpellPut("kuang", -16401);
     PYSpellPut("kui", -16393);
     PYSpellPut("kun", -16220);
     PYSpellPut("kuo", -16216);
     PYSpellPut("la", -16212);
     PYSpellPut("lai", -16205);
     PYSpellPut("lan", -16202);
     PYSpellPut("lang", -16187);
     PYSpellPut("lao", -16180);
     PYSpellPut("le", -16171);
     PYSpellPut("lei", -16169);
     PYSpellPut("leng", -16158);
     PYSpellPut("li", -16155);
     PYSpellPut("lia", -15959);
     PYSpellPut("lian", -15958);
     PYSpellPut("liang", -15944);
     PYSpellPut("liao", -15933);
     PYSpellPut("lie", -15920);
     PYSpellPut("lin", -15915);
     PYSpellPut("ling", -15903);
     PYSpellPut("liu", -15889);
     PYSpellPut("long", -15878);
     PYSpellPut("lou", -15707);
     PYSpellPut("lu", -15701);
     PYSpellPut("lv", -15681);
     PYSpellPut("luan", -15667);
     PYSpellPut("lue", -15661);
     PYSpellPut("lun", -15659);
     PYSpellPut("luo", -15652);
     PYSpellPut("ma", -15640);
     PYSpellPut("mai", -15631);
     PYSpellPut("man", -15625);
     PYSpellPut("mang", -15454);
     PYSpellPut("mao", -15448);
     PYSpellPut("me", -15436);
     PYSpellPut("mei", -15435);
     PYSpellPut("men", -15419);
     PYSpellPut("meng", -15416);
     PYSpellPut("mi", -15408);
     PYSpellPut("mian", -15394);
     PYSpellPut("miao", -15385);
     PYSpellPut("mie", -15377);
     PYSpellPut("min", -15375);
     PYSpellPut("ming", -15369);
     PYSpellPut("miu", -15363);
     PYSpellPut("mo", -15362);
     PYSpellPut("mou", -15183);
     PYSpellPut("mu", -15180);
     PYSpellPut("na", -15165);
     PYSpellPut("nai", -15158);
     PYSpellPut("nan", -15153);
     PYSpellPut("nang", -15150);
     PYSpellPut("nao", -15149);
     PYSpellPut("ne", -15144);
     PYSpellPut("nei", -15143);
     PYSpellPut("nen", -15141);
     PYSpellPut("neng", -15140);
     PYSpellPut("ni", -15139);
     PYSpellPut("nian", -15128);
     PYSpellPut("niang", -15121);
     PYSpellPut("niao", -15119);
     PYSpellPut("nie", -15117);
     PYSpellPut("nin", -15110);
     PYSpellPut("ning", -15109);
     PYSpellPut("niu", -14941);
     PYSpellPut("nong", -14937);
     PYSpellPut("nu", -14933);
     PYSpellPut("nv", -14930);
     PYSpellPut("nuan", -14929);
     PYSpellPut("nue", -14928);
     PYSpellPut("nuo", -14926);
     PYSpellPut("o", -14922);
     PYSpellPut("ou", -14921);
     PYSpellPut("pa", -14914);
     PYSpellPut("pai", -14908);
     PYSpellPut("pan", -14902);
     PYSpellPut("pang", -14894);
     PYSpellPut("pao", -14889);
     PYSpellPut("pei", -14882);
     PYSpellPut("pen", -14873);
     PYSpellPut("peng", -14871);
     PYSpellPut("pi", -14857);
     PYSpellPut("pian", -14678);
     PYSpellPut("piao", -14674);
     PYSpellPut("pie", -14670);
     PYSpellPut("pin", -14668);
     PYSpellPut("ping", -14663);
     PYSpellPut("po", -14654);
     PYSpellPut("pu", -14645);
     PYSpellPut("qi", -14630);
     PYSpellPut("qia", -14594);
     PYSpellPut("qian", -14429);
     PYSpellPut("qiang", -14407);
     PYSpellPut("qiao", -14399);
     PYSpellPut("qie", -14384);
     PYSpellPut("qin", -14379);
     PYSpellPut("qing", -14368);
     PYSpellPut("qiong", -14355);
     PYSpellPut("qiu", -14353);
     PYSpellPut("qu", -14345);
     PYSpellPut("quan", -14170);
     PYSpellPut("que", -14159);
     PYSpellPut("qun", -14151);
     PYSpellPut("ran", -14149);
     PYSpellPut("rang", -14145);
     PYSpellPut("rao", -14140);
     PYSpellPut("re", -14137);
     PYSpellPut("ren", -14135);
     PYSpellPut("reng", -14125);
     PYSpellPut("ri", -14123);
     PYSpellPut("rong", -14122);
     PYSpellPut("rou", -14112);
     PYSpellPut("ru", -14109);
     PYSpellPut("ruan", -14099);
     PYSpellPut("rui", -14097);
     PYSpellPut("run", -14094);
     PYSpellPut("ruo", -14092);
     PYSpellPut("sa", -14090);
     PYSpellPut("sai", -14087);
     PYSpellPut("san", -14083);
     PYSpellPut("sang", -13917);
     PYSpellPut("sao", -13914);
     PYSpellPut("se", -13910);
     PYSpellPut("sen", -13907);
     PYSpellPut("seng", -13906);
     PYSpellPut("sha", -13905);
     PYSpellPut("shai", -13896);
     PYSpellPut("shan", -13894);
     PYSpellPut("shang", -13878);
     PYSpellPut("shao", -13870);
     PYSpellPut("she", -13859);
     PYSpellPut("shen", -13847);
     PYSpellPut("sheng", -13831);
     PYSpellPut("shi", -13658);
     PYSpellPut("shou", -13611);
     PYSpellPut("shu", -13601);
     PYSpellPut("shua", -13406);
     PYSpellPut("shuai", -13404);
     PYSpellPut("shuan", -13400);
     PYSpellPut("shuang", -13398);
     PYSpellPut("shui", -13395);
     PYSpellPut("shun", -13391);
     PYSpellPut("shuo", -13387);
     PYSpellPut("si", -13383);
     PYSpellPut("song", -13367);
     PYSpellPut("sou", -13359);
     PYSpellPut("su", -13356);
     PYSpellPut("suan", -13343);
     PYSpellPut("sui", -13340);
     PYSpellPut("sun", -13329);
     PYSpellPut("suo", -13326);
     PYSpellPut("ta", -13318);
     PYSpellPut("tai", -13147);
     PYSpellPut("tan", -13138);
     PYSpellPut("tang", -13120);
     PYSpellPut("tao", -13107);
     PYSpellPut("te", -13096);
     PYSpellPut("teng", -13095);
     PYSpellPut("ti", -13091);
     PYSpellPut("tian", -13076);
     PYSpellPut("tiao", -13068);
     PYSpellPut("tie", -13063);
     PYSpellPut("ting", -13060);
     PYSpellPut("tong", -12888);
     PYSpellPut("tou", -12875);
     PYSpellPut("tu", -12871);
     PYSpellPut("tuan", -12860);
     PYSpellPut("tui", -12858);
     PYSpellPut("tun", -12852);
     PYSpellPut("tuo", -12849);
     PYSpellPut("wa", -12838);
     PYSpellPut("wai", -12831);
     PYSpellPut("wan", -12829);
     PYSpellPut("wang", -12812);
     PYSpellPut("wei", -12802);
     PYSpellPut("wen", -12607);
     PYSpellPut("weng", -12597);
     PYSpellPut("wo", -12594);
     PYSpellPut("wu", -12585);
     PYSpellPut("xi", -12556);
     PYSpellPut("xia", -12359);
     PYSpellPut("xian", -12346);
     PYSpellPut("xiang", -12320);
     PYSpellPut("xiao", -12300);
     PYSpellPut("xie", -12120);
     PYSpellPut("xin", -12099);
     PYSpellPut("xing", -12089);
     PYSpellPut("xiong", -12074);
     PYSpellPut("xiu", -12067);
     PYSpellPut("xu", -12058);
     PYSpellPut("xuan", -12039);
     PYSpellPut("xue", -11867);
     PYSpellPut("xun", -11861);
     PYSpellPut("ya", -11847);
     PYSpellPut("yan", -11831);
     PYSpellPut("yang", -11798);
     PYSpellPut("yao", -11781);
     PYSpellPut("ye", -11604);
     PYSpellPut("yi", -11589);
     PYSpellPut("yin", -11536);
     PYSpellPut("ying", -11358);
     PYSpellPut("yo", -11340);
     PYSpellPut("yong", -11339);
     PYSpellPut("you", -11324);
     PYSpellPut("yu", -11303);
     PYSpellPut("yuan", -11097);
     PYSpellPut("yue", -11077);
     PYSpellPut("yun", -11067);
     PYSpellPut("za", -11055);
     PYSpellPut("zai", -11052);
     PYSpellPut("zan", -11045);
     PYSpellPut("zang", -11041);
     PYSpellPut("zao", -11038);
     PYSpellPut("ze", -11024);
     PYSpellPut("zei", -11020);
     PYSpellPut("zen", -11019);
     PYSpellPut("zeng", -11018);
     PYSpellPut("zha", -11014);
     PYSpellPut("zhai", -10838);
     PYSpellPut("zhan", -10832);
     PYSpellPut("zhang", -10815);
     PYSpellPut("zhao", -10800);
     PYSpellPut("zhe", -10790);
     PYSpellPut("zhen", -10780);
     PYSpellPut("zheng", -10764);
     PYSpellPut("zhi", -10587);
     PYSpellPut("zhong", -10544);
     PYSpellPut("zhou", -10533);
     PYSpellPut("zhu", -10519);
     PYSpellPut("zhua", -10331);
     PYSpellPut("zhuai", -10329);
     PYSpellPut("zhuan", -10328);
     PYSpellPut("zhuang", -10322);
     PYSpellPut("zhui", -10315);
     PYSpellPut("zhun", -10309);
     PYSpellPut("zhuo", -10307);
     PYSpellPut("zi", -10296);
     PYSpellPut("zong", -10281);
     PYSpellPut("zou", -10274);
     PYSpellPut("zu", -10270);
     PYSpellPut("zuan", -10262);
     PYSpellPut("zui", -10260);
     PYSpellPut("zun", -10256);
     PYSpellPut("zuo", -10254);
 }

 public static String returnPYChar(char input, int mark)
 {
     String output = "";
     byte charNum[] = String.valueOf(input).getBytes();
     int ascii = 0;
     if(charNum != null && charNum.length <= 2 && charNum.length > 0)
         if(charNum.length == 1)
         {
             ascii = charNum[0];
         } else
         {
             int highByte = 256 + charNum[0];
             int lowByte = 256 + charNum[1];
             ascii = (256 * highByte + lowByte) - 0x10000;
         }
     if(ascii > 0 && ascii < 160)
         output = String.valueOf((char)ascii);
     if(ascii >= -20319 && ascii <= -10247)
     {
         Set keySet = PYSpellMap.keySet();
         Iterator it = keySet.iterator();
         String spell0 = null;
         String spell = null;
         int asciiRang0 = -20319;
         while(it.hasNext()) 
         {
             spell = (String)it.next();
             Object valObj = PYSpellMap.get(spell);
             if(valObj instanceof Integer)
             {
                 int asciiRang = ((Integer)valObj).intValue();
                 if(ascii >= asciiRang0 && ascii < asciiRang)
                 {
                     if(spell0 == null)
                         output = spell;
                     else
                         output = spell0;
                 } else
                 {
                     spell0 = spell;
                     asciiRang0 = asciiRang;
                 }
             }
         }
     }
     if(mark == 1 || mark == 2)
         if(mark == 1)
             output = output.toUpperCase();
         else
             output = output.substring(0, 1).toUpperCase() + output.substring(1, output.length());
     return output;
 }

 
	//���ϴ���ͼƬ,�Ե�ǰ��ϵͳʱ��4ȡ��
	public static String getDateTime()
	{
		java.text.SimpleDateFormat f = new java.text.SimpleDateFormat("yyyyMMddHmmss");
		String time = f.format(new java.util.Date());
		return time;
	}
	
	
 public static String returnPYString(String input, int mark)
 {
     String output = "";
     input = ExchangeInput.StringToString(input);
     char chars[] = input.toCharArray();
     for(int i = 0; i < chars.length; i++)
     {
         String temp = returnPYChar(chars[i], mark);
         if(!temp.equals(""))
             output = output + temp;
     }

     return output;
 }

 static 
 {
     PYSpellMap = null;
     if(PYSpellMap == null)
         PYSpellMap = new LinkedHashMap(400);
     initializePYSpellMap();

 }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?