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, *HHEntry;
00021 
00022 typedef struct _HHList {
00023   int n_count;
00024   HHEntry *list;
00025 } HHList;
00026 
00027   
00028 
00029 void
00030 hh_free (HH *);
00031 HH *
00032 hh_new ();
00033 
00034 
00035 
00036 HHEntry
00037 hhitem_new ();
00038 HHEntry
00039 hhitem_new_with_data (HH *);
00040 void
00041 hhitem_init (HHEntry hhentry);
00042 HHEntry
00043 hhitem_add_hanja (HHEntry hhentry, unsigned char *utf_hanja);
00044 
00045 void
00046 hhlist_init (HHList *hhlist);
00047 
00048 void
00049 hhlist_add_hhitem (HHList *hhlist, HHEntry hhitem);
00050 
00051 HHEntry
00052 hhlist_add_hh (HHList *hhlist, HH *item);
00053 HHEntry
00054 hhlist_search_hhitem (HHList *hhlist, HH *hh);
00055 void
00056 hhlist_dump_content (HHList *hhlist, FILE *fp);
00057 void
00058 hhlist_read_from_file (FILE *fp, HHList *hhlist);
00059 
00060 void
00061 hhitem_read_from_file (FILE *fp, HHEntry entry_return);
00062 
00063 int
00064 hash (UTFCHAR *string);
00065 
00066 HH *
00067 process_hangul_hanja_pair (iconv_t cd, char *str_hangul, char *str_hanja);
00068 
00069 void
00070 hash_table_dump_content (HHList table[], int size, FILE *fp);
00071 
00072 #endif /* HHENTRY_H */