From b063c1b3030dbf4136f54fa5e4ead0f72925f063 Mon Sep 17 00:00:00 2001 From: tomo Date: Sun, 30 Oct 2011 20:38:12 +0000 Subject: [PATCH] (chise_char_load_decomposition): New prototype. (chise_ds_load_char_decomposition): New inline function. --- chise.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/chise.h b/chise.h index 9fc7e1b..0528779 100644 --- a/chise.h +++ b/chise.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2003,2004,2005 MORIOKA Tomohiko +/* Copyright (C) 2003,2004,2005,2011 MORIOKA Tomohiko This file is part of the CHISE Library. The CHISE Library is free software; you can redistribute it and/or @@ -100,6 +100,22 @@ chise_char_gets_feature_value (CHISE_Char_ID cid, unsigned char* dst, size_t size); int +chise_char_load_decomposition (CHISE_Char_ID cid, + CHISE_Feature feature, + CHISE_Char_ID* base_char, CHISE_Char_ID* comb_char); + +static inline int +chise_ds_load_char_decomposition (CHISE_DS* ds, + CHISE_Char_ID cid, + const unsigned char* name, + CHISE_Char_ID* base_char, CHISE_Char_ID* comb_char) +{ + return + chise_char_load_decomposition (cid, chise_ds_get_feature (ds, name), + base_char, comb_char); +} + +int chise_feature_foreach_char_with_value (CHISE_Feature feature, int (*func) (CHISE_Char_ID cid, CHISE_Feature feature, -- 1.7.10.4