Back to index

im-sdk  12.3.91
hhentry.h
Go to the documentation of this file.
00001 #ifndef HHENTRY_H
00002 #define HHENTRY_H
00003 #include <iconv.h>
00004 #include "utfchar.h"
00005 
00006 #define HASH_TABLE_NUMBER 256
00007 #define IIIM_KO_LE_DIC "IIIM-KO-LE-DIC"
00008 
00009 typedef struct _HH {
00010   unsigned char *utf_hangul;
00011   unsigned char *utf_hanja;
00012 } HH;
00013 
00014 
00015 
00016 typedef struct _HHItem {
00017   unsigned char *hangul;
00018   int n_hanja;
00019   unsigned char **hanja_list;
00020 } HHItem;
00021 #if 0
00022 } HHItem, *HHEntry;
00023 #endif
00024 
00025 typedef struct _HHList {
00026   int n_count;
00027   HHItem **list;
00028 } HHList;
00029 
00030   
00031 
00032 void
00033 hh_free (HH *);
00034 HH *
00035 hh_new ();
00036 
00037 
00038 
00039 HHItem *hhitem_new ();
00040 HHItem *hhitem_new_with_data (HH *);
00041 void hhitem_free (HHItem *entry);
00042 void hhitem_init (HHItem * hhentry);
00043 int hhitem_comp (HHItem *a, HHItem *b);
00044 HHItem *hhitem_add_hanja (HHItem * hhentry, unsigned char *utf_hanja);
00045 void hhitem_copy (HHItem *dst, HHItem *src);
00046 void hhlist_init (HHList *hhlist);
00047 void hhlist_add_hhitem (HHList *hhlist, HHItem * hhitem);
00048 HHItem *hhlist_add_hh (HHList *hhlist, HH *item);
00049 HHItem *hhlist_search_hhitem (HHList *hhlist, HH *hh);
00050 void hhitem_print_string (HHItem *hhitem, FILE *fp);
00051 void hhlist_dump_content (HHList *hhlist, FILE *fp);
00052 void hhitem_read_from_file (FILE *fp, HHItem * entry_return);
00053 int hash (UTFCHAR *string);
00054 HH *process_hangul_hanja_pair (iconv_t cd, char *str_hangul, char *str_hanja);
00055 
00056 #endif /* HHENTRY_H */