7 typedef enum CHISE_DS_Type
13 typedef struct CHISE_DS CHISE_DS;
16 CHISE_DS_open (CHISE_DS_Type type, char *location,
17 DBTYPE subtype, int modemask);
19 int CHISE_DS_close (CHISE_DS *ds);
22 typedef int CHISE_Char_ID;
25 typedef DBT CHISE_Value;
28 chise_value_size (const CHISE_Value *s)
34 chise_value_data (const CHISE_Value *s)
40 chise_value_to_c_string (const CHISE_Value *s)
46 typedef struct CHISE_Feature_Table CHISE_Feature_Table;
47 typedef CHISE_Feature_Table* CHISE_Feature;
50 chise_ds_get_feature (CHISE_DS *ds, const unsigned char *name);
53 chise_ds_load_char_feature_value (CHISE_DS *ds,
55 const unsigned char *name,
56 CHISE_Value *valdatum);
58 int chise_feature_sync (CHISE_Feature feature);
60 int chise_char_set_feature_value (CHISE_Char_ID cid,
61 CHISE_Feature feature,
62 unsigned char *value);
64 int chise_char_load_feature_value (CHISE_Char_ID cid,
65 CHISE_Feature feature,
66 CHISE_Value *valdatum);
69 chise_ds_load_char_feature_value (CHISE_DS *ds,
71 const unsigned char *name,
72 CHISE_Value *valdatum)
75 chise_char_load_feature_value (cid, chise_ds_get_feature (ds, name),
80 chise_char_gets_feature_value (CHISE_Char_ID cid,
81 CHISE_Feature feature,
82 unsigned char *dst, size_t size);
85 chise_char_feature_value_iterate (CHISE_Feature feature,
86 int (*func) (CHISE_Char_ID cid,
87 CHISE_Feature feature,
88 CHISE_Value *valdatum));
92 chise_char_feature_str_iterate (CHISE_Feature feature,
93 int (*func) (CHISE_Char_ID cid,
94 CHISE_Feature feature,
99 typedef struct CHISE_CCS_Table CHISE_CCS_Table;
100 typedef CHISE_CCS_Table* CHISE_CCS;
103 chise_ds_get_ccs (CHISE_DS *ds, const unsigned char *name);
105 static inline CHISE_Char_ID
106 chise_ds_decode_char (CHISE_DS *ds,
107 const unsigned char *ccs, int code_point);
109 int chise_ccs_set_decoded_char (CHISE_CCS ccs,
110 int code_point, CHISE_Char_ID cid);
112 int chise_ccs_sync (CHISE_CCS ccs);
114 CHISE_Char_ID chise_ccs_decode (CHISE_CCS ccs, int code_point);
116 static inline CHISE_Char_ID
117 chise_ds_decode_char (CHISE_DS *ds,
118 const unsigned char *name, int code_point)
121 chise_ccs_decode (chise_ds_get_ccs (ds, name), code_point);
124 #endif /* !_CHISE_H */