From: tomo Date: Fri, 24 Jun 2005 13:45:48 +0000 (+0000) Subject: (chise_char_set_feature_value): Use X-Git-Tag: chise-base-0_23~5 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6341af9e9b44d468736016e799bfa6ff7f5a35a;p=chise%2Flibchise.git (chise_char_set_feature_value): Use `concord_obj_put_feature_value_str' instead of `concord_stroid_set_feature_str'. (chise_char_load_feature_value): Use `concord_obj_get_feature_value_string' instead of `concord_stroid_get_feature_string'. (chise_char_gets_feature_value): Use `concord_obj_gets_feature_value' instead of `concord_stroid_gets_feature'. (chise_feature_foreach_char_with_value): Use `concord_feature_foreach_obj_string' instead of `concord_feature_foreach_object_string'. (chise_ccs_decode): Use `concord_index_strid_get_obj_string' instead of `concord_index_strid_get_object_string'. (chise_ccs_set_decoded_char): Use `concord_index_strid_put_obj' instead of `concord_index_strid_set_object_str'. (chise_feature_set_property_value): Use `concord_obj_put_feature_value_str' instead of `concord_stroid_set_feature_str'. (chise_feature_load_property_value): Use `concord_obj_get_feature_value_string' instead of `concord_stroid_get_feature_string'. (chise_feature_gets_property_value): Use `concord_obj_gets_feature_value' instead of `concord_stroid_gets_feature'. --- diff --git a/chise.c b/chise.c index bddad05..476a005 100644 --- a/chise.c +++ b/chise.c @@ -138,7 +138,7 @@ chise_char_set_feature_value (CHISE_Char_ID cid, unsigned char key_buf[8]; chise_format_char_id (cid, key_buf, 8); - return concord_stroid_set_feature_str (key_buf, feature, value); + return concord_obj_put_feature_value_str (key_buf, feature, value); } int @@ -149,7 +149,7 @@ chise_char_load_feature_value (CHISE_Char_ID cid, unsigned char key_buf[8]; chise_format_char_id (cid, key_buf, 8); - return concord_stroid_get_feature_string (key_buf, feature, valdatum); + return concord_obj_get_feature_value_string (key_buf, feature, valdatum); } unsigned char* @@ -160,7 +160,7 @@ chise_char_gets_feature_value (CHISE_Char_ID cid, unsigned char key_buf[8]; chise_format_char_id (cid, key_buf, 8); - return concord_stroid_gets_feature (key_buf, feature, dst, size); + return concord_obj_gets_feature_value (key_buf, feature, dst, size); } static int @@ -192,7 +192,7 @@ chise_feature_foreach_char_with_value (CHISE_Feature feature, { chise_feature_for_a_char_with_value_func = func; return - concord_feature_foreach_object_string + concord_feature_foreach_obj_string (feature, &chise_feature_foreach_char_with_value_wrapper); } @@ -217,7 +217,7 @@ chise_ccs_decode (CHISE_CCS ccs, int code_point) int status; sprintf(key_buf, "%d", code_point); - status = concord_index_strid_get_object_string (ccs, key_buf, &value); + status = concord_index_strid_get_obj_string (ccs, key_buf, &value); if (!status) { unsigned char *str @@ -237,7 +237,7 @@ chise_ccs_set_decoded_char (CHISE_CCS ccs, sprintf(key_buf, "%d", code_point); chise_format_char_id (cid, val_buf, 8); - return concord_index_strid_set_object_str (ccs, key_buf, val_buf); + return concord_index_strid_put_obj (ccs, key_buf, val_buf); } @@ -259,8 +259,8 @@ chise_feature_set_property_value (CHISE_Feature feature, unsigned char* value) { return - concord_stroid_set_feature_str (concord_feature_get_name (feature), - property, value); + concord_obj_put_feature_value_str + (concord_feature_get_name (feature), property, value); } int @@ -269,8 +269,8 @@ chise_feature_load_property_value (CHISE_Feature feature, CHISE_Value* valdatum) { return - concord_stroid_get_feature_string (concord_feature_get_name (feature), - property, valdatum); + concord_obj_get_feature_value_string + (concord_feature_get_name (feature), property, valdatum); } unsigned char* @@ -279,8 +279,8 @@ chise_feature_gets_property_value (CHISE_Feature feature, unsigned char* buf, size_t size) { return - concord_stroid_gets_feature (concord_feature_get_name (feature), - property, buf, size); + concord_obj_gets_feature_value (concord_feature_get_name (feature), + property, buf, size); }