±Û¾´ÀÌ :¹Ú¹Î±Ô 1998³â 7¿ù 03ÀÏ 13:23:06
In Reply to: [Áú¹®]ÇÑ±Û ½ºÆ®¸µÀ» ºÐÇØÇÏ´Â ¹æ¹ý posted by Çã°¿ì on 1998³â 7¿ù 01ÀÏ 19:53:25:
ÀÚ¹Ù¿¡¼´Â À¯´ÏÄڵ带 »ç¿ëÇÏ°í ÀÖ½À´Ï´Ù.
ÄÚµå ü°è´Â Á¶»çÇÏ¸é ¾Ë±¸¿ä...
µµ¿òÀÌ µÉ±îÇؼ..
¼Ò½º¶û...
µµ¿òÀ» ÁØ URL ÁÖ¼Ò¸¦ ¿Ã¸³´Ï´Ù.
À¯´ÏÄÚµå 2.0ÀÇ ÇÑ±Û ÄÚµå
http://camars.kaist.ac.kr/~dtkim/java/unicode_hangul.html
Á¦°¡ ±¸ÇöÇÑ ¼Ò½ºÀϺκÐ.
public class Hangul
{
static int[] JamoBulri(String str)
{
char charArray[] = str.toCharArray();
int last = charArray.length;
int subcode[] = new int[last*3];
for ( int i=0; i < last; i++)
{
if ( last >= 1)
{
subcode[i*3] = (charArray[i] - 0xAC00) / (21*28);
subcode[i*3+1] = ((charArray[i] - 0xAC00) % (21*28)) / 28;
subcode[i*3+2] = (charArray[i] -0xAC00) % (28);
}
System.out.println(charArray[i]+"="+subcode[i*3]+","+subcode[i*3+1]+","+subcode[i*3+2]);
}
return subcode;
}
static char JamoJohap(int[] subcode)
{
int last = subcode.length;
char mixSyllable[] = new char[last];
for (int i=0; i < last; i++)
{
mixSyllable[i] = (char) (0xAC00 + (subcode[i*3]*21*28) + (subcode[i*3+1]*28) + subcode[i*3+2]);
System.out.println(mixSyllable[i]);
}
return mixSyllable;
}