make cleanup and some bash-ism removal
[charfbuzz.git] / hb-unicode-private.h
blob86293900edd4d5fab1013bd0c32eeaad2abef41e
1 #ifndef HB_UNICODE_PRIVATE_H
2 #define HB_UNICODE_PRIVATE_H
3 extern HB_INTERNAL hb_unicode_funcs_t _hb_unicode_funcs_nil;
5 struct hb_unicode_funcs_t {
6 atomic_int32_t ref_cnt;
7 hb_unicode_funcs_t *parent;
8 hb_bool_t immutable;
10 struct {
11 hb_unicode_combining_class_func_t combining_class;
12 hb_unicode_eastasian_width_func_t eastasian_width;
13 hb_unicode_general_category_func_t general_category;
14 hb_unicode_mirroring_func_t mirroring;
15 hb_unicode_script_func_t script;
16 hb_unicode_compose_func_t compose;
17 hb_unicode_decompose_func_t decompose;
18 hb_unicode_decompose_compatibility_func_t decompose_compatibility;
19 } func;
21 struct {
22 void *combining_class;
23 void *eastasian_width;
24 void *general_category;
25 void *mirroring;
26 void *script;
27 void *compose;
28 void *decompose;
29 void *decompose_compatibility;
30 } user_data;
32 struct {
33 hb_destroy_func_t combining_class;
34 hb_destroy_func_t eastasian_width;
35 hb_destroy_func_t general_category;
36 hb_destroy_func_t mirroring;
37 hb_destroy_func_t script;
38 hb_destroy_func_t compose;
39 hb_destroy_func_t decompose;
40 hb_destroy_func_t decompose_compatibility;
41 } destroy;
43 hb_bool_t
44 hb_unicode_is_default_ignorable(hb_codepoint_t ch);
45 #endif