1 /* ÊÑ´¹·ë²Ì¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹ */
2 #ifndef _convdb_h_included_
3 #define _convdb_h_included_
5 #include <anthy/anthy.h>
7 /* ÉÔÌÀ, OK, ¸íÊÑ´¹, don't care¤Î4¤Ä¤Î¥«¥Æ¥´¥ê¡¼¤ËʬÎह¤ë */
11 #define CHK_DONTCARE 3
15 #define CONV_SIZE_MISS 1
16 #define CONV_CAND_MISS 2
17 #define CONV_INVALID 4
19 /* ÊÑ´¹Á°¤ÈÊÑ´¹¸å¤Îʸ»úÎó¡¢·ë²Ì¤ËÂФ¹¤ëȽÄê¤ò³ÊǼ¤¹¤ë */
24 /* ¸õÊä¤ò³ä¤êÅö¤Æ¤¿¤â¤Î */
32 struct conv_res *next;
35 /* ÊÑ´¹·ë²Ì¤Î¥«¥¦¥ó¥È */
43 /* ÊÑ´¹·ë²Ì¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹ */
46 struct conv_res res_list;
47 struct conv_res *tail;
50 struct res_stat res, split;
53 struct res_db *create_db(void);
54 void read_db(struct res_db *db, const char *fn);
55 struct conv_res *find_conv_res(struct res_db *db, anthy_context_t ac,
56 const char *src, int conv);
57 void print_size_miss_segment_info(anthy_context_t ac, int nth);
58 void print_cand_miss_segment_info(anthy_context_t ac, int nth);
59 void print_context_info(anthy_context_t ac, struct conv_res *cr);