Back to index

im-sdk  12.3.91
hhdict.h
Go to the documentation of this file.
00001 #ifndef __HHDICT_H__
00002 #define __HHDICT_H__
00003 
00004 #ifndef Bool
00005 typedef enum {
00006   True=1, False=0
00007 } Boolean;
00008 #define Bool Boolean
00009 #endif
00010 
00011 #include "tree.h"
00012 
00013 typedef struct _Dictionary Dictionary;
00014 
00015 struct _Dictionary {
00016   int   n_trees;
00017   Tree *p_trees;
00018 };
00019 
00020 Bool
00021 construct_binary_tree_from_file
00022 (char *dic_path, Tree **trees_return, int *n_trees_return );
00023 
00024 Bool
00025 dictionary_search_hanja_candidates_in_utf16
00026 (UTFCHAR *u16_hangul, int *n_return, UTFCHAR ***u16_hanja_return );
00027 
00028 typedef struct _DictionaryHeader DictionaryHeader;
00029 
00030 struct _DictionaryHeader {
00031   char  dict_name[50];
00032   int   dict_version_major;
00033   int   dict_version_minor;
00034   int   table_size;
00035 };
00036 
00037 #endif /* __HHDICT_H__ */