⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 charswithlength_1_3.java

📁 j2me 汉字输入框
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   CharsWithLength_1_3.java

package util.hzpy;


// Referenced classes of package src.util.hzpy:
//            HanyuPinyin, HanyuPinyin_m_z

public class CharsWithLength_1_3
{

    public CharsWithLength_1_3()
    {
    }

    public static char[] getHanziSequence(StringBuffer pinyin)
    {
        char result[] = null;
        if(pinyin == null || pinyin.length() <= 0)
            return null;
        int length = pinyin.length();
        char temp[] = new char[length];
        pinyin.getChars(0, length, temp, 0);
        if(length == 1)
        {
            if(temp[0] == 'a')
                result = HanyuPinyin.A;
            else
            if(temp[0] == 'e')
                result = HanyuPinyin.E;
            else
            if(temp[0] == 'm')
                result = HanyuPinyin_m_z.M;
            else
            if(temp[0] == 'o')
                result = HanyuPinyin_m_z.O;
        } else
        if(length == 2)
        {
            if(temp[0] == 'a' && temp[1] == 'i')
                result = HanyuPinyin.AI;
            else
            if(temp[0] == 'a' && temp[1] == 'n')
                result = HanyuPinyin.AN;
            else
            if(temp[0] == 'a' && temp[1] == 'o')
                result = HanyuPinyin.AO;
            else
            if(temp[0] == 'b' && temp[1] == 'a')
                result = HanyuPinyin.BA;
            else
            if(temp[0] == 'b' && temp[1] == 'i')
                result = HanyuPinyin.BI;
            else
            if(temp[0] == 'b' && temp[1] == 'o')
                result = HanyuPinyin.BO;
            else
            if(temp[0] == 'b' && temp[1] == 'u')
                result = HanyuPinyin.BU;
            else
            if(temp[0] == 'c' && temp[1] == 'a')
                result = HanyuPinyin.CA;
            else
            if(temp[0] == 'c' && temp[1] == 'e')
                result = HanyuPinyin.CE;
            else
            if(temp[0] == 'c' && temp[1] == 'i')
                result = HanyuPinyin.CI;
            else
            if(temp[0] == 'c' && temp[1] == 'u')
                result = HanyuPinyin.CU;
            else
            if(temp[0] == 'd' && temp[1] == 'a')
                result = HanyuPinyin.DA;
            else
            if(temp[0] == 'd' && temp[1] == 'e')
                result = HanyuPinyin.DE;
            else
            if(temp[0] == 'd' && temp[1] == 'i')
                result = HanyuPinyin.DI;
            else
            if(temp[0] == 'd' && temp[1] == 'u')
                result = HanyuPinyin.DU;
            else
            if(temp[0] == 'e' && temp[1] == 'i')
                result = HanyuPinyin.EI;
            else
            if(temp[0] == 'e' && temp[1] == 'n')
                result = HanyuPinyin.EN;
            else
            if(temp[0] == 'e' && temp[1] == 'r')
                result = HanyuPinyin.ER;
            else
            if(temp[0] == 'f' && temp[1] == 'a')
                result = HanyuPinyin.FA;
            else
            if(temp[0] == 'f' && temp[1] == 'u')
                result = HanyuPinyin.FU;
            else
            if(temp[0] == 'g' && temp[1] == 'a')
                result = HanyuPinyin.GA;
            else
            if(temp[0] == 'g' && temp[1] == 'e')
                result = HanyuPinyin.GE;
            else
            if(temp[0] == 'g' && temp[1] == 'u')
                result = HanyuPinyin.GU;
            else
            if(temp[0] == 'h' && temp[1] == 'a')
                result = HanyuPinyin.HA;
            else
            if(temp[0] == 'h' && temp[1] == 'e')
                result = HanyuPinyin.HE;
            else
            if(temp[0] == 'h' && temp[1] == 'u')
                result = HanyuPinyin.HU;
            else
            if(temp[0] == 'j' && temp[1] == 'i')
                result = HanyuPinyin.JI;
            else
            if(temp[0] == 'j' && temp[1] == 'u')
                result = HanyuPinyin.JU;
            else
            if(temp[0] == 'k' && temp[1] == 'a')
                result = HanyuPinyin.KA;
            else
            if(temp[0] == 'k' && temp[1] == 'e')
                result = HanyuPinyin.KE;
            else
            if(temp[0] == 'k' && temp[1] == 'u')
                result = HanyuPinyin.KU;
            else
            if(temp[0] == 'l' && temp[1] == 'a')
                result = HanyuPinyin.LA;
            else
            if(temp[0] == 'l' && temp[1] == 'e')
                result = HanyuPinyin.LE;
            else
            if(temp[0] == 'l' && temp[1] == 'i')
                result = HanyuPinyin.LI;
            else
            if(temp[0] == 'l' && temp[1] == 'u')
                result = HanyuPinyin.LU;
            else
            if(temp[0] == 'm' && temp[1] == 'a')
                result = HanyuPinyin_m_z.MA;
            else
            if(temp[0] == 'm' && temp[1] == 'e')
                result = HanyuPinyin_m_z.ME;
            else
            if(temp[0] == 'm' && temp[1] == 'i')
                result = HanyuPinyin_m_z.MI;
            else
            if(temp[0] == 'm' && temp[1] == 'o')
                result = HanyuPinyin_m_z.MO;
            else
            if(temp[0] == 'm' && temp[1] == 'u')
                result = HanyuPinyin_m_z.MU;
            else
            if(temp[0] == 'n' && temp[1] == 'a')
                result = HanyuPinyin_m_z.NA;
            else
            if(temp[0] == 'n' && temp[1] == 'e')
                result = HanyuPinyin_m_z.NE;
            else
            if(temp[0] == 'n' && temp[1] == 'g')
                result = HanyuPinyin_m_z.NG;
            else
            if(temp[0] == 'n' && temp[1] == 'i')
                result = HanyuPinyin_m_z.NI;
            else
            if(temp[0] == 'n' && temp[1] == 'u')
                result = HanyuPinyin_m_z.NU;
            else
            if(temp[0] == 'o' && temp[1] == 'u')
                result = HanyuPinyin_m_z.OU;
            else
            if(temp[0] == 'p' && temp[1] == 'a')
                result = HanyuPinyin_m_z.PA;
            else
            if(temp[0] == 'p' && temp[1] == 'i')
                result = HanyuPinyin_m_z.PI;
            else
            if(temp[0] == 'p' && temp[1] == 'o')
                result = HanyuPinyin_m_z.PO;
            else
            if(temp[0] == 'p' && temp[1] == 'u')
                result = HanyuPinyin_m_z.PU;
            else
            if(temp[0] == 'q' && temp[1] == 'i')
                result = HanyuPinyin_m_z.QI;
            else
            if(temp[0] == 'q' && temp[1] == 'u')
                result = HanyuPinyin_m_z.QU;
            else
            if(temp[0] == 'r' && temp[1] == 'e')
                result = HanyuPinyin_m_z.RE;
            else
            if(temp[0] == 'r' && temp[1] == 'i')
                result = HanyuPinyin_m_z.RI;
            else
            if(temp[0] == 'r' && temp[1] == 'u')
                result = HanyuPinyin_m_z.RU;
            else
            if(temp[0] == 's' && temp[1] == 'a')
                result = HanyuPinyin_m_z.SA;
            else
            if(temp[0] == 's' && temp[1] == 'e')
                result = HanyuPinyin_m_z.SE;
            else
            if(temp[0] == 's' && temp[1] == 'i')
                result = HanyuPinyin_m_z.SI;
            else
            if(temp[0] == 's' && temp[1] == 'u')
                result = HanyuPinyin_m_z.SU;
            else
            if(temp[0] == 't' && temp[1] == 'a')
                result = HanyuPinyin_m_z.TA;
            else
            if(temp[0] == 't' && temp[1] == 'e')
                result = HanyuPinyin_m_z.TE;
            else
            if(temp[0] == 't' && temp[1] == 'i')
                result = HanyuPinyin_m_z.TI;
            else
            if(temp[0] == 't' && temp[1] == 'u')
                result = HanyuPinyin_m_z.TU;
            else
            if(temp[0] == 'w' && temp[1] == 'a')
                result = HanyuPinyin_m_z.WA;
            else
            if(temp[0] == 'w' && temp[1] == 'o')
                result = HanyuPinyin_m_z.WO;
            else
            if(temp[0] == 'w' && temp[1] == 'u')
                result = HanyuPinyin_m_z.WU;
            else
            if(temp[0] == 'x' && temp[1] == 'i')
                result = HanyuPinyin_m_z.XI;
            else
            if(temp[0] == 'x' && temp[1] == 'u')
                result = HanyuPinyin_m_z.XU;
            else
            if(temp[0] == 'y' && temp[1] == 'a')
                result = HanyuPinyin_m_z.YA;
            else
            if(temp[0] == 'y' && temp[1] == 'e')
                result = HanyuPinyin_m_z.YE;
            else
            if(temp[0] == 'y' && temp[1] == 'i')
                result = HanyuPinyin_m_z.YI;
            else
            if(temp[0] == 'y' && temp[1] == 'o')
                result = HanyuPinyin_m_z.YO;
            else
            if(temp[0] == 'y' && temp[1] == 'u')
                result = HanyuPinyin_m_z.YU;
            else
            if(temp[0] == 'z' && temp[1] == 'a')
                result = HanyuPinyin_m_z.ZA;
            else

⌨️ 快捷键说明

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