summaryrefslogtreecommitdiff
path: root/hangul/hangul.h
diff options
context:
space:
mode:
Diffstat (limited to 'hangul/hangul.h')
-rw-r--r--hangul/hangul.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/hangul/hangul.h b/hangul/hangul.h
index 5d9bc97..11cd84a 100644
--- a/hangul/hangul.h
+++ b/hangul/hangul.h
@@ -102,11 +102,6 @@ const ucschar* hangul_ic_get_commit_string(HangulInputContext *hic);
const ucschar* hangul_ic_flush(HangulInputContext *hic);
/* hanja.c */
-enum {
- HANJA_MATCH_EXACT,
- HANJA_MATCH_PREFIX
-};
-
typedef struct _Hanja Hanja;
typedef struct _HanjaList HanjaList;
typedef struct _HanjaTable HanjaTable;
@@ -129,8 +124,9 @@ struct _HanjaTable {
};
HanjaTable* hanja_table_load(const char *filename);
-HanjaList* hanja_table_match(const HanjaTable* table,
- int option, const char *key);
+HanjaList* hanja_table_match_prefix(const HanjaTable* table, const char *key);
+HanjaList* hanja_table_match_suffix(const HanjaTable* table, const char *key);
+
void hanja_table_destroy(HanjaTable *table);
void hanja_list_destroy(HanjaList *list);