/aosp_15_r20/external/harfbuzz_ng/src/ |
H A D | hb-utf.hh | 43 hb_codepoint_t *unicode, in next() 44 hb_codepoint_t replacement) in next() 50 hb_codepoint_t c = *text++; in next() 54 if (hb_in_range<hb_codepoint_t> (c, 0xC2u, 0xDFu)) /* Two-byte */ in next() 66 else if (hb_in_range<hb_codepoint_t> (c, 0xE0u, 0xEFu)) /* Three-byte */ in next() 74 if (unlikely (c < 0x0800u || hb_in_range<hb_codepoint_t> (c, 0xD800u, 0xDFFFu))) in next() 81 else if (hb_in_range<hb_codepoint_t> (c, 0xF0u, 0xF4u)) /* Four-byte */ in next() 90 if (unlikely (!hb_in_range<hb_codepoint_t> (c, 0x10000u, 0x10FFFFu))) in next() 112 hb_codepoint_t *unicode, in prev() 113 hb_codepoint_t replacement) in prev() [all …]
|
H A D | hb-font.h | 179 hb_codepoint_t unicode, 180 hb_codepoint_t *glyph, 202 hb_codepoint_t unicode, hb_codepoint_t variation_selector, 203 hb_codepoint_t *glyph, 229 const hb_codepoint_t *first_unicode, 231 hb_codepoint_t *first_glyph, 251 hb_codepoint_t glyph, 296 const hb_codepoint_t *first_glyph, 343 hb_codepoint_t glyph, 384 hb_codepoint_t first_glyph, hb_codepoint_t second_glyph, [all …]
|
H A D | hb-bimap.hh | 50 void set (hb_codepoint_t lhs, hb_codepoint_t rhs) in set() 63 hb_codepoint_t get (hb_codepoint_t lhs) const { return forw_map.get (lhs); } in get() 64 hb_codepoint_t backward (hb_codepoint_t rhs) const { return back_map.get (rhs); } in backward() 66 hb_codepoint_t operator [] (hb_codepoint_t lhs) const { return get (lhs); } in operator []() 67 bool has (hb_codepoint_t lhs) const { return forw_map.has (lhs); } in has() 70 void del (hb_codepoint_t lhs) in del() 124 hb_codepoint_t add (hb_codepoint_t lhs) in add() 126 hb_codepoint_t rhs = forw_map[lhs]; in add() 136 hb_codepoint_t skip () in skip() 138 hb_codepoint_t start = back_map.length; in skip() [all …]
|
H A D | hb-ot-cmap-table.hh | 44 static inline uint8_t unicode_to_macroman (hb_codepoint_t u) in unicode_to_macroman() 189 bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph() 191 hb_codepoint_t gid = codepoint < 256 ? glyphIdArray[codepoint] : 0; in get_glyph() 216 hb_codepoint_t glyph = glyphIdArray[i]; in collect_mapping() 247 hb_codepoint_t start_cp = 0, prev_run_start_cp = 0, run_start_cp = 0, end_cp = 0, last_gid = 0; in to_ranges() 275 hb_codepoint_t next_cp = pair.first; in to_ranges() 276 hb_codepoint_t next_gid = pair.second; in to_ranges() 338 void commit_current_range (hb_codepoint_t start, in commit_current_range() 339 hb_codepoint_t prev_run_start, in commit_current_range() 340 hb_codepoint_t run_start, in commit_current_range() [all …]
|
H A D | hb-unicode.hh | 59 HB_UNICODE_FUNC_IMPLEMENT (hb_codepoint_t, mirroring) \ 70 return_type name (hb_codepoint_t unicode) { return func.name (this, unicode, user_data.name); } 74 hb_bool_t compose (hb_codepoint_t a, hb_codepoint_t b, in compose() 75 hb_codepoint_t *ab) in compose() 82 hb_bool_t decompose (hb_codepoint_t ab, in decompose() 83 hb_codepoint_t *a, hb_codepoint_t *b) in decompose() 89 unsigned int decompose_compatibility (hb_codepoint_t u, in decompose_compatibility() 90 hb_codepoint_t *decomposed) in decompose_compatibility() 106 modified_combining_class (hb_codepoint_t u) in modified_combining_class() 119 is_variation_selector (hb_codepoint_t unicode) in is_variation_selector() [all …]
|
H A D | hb-set.hh | 52 hb_sparseset_t (std::initializer_list<hb_codepoint_t> lst) : hb_sparseset_t () in hb_sparseset_t() 88 void add (hb_codepoint_t g) { s.add (g); } in add() 89 bool add_range (hb_codepoint_t first, hb_codepoint_t last) { return s.add_range (first, last); } in add_range() 105 void del (hb_codepoint_t g) { s.del (g); } in del() 106 void del_range (hb_codepoint_t a, hb_codepoint_t b) { s.del_range (a, b); } in del_range() 108 bool get (hb_codepoint_t g) const { return s.get (g); } in get() 111 bool operator [] (hb_codepoint_t k) const { return get (k); } in operator []() 112 bool has (hb_codepoint_t k) const { return (*this)[k]; } in has() 115 bool operator () (hb_codepoint_t k) const { return has (k); } in operator ()() 118 hb_sparseset_t& operator << (hb_codepoint_t v) in operator <<() [all …]
|
H A D | hb-font.cc | 127 hb_codepoint_t unicode HB_UNUSED, in hb_font_get_nominal_glyph_nil() 128 hb_codepoint_t *glyph, in hb_font_get_nominal_glyph_nil() 138 hb_codepoint_t unicode, in hb_font_get_nominal_glyph_default() 139 hb_codepoint_t *glyph, in hb_font_get_nominal_glyph_default() 155 const hb_codepoint_t *first_unicode, in hb_font_get_nominal_glyphs_default() 157 hb_codepoint_t *first_glyph, in hb_font_get_nominal_glyphs_default() 168 first_unicode = &StructAtOffsetUnaligned<hb_codepoint_t> (first_unicode, unicode_stride); in hb_font_get_nominal_glyphs_default() 169 first_glyph = &StructAtOffsetUnaligned<hb_codepoint_t> (first_glyph, glyph_stride); in hb_font_get_nominal_glyphs_default() 182 hb_codepoint_t unicode HB_UNUSED, in hb_font_get_variation_glyph_nil() 183 hb_codepoint_t variation_selector HB_UNUSED, in hb_font_get_variation_glyph_nil() [all …]
|
H A D | hb-bit-set-invertible.hh | 84 hb_codepoint_t v = INVALID; in is_empty() 90 hb_codepoint_t get_min () const in get_min() 92 hb_codepoint_t v = INVALID; in get_min() 96 hb_codepoint_t get_max () const in get_max() 98 hb_codepoint_t v = INVALID; in get_max() 106 void add (hb_codepoint_t g) { unlikely (inverted) ? s.del (g) : s.add (g); } in add() 107 bool add_range (hb_codepoint_t a, hb_codepoint_t b) in add_range() 124 void del (hb_codepoint_t g) { unlikely (inverted) ? s.add (g) : s.del (g); } in del() 125 void del_range (hb_codepoint_t a, hb_codepoint_t b) in del_range() 128 bool get (hb_codepoint_t g) const { return s.get (g) ^ inverted; } in get() [all …]
|
H A D | hb-ot-cff1-table.hh | 67 hb_codepoint_t get_code (hb_codepoint_t glyph) const in get_code() 73 return (hb_codepoint_t)codes[glyph]; in get_code() 107 hb_codepoint_t get_code (hb_codepoint_t glyph) const in get_code() 116 hb_codepoint_t code = (hb_codepoint_t) ranges[i].first + glyph; in get_code() 152 void get_codes (hb_codepoint_t sid, hb_vector_t<hb_codepoint_t> &codes) const in get_codes() 196 hb_codepoint_t code = code_ranges[i].code; in serialize() 250 hb_codepoint_t get_code (hb_codepoint_t glyph) const in get_code() 263 void get_supplement_codes (hb_codepoint_t sid, hb_vector_t<hb_codepoint_t> &codes) const in get_supplement_codes() 318 hb_codepoint_t get_sid (hb_codepoint_t glyph, unsigned num_glyphs) const in get_sid() 330 for (hb_codepoint_t gid = 1; gid < num_glyphs; gid++) in collect_glyph_to_sid_map() [all …]
|
H A D | hb-ot-cff1-table.cc | 216 hb_codepoint_t OT::cff1::lookup_standard_encoding_for_code (hb_codepoint_t sid) in lookup_standard_encoding_for_code() 219 return (hb_codepoint_t)standard_encoding_to_code[sid]; in lookup_standard_encoding_for_code() 224 hb_codepoint_t OT::cff1::lookup_expert_encoding_for_code (hb_codepoint_t sid) in lookup_expert_encoding_for_code() 227 return (hb_codepoint_t)expert_encoding_to_code[sid]; in lookup_expert_encoding_for_code() 232 hb_codepoint_t OT::cff1::lookup_expert_charset_for_sid (hb_codepoint_t glyph) in lookup_expert_charset_for_sid() 235 return (hb_codepoint_t)expert_charset_to_sid[glyph]; in lookup_expert_charset_for_sid() 240 hb_codepoint_t OT::cff1::lookup_expert_subset_charset_for_sid (hb_codepoint_t glyph) in lookup_expert_subset_charset_for_sid() 243 return (hb_codepoint_t)expert_subset_charset_to_sid[glyph]; in lookup_expert_subset_charset_for_sid() 248 hb_codepoint_t OT::cff1::lookup_expert_charset_for_glyph (hb_codepoint_t sid) in lookup_expert_charset_for_glyph() 254 hb_codepoint_t OT::cff1::lookup_expert_subset_charset_for_glyph (hb_codepoint_t sid) in lookup_expert_subset_charset_for_glyph() [all …]
|
H A D | hb-font.hh | 269 bool has_glyph (hb_codepoint_t unicode) in has_glyph() 271 hb_codepoint_t glyph; in has_glyph() 275 hb_bool_t get_nominal_glyph (hb_codepoint_t unicode, in get_nominal_glyph() 276 hb_codepoint_t *glyph, in get_nominal_glyph() 277 hb_codepoint_t not_found = 0) in get_nominal_glyph() 285 const hb_codepoint_t *first_unicode, in get_nominal_glyphs() 287 hb_codepoint_t *first_glyph, in get_nominal_glyphs() 297 hb_bool_t get_variation_glyph (hb_codepoint_t unicode, hb_codepoint_t variation_selector, in get_variation_glyph() 298 hb_codepoint_t *glyph, in get_variation_glyph() 299 hb_codepoint_t not_found = 0) in get_variation_glyph() [all …]
|
H A D | hb-ot-shape-normalize.hh | 58 hb_codepoint_t ab, in decompose_unicode() 59 hb_codepoint_t *a, in decompose_unicode() 60 hb_codepoint_t *b) in decompose_unicode() 67 hb_codepoint_t a, in compose_unicode() 68 hb_codepoint_t b, in compose_unicode() 69 hb_codepoint_t *ab) in compose_unicode() 76 hb_codepoint_t ab, in override_decompose_and_compose() 77 hb_codepoint_t *a, in override_decompose_and_compose() 78 hb_codepoint_t *b), in override_decompose_and_compose() 80 hb_codepoint_t a, in override_decompose_and_compose() [all …]
|
H A D | hb-unicode.h | 355 hb_codepoint_t unicode, 373 hb_codepoint_t unicode, 394 typedef hb_codepoint_t (*hb_unicode_mirroring_func_t) (hb_unicode_funcs_t *ufuncs, 395 hb_codepoint_t unicode, 413 hb_codepoint_t unicode, 436 hb_codepoint_t a, 437 hb_codepoint_t b, 438 hb_codepoint_t *ab, 460 hb_codepoint_t ab, 461 hb_codepoint_t *a, [all …]
|
H A D | hb-unicode.cc | 62 hb_codepoint_t unicode HB_UNUSED, in hb_unicode_combining_class_nil() 71 hb_codepoint_t unicode HB_UNUSED, in hb_unicode_eastasian_width_nil() 80 hb_codepoint_t unicode HB_UNUSED, in hb_unicode_general_category_nil() 86 static hb_codepoint_t 88 hb_codepoint_t unicode, in hb_unicode_mirroring_nil() 96 hb_codepoint_t unicode HB_UNUSED, in hb_unicode_script_nil() 104 hb_codepoint_t a HB_UNUSED, in hb_unicode_compose_nil() 105 hb_codepoint_t b HB_UNUSED, in hb_unicode_compose_nil() 106 hb_codepoint_t *ab HB_UNUSED, in hb_unicode_compose_nil() 114 hb_codepoint_t ab HB_UNUSED, in hb_unicode_decompose_nil() [all …]
|
H A D | hb-set.h | 105 hb_codepoint_t codepoint); 109 hb_codepoint_t codepoint); 113 hb_codepoint_t first, 114 hb_codepoint_t last); 118 const hb_codepoint_t *sorted_codepoints, 123 hb_codepoint_t codepoint); 127 hb_codepoint_t first, 128 hb_codepoint_t last); 165 HB_EXTERN hb_codepoint_t 169 HB_EXTERN hb_codepoint_t [all …]
|
H A D | hb-set.cc | 236 hb_codepoint_t codepoint) in hb_set_has() 252 hb_codepoint_t codepoint) in hb_set_add() 272 const hb_codepoint_t *sorted_codepoints, in hb_set_add_sorted_array() 278 sizeof(hb_codepoint_t)); in hb_set_add_sorted_array() 294 hb_codepoint_t first, in hb_set_add_range() 295 hb_codepoint_t last) in hb_set_add_range() 312 hb_codepoint_t codepoint) in hb_set_del() 334 hb_codepoint_t first, in hb_set_del_range() 335 hb_codepoint_t last) in hb_set_del_range() 538 hb_codepoint_t [all …]
|
H A D | hb-bit-page.hh | 114 void add (hb_codepoint_t g) { elt (g) |= mask (g); dirty (); } in add() 115 void del (hb_codepoint_t g) { elt (g) &= ~mask (g); dirty (); } in del() 116 void set (hb_codepoint_t g, bool value) { if (value) add (g); else del (g); } in set() 117 bool get (hb_codepoint_t g) const { return elt (g) & mask (g); } in get() 119 void add_range (hb_codepoint_t a, hb_codepoint_t b) in add_range() 136 void del_range (hb_codepoint_t a, hb_codepoint_t b) in del_range() 153 void set_range (hb_codepoint_t a, hb_codepoint_t b, bool v) in set_range() 161 hb_codepoint_t *p, in write() 191 hb_codepoint_t *p, in write_inverted() 193 hb_codepoint_t *next_value) const in write_inverted() [all …]
|
H A D | hb-bit-set.hh | 148 void add (hb_codepoint_t g) in add() 156 bool add_range (hb_codepoint_t a, hb_codepoint_t b) in add_range() 201 hb_codepoint_t g = *array; in set_array() 240 hb_codepoint_t g = *array; in set_sorted_array() 241 hb_codepoint_t last_g = g; in set_sorted_array() 277 void del (hb_codepoint_t g) in del() 311 void del_range (hb_codepoint_t a, hb_codepoint_t b) in del_range() 341 bool get (hb_codepoint_t g) const in get() 350 bool operator [] (hb_codepoint_t k) const { return get (k); } in operator []() 351 bool has (hb_codepoint_t k) const { return (*this)[k]; } in has() [all …]
|
H A D | hb-ucd.cc | 25 hb_codepoint_t unicode, in hb_ucd_combining_class() 33 hb_codepoint_t unicode, in hb_ucd_general_category() 39 static hb_codepoint_t 41 hb_codepoint_t unicode, in hb_ucd_mirroring() 49 hb_codepoint_t unicode, in hb_ucd_script() 67 _hb_ucd_decompose_hangul (hb_codepoint_t ab, hb_codepoint_t *a, hb_codepoint_t *b) in _hb_ucd_decompose_hangul() 89 _hb_ucd_compose_hangul (hb_codepoint_t a, hb_codepoint_t b, hb_codepoint_t *ab) in _hb_ucd_compose_hangul() 129 hb_codepoint_t a, hb_codepoint_t b, hb_codepoint_t *ab, in hb_ucd_compose() 135 hb_codepoint_t u = 0; in hb_ucd_compose() 172 hb_codepoint_t ab, hb_codepoint_t *a, hb_codepoint_t *b, in hb_ucd_decompose()
|
H A D | hb-multimap.hh | 39 void add (hb_codepoint_t k, hb_codepoint_t v) in add() 41 hb_vector_t<hb_codepoint_t> *m; in add() 48 hb_codepoint_t *old_v; in add() 51 hb_codepoint_t old = *old_v; in add() 54 multiples.set (k, hb_vector_t<hb_codepoint_t> {old, v}); in add() 61 hb_array_t<const hb_codepoint_t> get (hb_codepoint_t k) const in get() 63 const hb_codepoint_t *v; in get() 67 hb_vector_t<hb_codepoint_t> *m; in get() 71 return hb_array_t<const hb_codepoint_t> (); in get() 91 hb_hashmap_t<hb_codepoint_t, hb_vector_t<hb_codepoint_t>> multiples;
|
H A D | hb-deprecated.h | 101 hb_codepoint_t unicode, hb_codepoint_t variation_selector, 102 hb_codepoint_t *glyph, 132 hb_codepoint_t unicode, 164 hb_codepoint_t unicode); 188 hb_codepoint_t u, 189 hb_codepoint_t *decomposed, 222 hb_codepoint_t u, 223 hb_codepoint_t *decomposed); 256 hb_codepoint_t top_glyph, hb_codepoint_t bottom_glyph); 274 hb_codepoint_t glyph, [all …]
|
H A D | hb-ot-shaper-hangul.cc | 110 #define isCombiningL(u) (hb_in_range<hb_codepoint_t> ((u), LBase, LBase+LCount-1)) 111 #define isCombiningV(u) (hb_in_range<hb_codepoint_t> ((u), VBase, VBase+VCount-1)) 112 #define isCombiningT(u) (hb_in_range<hb_codepoint_t> ((u), TBase+1, TBase+TCount-1)) 113 #define isCombinedS(u) (hb_in_range<hb_codepoint_t> ((u), SBase, SBase+SCount-1)) 115 #define isL(u) (hb_in_ranges<hb_codepoint_t> ((u), 0x1100u, 0x115Fu, 0xA960u, 0xA97Cu)) 116 #define isV(u) (hb_in_ranges<hb_codepoint_t> ((u), 0x1160u, 0x11A7u, 0xD7B0u, 0xD7C6u)) 117 #define isT(u) (hb_in_ranges<hb_codepoint_t> ((u), 0x11A8u, 0x11FFu, 0xD7CBu, 0xD7FBu)) 119 #define isHangulTone(u) (hb_in_range<hb_codepoint_t> ((u), 0x302Eu, 0x302Fu)) 126 hb_codepoint_t unicode) in is_zero_width_char() 128 hb_codepoint_t glyph; in is_zero_width_char() [all …]
|
H A D | hb-set-digest.hh | 80 static_assert ((shift < sizeof (hb_codepoint_t) * 8), ""); 81 static_assert ((shift + num_bits <= sizeof (hb_codepoint_t) * 8), ""); 89 void add (hb_codepoint_t g) { mask |= mask_for (g); } in add() 91 bool add_range (hb_codepoint_t a, hb_codepoint_t b) in add_range() 131 bool may_have (hb_codepoint_t g) const in may_have() 134 bool operator [] (hb_codepoint_t g) const in operator []() 139 static mask_t mask_for (hb_codepoint_t g) in mask_for() 161 void add (hb_codepoint_t g) in add() 167 bool add_range (hb_codepoint_t a, hb_codepoint_t b) in add_range() 193 bool may_have (hb_codepoint_t g) const in may_have() [all …]
|
/aosp_15_r20/external/harfbuzz_ng/src/OT/Layout/GSUB/ |
H A D | SingleSubstFormat1.hh | 39 hb_codepoint_t get_mask () const in get_mask() 50 hb_codepoint_t d = deltaGlyphID; in closure() 51 hb_codepoint_t mask = get_mask (); in closure() 64 hb_codepoint_t min_before = intersection.get_min (); in closure() 65 hb_codepoint_t max_before = intersection.get_max (); in closure() 66 hb_codepoint_t min_after = (min_before + d) & mask; in closure() 67 hb_codepoint_t max_after = (max_before + d) & mask; in closure() 74 | hb_map ([d, mask] (hb_codepoint_t g) { return (g + d) & mask; }) in closure() 84 hb_codepoint_t d = deltaGlyphID; in collect_glyphs() 85 hb_codepoint_t mask = get_mask (); in collect_glyphs() [all …]
|
/aosp_15_r20/external/harfbuzz_ng/src/OT/Layout/Common/ |
H A D | Coverage.hh | 81 unsigned operator [] (hb_codepoint_t k) const { return get (k); } in operator []() 82 bool has (hb_codepoint_t k) const { return (*this)[k] != NOT_COVERED; } in has() 84 bool operator () (hb_codepoint_t k) const { return has (k); } in operator ()() 86 unsigned int get (hb_codepoint_t k) const { return get_coverage (k); } in get() 87 unsigned int get_coverage (hb_codepoint_t glyph_id) const in get_coverage() 114 hb_requires (hb_is_sorted_source_of (Iterator, hb_codepoint_t))> 122 hb_codepoint_t last = (hb_codepoint_t) -2; in serialize() 123 hb_codepoint_t max = 0; in serialize() 127 if (last != (hb_codepoint_t) -2 && g < last) in serialize() 167 | hb_filter ([] (hb_codepoint_t glyph) { return glyph != HB_MAP_VALUE_INVALID; }) in subset() [all …]
|