19 #ifndef __DICTIONARY_GROUP_H_
20 #define __DICTIONARY_GROUP_H_
26 DICTIONARY_ERROR_VOID,
27 DICTIONARY_ERROR_NODICT,
28 DICTIONARY_ERROR_CANNOT_ACCESS_DICTFILE,
29 DICTIONARY_ERROR_INVALID_DICT,
30 DICTIONARY_ERROR_INVALID_INDEX,
35 void dict_group_delete(
DictGroup* dict_group);
37 int dict_group_load(
DictGroup* dict_group,
39 opencc_dictionary_type type);
41 const ucs4_t*
const* dict_group_match_longest(
45 size_t* match_length);
47 size_t dict_group_get_all_match_lengths(
DictGroup* dict_group,
49 size_t* match_length);
51 Dict* dict_group_get_dict(
DictGroup* dict_group,
size_t index);
53 dictionary_error dictionary_errno(
void);
55 void dictionary_perror(
const char* spec);