From: tomo Date: Sun, 5 Oct 2003 04:48:36 +0000 (+0000) Subject: (chise_feature_sync): New prototype. X-Git-Tag: b1-r0_2_0-pre7~6 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=50120823da0703d0c147c788772408ba7d50be84;p=chise%2Flibchise.git (chise_feature_sync): New prototype. (chise_char_set_feature_value): New prototype. (chise_ds_load_char_feature_value): New inline function. --- diff --git a/chise.h b/chise.h index ca16d1c..ce2ea62 100644 --- a/chise.h +++ b/chise.h @@ -47,12 +47,35 @@ typedef struct CHISE_Feature_Table CHISE_Feature_Table; typedef CHISE_Feature_Table* CHISE_Feature; CHISE_Feature -chise_ds_get_feature (CHISE_DS *ds, const unsigned char *feature); +chise_ds_get_feature (CHISE_DS *ds, const unsigned char *name); + +static inline int +chise_ds_load_char_feature_value (CHISE_DS *ds, + CHISE_Char_ID cid, + const unsigned char *name, + CHISE_Value *valdatum); + +int chise_feature_sync (CHISE_Feature feature); + +int chise_char_set_feature_value (CHISE_Char_ID cid, + CHISE_Feature feature, + unsigned char *value); int chise_char_load_feature_value (CHISE_Char_ID cid, CHISE_Feature feature, CHISE_Value *valdatum); +static inline int +chise_ds_load_char_feature_value (CHISE_DS *ds, + CHISE_Char_ID cid, + const unsigned char *name, + CHISE_Value *valdatum) +{ + return + chise_char_load_feature_value (cid, chise_ds_get_feature (ds, name), + valdatum); +} + unsigned char* chise_char_gets_feature_value (CHISE_Char_ID cid, CHISE_Feature feature, @@ -77,25 +100,25 @@ typedef struct CHISE_CCS_Table CHISE_CCS_Table; typedef CHISE_CCS_Table* CHISE_CCS; CHISE_CCS -chise_ds_get_ccs (CHISE_DS *ds, const unsigned char *ccs); +chise_ds_get_ccs (CHISE_DS *ds, const unsigned char *name); static inline CHISE_Char_ID chise_ds_decode_char (CHISE_DS *ds, const unsigned char *ccs, int code_point); -CHISE_Char_ID chise_ccs_decode (CHISE_CCS ccs, int code_point); - int chise_ccs_set_decoded_char (CHISE_CCS ccs, int code_point, CHISE_Char_ID cid); int chise_ccs_sync (CHISE_CCS ccs); +CHISE_Char_ID chise_ccs_decode (CHISE_CCS ccs, int code_point); + static inline CHISE_Char_ID chise_ds_decode_char (CHISE_DS *ds, - const unsigned char *ccs, int code_point) + const unsigned char *name, int code_point) { return - chise_ccs_decode (chise_ds_get_ccs (ds, ccs), code_point); + chise_ccs_decode (chise_ds_get_ccs (ds, name), code_point); } #endif /* !_CHISE_H */