From: tomo Date: Fri, 3 Oct 2003 11:47:24 +0000 (+0000) Subject: (main): Use `chise_ds_decode_char' instead of `chise_ds_get_ccs' and X-Git-Tag: b1-r0_2_0-pre7~9 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b71ff6b6d40ece7e383145cc8cd9856528a9d79a;p=chise%2Flibchise.git (main): Use `chise_ds_decode_char' instead of `chise_ds_get_ccs' and `chise_ccs_decode'. --- diff --git a/sample.c b/sample.c index c5f6abc..3b27e8e 100644 --- a/sample.c +++ b/sample.c @@ -50,6 +50,9 @@ main (int argc, char* argv[]) * get a character corresponding with Daikanwa number 364 */ +#if 1 + char_id = chise_ds_decode_char (ds, "=daikanwa", 364); +#else /* setup a decoding-table */ ccs_daikanwa = chise_ds_get_ccs (ds, "=daikanwa"); @@ -62,7 +65,7 @@ main (int argc, char* argv[]) /* get a character from the decoding-table */ char_id = chise_ccs_decode (ccs_daikanwa, 364); - +#endif /* get a feature-value of the character */ ft_ideographic_structure