7 typedef enum CHISE_DS_Type
13 typedef struct CHISE_DS
19 int chise_open_data_source (CHISE_DS *ds, CHISE_DS_Type type,
22 int chise_close_data_source (CHISE_DS *ds);
25 typedef int CHISE_Char_ID;
28 typedef DBT CHISE_Value;
31 chise_value_size (const CHISE_Value *s)
37 chise_value_data (const CHISE_Value *s)
43 chise_value_to_c_string (const CHISE_Value *s)
49 typedef struct CHISE_Attribute_Table
52 } CHISE_Attribute_Table;
55 typedef CHISE_Attribute_Table CHISE_Decoding_Table;
57 int chise_open_decoding_table (CHISE_Decoding_Table *db,
58 CHISE_DS *ds, const char *ccs,
60 u_int32_t accessmask, int modemask);
62 int chise_close_decoding_table (CHISE_Decoding_Table *db);
64 CHISE_Char_ID chise_dt_get_char (CHISE_Decoding_Table *db, int code_point);
66 int chise_dt_put_char (CHISE_Decoding_Table *db,
67 int code_point, CHISE_Char_ID cid);
69 typedef CHISE_Attribute_Table CHISE_Feature_Table;
71 int chise_open_feature_table (CHISE_Feature_Table *db,
72 CHISE_DS *ds, const char *feature,
74 u_int32_t accessmask, int modemask);
76 int chise_close_feature_table (CHISE_Feature_Table *db);
78 int chise_ft_get_value (CHISE_Feature_Table *db,
79 CHISE_Char_ID cid, CHISE_Value *valdatum);
82 chise_ft_iterate (CHISE_Feature_Table *dbp,
83 int (*func) (CHISE_Feature_Table *db,
84 CHISE_Char_ID cid, CHISE_Value *valdatum));
87 CHISE_Char_ID chise_decode_char (CHISE_DS *ds, char *ccs, int code_point);
89 int chise_get_feature (CHISE_DS *ds, CHISE_Char_ID cid,
90 char *key, CHISE_Value *valdatum);
93 int chise_open_attribute_table (CHISE_Attribute_Table *db,
95 const char *encoding, const char *feature,
97 u_int32_t accessmask, int modemask);
99 int chise_close_attribute_table (CHISE_Attribute_Table *db);
101 int chise_get_attribute_table (CHISE_Attribute_Table *db,
102 char *key, CHISE_Value *valdatum);
104 #endif /* !_CHISE_H */