1 #ifndef RKCONV_H_INCLUDED
2 #define RKCONV_H_INCLUDED
11 struct rk_conv_context;
14 rk_map_create(const struct rk_rule* rules);
15 struct rk_conv_context*
16 rk_context_create(int brk);
18 rk_select_map(struct rk_conv_context* cc, struct rk_map* map);
20 rk_push_key(struct rk_conv_context* cc, int c);
22 rk_result(struct rk_conv_context* cc, char* buf, int size);
24 rk_context_free(struct rk_conv_context* cc);
26 rk_map_free(struct rk_map* map);
28 rk_partial_result(struct rk_conv_context* cc, char* buf, int size);
31 rk_flush(struct rk_conv_context* cc);
33 rk_terminate(struct rk_conv_context* cc);
35 rk_get_pending_str(struct rk_conv_context* cc, char* buf, int size);
37 rk_register_map(struct rk_conv_context* cc, int mapn, struct rk_map* map);
39 rk_select_registered_map(struct rk_conv_context* cc, int mapn);
41 rk_selected_map(struct rk_conv_context* cc);
44 rk_merge_rules(const struct rk_rule* r1, const struct rk_rule* r2);
46 rk_rules_free(struct rk_rule* rules);
48 const char *brk_roman_get_previous_pending(struct rk_conv_context *);
49 int brk_roman_get_decided_len(struct rk_conv_context *);
51 #endif /* RKCONV_H_INCLUDED */