From b71ff6b6d40ece7e383145cc8cd9856528a9d79a Mon Sep 17 00:00:00 2001 From: tomo Date: Fri, 3 Oct 2003 11:47:24 +0000 Subject: [PATCH] (main): Use `chise_ds_decode_char' instead of `chise_ds_get_ccs' and `chise_ccs_decode'. --- sample.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 1.7.10.4