From: tomo Date: Fri, 3 Oct 2003 11:44:12 +0000 (+0000) Subject: (chise_ds_decode_char): New inline function. X-Git-Tag: b1-r0_2_0-pre7~11 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=73fddcc4c708cfc71e31e2585c990356c6c53242;p=chise%2Flibchise.git (chise_ds_decode_char): New inline function. --- diff --git a/chise.h b/chise.h index 76713f8..ca16d1c 100644 --- a/chise.h +++ b/chise.h @@ -79,7 +79,7 @@ typedef CHISE_CCS_Table* CHISE_CCS; CHISE_CCS chise_ds_get_ccs (CHISE_DS *ds, const unsigned char *ccs); -CHISE_Char_ID +static inline CHISE_Char_ID chise_ds_decode_char (CHISE_DS *ds, const unsigned char *ccs, int code_point); @@ -90,4 +90,12 @@ int chise_ccs_set_decoded_char (CHISE_CCS ccs, int chise_ccs_sync (CHISE_CCS ccs); +static inline CHISE_Char_ID +chise_ds_decode_char (CHISE_DS *ds, + const unsigned char *ccs, int code_point) +{ + return + chise_ccs_decode (chise_ds_get_ccs (ds, ccs), code_point); +} + #endif /* !_CHISE_H */