(chise_char_load_decomposition): New prototype.
authortomo <tomo>
Sun, 30 Oct 2011 20:38:12 +0000 (20:38 +0000)
committertomo <tomo>
Sun, 30 Oct 2011 20:38:12 +0000 (20:38 +0000)
(chise_ds_load_char_decomposition): New inline function.

chise.h

diff --git a/chise.h b/chise.h
index 9fc7e1b..0528779 100644 (file)
--- 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,