From: Behdad Esfahbod Date: Sun, 20 Dec 2009 14:29:16 +0000 (+0100) Subject: Add hb_unicode_get_*() functions X-Git-Tag: submit/2.0alpha-wayland/20121130.004132~9^2~888 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ceefa1d8dbd310570ea8d1c47107fe8d3dc96d9;p=profile%2Fivi%2Forg.tizen.video-player.git Add hb_unicode_get_*() functions --- diff --git a/src/hb-unicode.c b/src/hb-unicode.c index d8ea0ea..a897f23 100644 --- a/src/hb-unicode.c +++ b/src/hb-unicode.c @@ -160,6 +160,43 @@ hb_unicode_funcs_set_eastasian_width_func (hb_unicode_funcs_t *ufuncs, } +hb_codepoint_t +hb_unicode_get_mirroring (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode) +{ + return ufuncs->get_mirroring (unicode); +} + +hb_category_t +hb_unicode_get_general_category (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode) +{ + return ufuncs->get_general_category (unicode); +} + +hb_script_t +hb_unicode_get_script (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode) +{ + return ufuncs->get_script (unicode); +} + +unsigned int +hb_unicode_get_combining_class (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode) +{ + return ufuncs->get_combining_class (unicode); +} + +unsigned int +hb_unicode_get_eastasian_width (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode) +{ + return ufuncs->get_eastasian_width (unicode); +} + + + #define LTR HB_DIRECTION_LTR #define RTL HB_DIRECTION_RTL const hb_direction_t horiz_dir[] = diff --git a/src/hb-unicode.h b/src/hb-unicode.h index b7c3a75..6b63352 100644 --- a/src/hb-unicode.h +++ b/src/hb-unicode.h @@ -214,6 +214,27 @@ hb_unicode_funcs_set_eastasian_width_func (hb_unicode_funcs_t *ufuncs, hb_unicode_get_eastasian_width_func_t eastasian_width_func); +hb_codepoint_t +hb_unicode_get_mirroring (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode); + +hb_category_t +hb_unicode_get_general_category (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode); + +hb_script_t +hb_unicode_get_script (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode); + +unsigned int +hb_unicode_get_combining_class (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode); + +unsigned int +hb_unicode_get_eastasian_width (hb_unicode_funcs_t *ufuncs, + hb_codepoint_t unicode); + + HB_END_DECLS #endif /* HB_UNICODE_H */