Exemple #1
0
        //------------------------------------------------------------------------
        //  static public method
        //------------------------------------------------------------------------
        // Hangul ---> Japanese Katakana   (ex. 아이돌 --->  アイドル )
        static public string  Hangul2Kana(string hangul)
        {
            string [] kRomanArray = Hangul.Hangul2kRomanArray(hangul);
            string    katakana    = Hangul.kRomanArray2Kana(kRomanArray);

            return(katakana);
        }
Exemple #2
0
        //------------------------------------------------------------------------
        // Korean Roman ---> Hnagul          (ex.   A,I,DOL --->  아이돌 )
        static private string  kRomanArray2Hangul(string [] kRomanArray)
        {
            string hangul = "";

            for (int i = 0; i < kRomanArray.Length; i++)
            {
                hangul += Hangul.kRoman2Hangul(kRomanArray[i]);
            } // end of for

            return(hangul);
        }
Exemple #3
0
 //------------------------------------------------------------------------
 // constructor
 public Hangul(string text)
 {
     this.text        = text;
     this.kRomanArray = Hangul.Hangul2kRomanArray(this.text);
     this.katakana    = Hangul.kRomanArray2Kana(this.kRomanArray);
 }