deprecated 함수 제거
authorChoe Hwanjin <choe.hwanjin@gmail.com>
Wed, 7 Sep 2011 14:43:20 +0000 (23:43 +0900)
committerChoe Hwanjin <choe.hwanjin@gmail.com>
Wed, 7 Sep 2011 14:43:20 +0000 (23:43 +0900)
다음 릴리스에서는 library version을 올릴 것이다.

git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@267 8f00fcd2-89fc-0310-932e-b01be5b65e01

hangul/hangul.h
hangul/hangulctype.c
hangul/hangulinputcontext.c

index 4957c29..bf16afd 100644 (file)
@@ -157,23 +157,6 @@ const char*  hanja_get_key(const Hanja* hanja);
 const char*  hanja_get_value(const Hanja* hanja);
 const char*  hanja_get_comment(const Hanja* hanja);
 
-
-/* deprecated */
-bool hangul_is_jaso(ucschar c) LIBHANGUL_DEPRECATED;
-ucschar hangul_jaso_to_jamo(ucschar ch) LIBHANGUL_DEPRECATED;
-ucschar hangul_jaso_to_syllable(ucschar choseong,
-                               ucschar jungseong,
-                               ucschar jongseong) LIBHANGUL_DEPRECATED;
-void    hangul_syllable_to_jaso(ucschar syllable,
-                               ucschar* choseong,
-                               ucschar* jungseong,
-                               ucschar* jongseong) LIBHANGUL_DEPRECATED;
-typedef bool (*HangulICFilter) (ucschar*, ucschar, ucschar, ucschar, void*);
-void hangul_ic_set_filter(HangulInputContext *hic,
-                         HangulICFilter func, void *user_data) LIBHANGUL_DEPRECATED;
-int  hangul_ic_dvorak_to_qwerty(int qwerty) LIBHANGUL_DEPRECATED;
-
-
 #ifdef __cplusplus
 }
 #endif
index 2d83de9..53ada66 100644 (file)
@@ -176,13 +176,6 @@ hangul_is_jamo(ucschar c)
           hangul_is_jongseong(c);
 }
 
-/** @deprecated 이 함수 대신 hangul_is_jamo()함수를 사용한다. */
-bool
-hangul_is_jaso(ucschar c)
-{
-    return hangul_is_jamo(c);
-}
-
 /**
  * @ingroup hangulctype
  * @brief 호환 자모인지 확인
@@ -592,13 +585,6 @@ hangul_jamo_to_cjamo(ucschar c)
     return ret;
 }
 
-/** @deprecated 이 함수 대신 hangul_jamo_to_cjamo()함수를 사용한다. */
-ucschar
-hangul_jaso_to_jamo(ucschar c)
-{
-    return hangul_jamo_to_cjamo(c);
-}
-
 ucschar
 hangul_choseong_to_jongseong(ucschar c)
 {
@@ -1299,13 +1285,6 @@ hangul_jamo_to_syllable(ucschar choseong, ucschar jungseong, ucschar jongseong)
     return c;
 }
 
-/** @deprecated 이 함수 대신 hangul_jamo_to_syllable()을 사용한다. */
-ucschar
-hangul_jaso_to_syllable(ucschar choseong, ucschar jungseong, ucschar jongseong)
-{
-    return hangul_jamo_to_syllable(choseong, jungseong, jongseong);
-}
-
 /**
  * @ingroup hangulctype
  * @brief 음절을 자모로 분해
index 08fd869..46fc740 100644 (file)
@@ -232,9 +232,6 @@ struct _HangulInputContext {
     HangulOnTransition  on_transition;
     void*               on_transition_data;
 
-    HangulICFilter filter;
-    void *filter_data;
-
     unsigned int use_jamo_mode_only : 1;
 };
 
@@ -1457,112 +1454,6 @@ hangul_ic_backspace(HangulInputContext *hic)
     return ret;
 }
 
-int
-hangul_ic_dvorak_to_qwerty(int qwerty)
-{
-    static const int table[] = {
-       '!',    /* ! */
-       'Q',    /* " */
-       '#',    /* # */
-       '$',    /* $ */
-       '%',    /* % */
-       '&',    /* & */
-       'q',    /* ' */
-       '(',    /* ( */
-       ')',    /* ) */
-       '*',    /* * */
-       '}',    /* + */
-       'w',    /* , */
-       '\'',   /* - */
-       'e',    /* . */
-       '[',    /* / */
-       '0',    /* 0 */
-       '1',    /* 1 */
-       '2',    /* 2 */
-       '3',    /* 3 */
-       '4',    /* 4 */
-       '5',    /* 5 */
-       '6',    /* 6 */
-       '7',    /* 7 */
-       '8',    /* 8 */
-       '9',    /* 9 */
-       'Z',    /* : */
-       'z',    /* ; */
-       'W',    /* < */
-       ']',    /* = */
-       'E',    /* > */
-       '{',    /* ? */
-       '@',    /* @ */
-       'A',    /* A */
-       'N',    /* B */
-       'I',    /* C */
-       'H',    /* D */
-       'D',    /* E */
-       'Y',    /* F */
-       'U',    /* G */
-       'J',    /* H */
-       'G',    /* I */
-       'C',    /* J */
-       'V',    /* K */
-       'P',    /* L */
-       'M',    /* M */
-       'L',    /* N */
-       'S',    /* O */
-       'R',    /* P */
-       'X',    /* Q */
-       'O',    /* R */
-       ':',    /* S */
-       'K',    /* T */
-       'F',    /* U */
-       '>',    /* V */
-       '<',    /* W */
-       'B',    /* X */
-       'T',    /* Y */
-       '?',    /* Z */
-       '-',    /* [ */
-       '\\',   /* \ */
-       '=',    /* ] */
-       '^',    /* ^ */
-       '"',    /* _ */
-       '`',    /* ` */
-       'a',    /* a */
-       'n',    /* b */
-       'i',    /* c */
-       'h',    /* d */
-       'd',    /* e */
-       'y',    /* f */
-       'u',    /* g */
-       'j',    /* h */
-       'g',    /* i */
-       'c',    /* j */
-       'v',    /* k */
-       'p',    /* l */
-       'm',    /* m */
-       'l',    /* n */
-       's',    /* o */
-       'r',    /* p */
-       'x',    /* q */
-       'o',    /* r */
-       ';',    /* s */
-       'k',    /* t */
-       'f',    /* u */
-       '.',    /* v */
-       ',',    /* w */
-       'b',    /* x */
-       't',    /* y */
-       '/',    /* z */
-       '_',    /* { */
-       '|',    /* | */
-       '+',    /* } */
-       '~'     /* ~ */
-    };
-
-    if (qwerty >= '!' && qwerty <= '~')
-       return table[qwerty - '!'];
-
-    return qwerty;
-}
-
 /**
  * @ingroup hangulic
  * @brief @ref HangulInputContext가 조합중인 글자를 가지고 있는지 확인하는 함수
@@ -1670,12 +1561,6 @@ void hangul_ic_connect_callback(HangulInputContext* hic, const char* event,
     }
 }
 
-void hangul_ic_set_filter(HangulInputContext *hic,
-                         HangulICFilter func, void *user_data)
-{
-    return;
-}
-
 void
 hangul_ic_set_keyboard(HangulInputContext *hic, const HangulKeyboard* keyboard)
 {