Home
last modified time | relevance | path

Searched refs:arrayZ (Results 1 – 25 of 29) sorted by relevance

12

/external/harfbuzz_ng/src/
Dhb-ot-var-avar-table.hh73 return value - arrayZ[0].fromCoord + arrayZ[0].toCoord; in map()
76 if (value <= arrayZ[0].fromCoord) in map()
77 return value - arrayZ[0].fromCoord + arrayZ[0].toCoord; in map()
81 for (i = 1; i < count && value > arrayZ[i].fromCoord; i++) in map()
84 if (value >= arrayZ[i].fromCoord) in map()
85 return value - arrayZ[i].fromCoord + arrayZ[i].toCoord; in map()
87 if (unlikely (arrayZ[i-1].fromCoord == arrayZ[i].fromCoord)) in map()
88 return arrayZ[i-1].toCoord; in map()
90 int denom = arrayZ[i].fromCoord - arrayZ[i-1].fromCoord; in map()
91 return arrayZ[i-1].toCoord + in map()
[all …]
Dhb-array.hh45 hb_array_t () : arrayZ (nullptr), len (0) {} in hb_array_t()
46 hb_array_t (const hb_array_t &o) : arrayZ (o.arrayZ), len (o.len) {} in hb_array_t()
47 hb_array_t (Type *array_, unsigned int len_) : arrayZ (array_), len (len_) {} in hb_array_t()
48 template <unsigned int len_> hb_array_t (Type (&array_)[len_]) : arrayZ (array_), len (len_) {} in hb_array_t()
58 return arrayZ[i]; in operator []()
62 Type * operator & () const { return arrayZ; } in operator &()
64 operator hb_array_t<const Type> () { return hb_array_t<const Type> (arrayZ, len); } in operator hb_array_t<const Type>()
65 template <typename T> operator T * () const { return arrayZ; } in operator T*()
72 arrayZ += count; in operator +=()
102 return hb_memcmp (a.arrayZ, arrayZ, get_size ()); in cmp()
[all …]
Dhb-vector.hh67 Type *array = arrayZ(); in fini_deep()
74 Type * arrayZ () { return arrayZ_ ? arrayZ_ : static_array; } in arrayZ() function
75 const Type * arrayZ () const { return arrayZ_ ? arrayZ_ : static_array; } in arrayZ() function
82 return arrayZ()[i]; in operator []()
89 return arrayZ()[i]; in operator []()
93 { return hb_array (arrayZ(), len); } in as_array()
95 { return hb_array (arrayZ(), len); } in as_array()
107 { return hb_sorted_array (arrayZ(), len); } in as_sorted_array()
109 { return hb_sorted_array (arrayZ(), len); } in as_sorted_array()
120 template <typename T> explicit_operator T * () { return arrayZ(); }
[all …]
Dhb-open-type.hh363 const Type *p = &arrayZ[i]; in operator []()
364 if (unlikely (p < arrayZ)) return Null (Type); /* Overflowed. */ in operator []()
370 Type *p = &arrayZ[i]; in operator []()
371 if (unlikely (p < arrayZ)) return Crap (Type); /* Overflowed. */ in operator []()
378 template <typename T> operator T * () { return arrayZ; } in operator T*()
379 template <typename T> operator const T * () const { return arrayZ; } in operator const T*()
381 { return hb_array (arrayZ, len); } in as_array()
383 { return hb_array (arrayZ, len); } in as_array()
409 (void) (false && arrayZ[0].sanitize (c)); in sanitize()
418 if (unlikely (!arrayZ[i].sanitize (c, base))) in sanitize()
[all …]
Dhb-ot-layout-gsubgpos.hh1293 inputCount, inputZ.arrayZ, in intersects()
1303 inputCount, inputZ.arrayZ, in closure()
1304 lookupCount, lookupRecord.arrayZ, in closure()
1315 inputCount, inputZ.arrayZ, in collect_glyphs()
1316 lookupCount, lookupRecord.arrayZ, in collect_glyphs()
1326 …race (context_would_apply_lookup (c, inputCount, inputZ.arrayZ, lookupCount, lookupRecord.arrayZ, … in would_apply()
1335 …turn_trace (context_apply_lookup (c, inputCount, inputZ.arrayZ, lookupCount, lookupRecord.arrayZ, … in apply()
1344 c->check_range (inputZ.arrayZ, in sanitize()
1678 glyphCount, (const HBUINT16 *) (coverageZ.arrayZ + 1), in intersects()
1694 glyphCount, (const HBUINT16 *) (coverageZ.arrayZ + 1), in closure()
[all …]
Dhb-ot-name-table.hh162 const void *string_pool = (this+stringOffset).arrayZ; in sanitize_records()
175 c->check_array (nameRecordZ.arrayZ, count) && in sanitize()
187 const hb_array_t<const NameRecord> all_names (this->table->nameRecordZ.arrayZ, in init()
234 this->names.arrayZ(), in get_index()
249 const hb_array_t<const NameRecord> all_names (table->nameRecordZ.arrayZ, table->count); in get_name()
Dhb-ot-color-colr-table.hh101 hb_array_t<const LayerRecord> all_layers ((this+layersZ).arrayZ, numLayers); in get_glyph_layers()
110 layers[i].glyph = segment_layers.arrayZ[i].glyphId; in get_glyph_layers()
111 layers[i].color_index = segment_layers.arrayZ[i].colorIdx; in get_glyph_layers()
Dhb-aat-layout-common.hh54 return &arrayZ[glyph_id]; in get_value()
60 return_trace (arrayZ.sanitize (c, c->get_num_glyphs ())); in sanitize()
65 return_trace (arrayZ.sanitize (c, c->get_num_glyphs (), base)); in sanitize()
71 arrayZ; /* Array of lookup values, indexed by glyph index. */ member
512 { return (this+entryTable).arrayZ; } in get_entries()
518 const HBUSHORT *states = (this+stateArrayTable).arrayZ; in get_entryZ()
519 const Entry<Extra> *entries = (this+entryTable).arrayZ; in get_entryZ()
534 const HBUSHORT *states = (this+stateArrayTable).arrayZ; in sanitize()
535 const Entry<Extra> *entries = (this+entryTable).arrayZ; in sanitize()
649 return i >= classArray.len ? outOfRange : classArray.arrayZ[i]; in get_class()
Dhb-ot-var-mvar-table.hh71 c->check_range (valuesZ.arrayZ, in sanitize()
80 record = (VariationValueRecord *) bsearch (&tag, valuesZ.arrayZ, in get_var()
Dhb-ot-math-table.hh237 if (!mathValueRecordsZ.arrayZ[i].sanitize (c, this)) return_trace (false); in sanitize_math_value_records()
245 c->check_array (mathValueRecordsZ.arrayZ, 2 * heightCount + 1) && in sanitize()
251 const MathValueRecord* correctionHeight = mathValueRecordsZ.arrayZ; in get_value()
252 const MathValueRecord* kernValue = mathValueRecordsZ.arrayZ + heightCount; in get_value()
587 if (!glyphConstruction.arrayZ[i].sanitize (c, this)) return_trace (false); in sanitize_offsets()
597 c->check_array (glyphConstruction.arrayZ, vertGlyphCount + horizGlyphCount) && in sanitize()
Dhb-ot-var-hvar-table.hh42 c->check_range (mapDataZ.arrayZ, in sanitize()
60 const HBUINT8 *p = mapDataZ.arrayZ + w * v; in map()
Dhb-open-file.hh99 const TableRecord *sub_tables = tables.arrayZ + start_offset; in get_table_tags()
141 TableRecord &rec = tables.arrayZ[i]; in serialize()
178 TableRecord &rec = tables.arrayZ[i]; in serialize()
285 { return CastR<OpenTypeFontFace> ((data_base+offset).arrayZ); } in get_face()
Dhb-ot-name.cc63 return name.names.arrayZ(); in hb_ot_name_list_names()
74 const typename in_utf_t::codepoint_t *src = (const typename in_utf_t::codepoint_t *) bytes.arrayZ; in hb_ot_name_convert_utf()
Dhb-aat-layout-trak-table.hh85 hb_array_t<const Fixed> size_table ((base+sizeTable).arrayZ, sizes); in interpolate_at()
130 hb_array_t<const Fixed> size_table ((base+sizeTable).arrayZ, sizes); in get_tracking()
Dhb-ot-glyf-table.hh366 const HBUINT16 *offsets = (const HBUINT16 *) loca_table->dataZ.arrayZ; in get_offsets()
372 const HBUINT32 *offsets = (const HBUINT32 *) loca_table->dataZ.arrayZ; in get_offsets()
409 *instruction_start = ((char *) last - (char *) glyf_table->dataZ.arrayZ) + last->get_size (); in get_instruction_offsets()
Dhb-aat-layout-morx-table.hh260 replacement = &subs_old[Types::wordOffsetToIndex (offset, table, subs_old.arrayZ)]; in transition()
285 replacement = &subs_old[Types::wordOffsetToIndex (offset, table, subs_old.arrayZ)]; in transition()
492 action_idx = Types::offsetToIndex (action_idx, table, ligAction.arrayZ); in transition()
518 component_idx = Types::wordOffsetToIndex (component_idx, table, component.arrayZ); in transition()
528 ligature_idx = Types::offsetToIndex (ligature_idx, table, ligature.arrayZ); in transition()
1062 if (!c->check_array (featureZ.arrayZ, featureCount)) in sanitize()
Dhb-ot-layout-common.hh202 output->add_array (arrayZ, len); in add_indexes_to()
286 out->langSys.arrayZ[i].offset.serialize_subset (c, this+langSys[i].offset, out); in subset()
857 return glyphs->add_sorted_array (glyphArray.arrayZ, glyphArray.len); in add_coverage()
1643 const VarRegionAxis *axes = axesZ.arrayZ + (region_index * axisCount); in evaluate()
1706 float scalar = regions.evaluate (regionIndices.arrayZ[i], coords, coord_count); in get_delta()
1712 float scalar = regions.evaluate (regionIndices.arrayZ[i], coords, coord_count); in get_delta()
1727 scalars[i] = regions.evaluate (regionIndices.arrayZ[i], coords, coord_count); in get_scalars()
1866 if (!(this+conditions.arrayZ[i]).evaluate (coords, coord_len)) in evaluate()
1907 const FeatureTableSubstitutionRecord &record = substitutions.arrayZ[i]; in find_substitute()
1960 const FeatureVariationRecord &record = varRecords.arrayZ[i]; in find_index()
Dhb-ot-layout-base-table.hh203 hb_bsearch (&feature_tag, featMinMaxRecords.arrayZ, in get_min_max()
308 hb_bsearch (&language_tag, baseLangSysRecords.arrayZ, in get_min_max()
382 return (const BaseScriptRecord *) hb_bsearch (&script, baseScriptRecords.arrayZ, in find_record()
Dhb-ot-post-table.hh135 strncpy (buf, s.arrayZ, len); in get_glyph_name()
224 unsigned int index = glyphNameIndex->arrayZ[glyph]; in find_glyph_name()
Dhb-ot-var-fvar-table.hh54 c->check_array (coordinatesZ.arrayZ, axis_count)); in sanitize()
272 coords[i] = instanceCoords.arrayZ[i].to_float (); in get_instance_coords()
Dhb-aat-ltag-table.hh68 return hb_language_from_string ((const char *) (this+range.tag).arrayZ, in get_language()
Dhb-ot-layout-gsub-table.hh310 c->output->add_array (substitute.arrayZ, substitute.len); in collect_glyphs()
322 c->replace_glyph (substitute.arrayZ[0]); in apply()
338 c->output_glyph_for_component (substitute.arrayZ[i], klass); in apply()
502 c->output->add_array (alternates.arrayZ, alternates.len); in collect_glyphs()
704 c->input->add_array (component.arrayZ, component.lenP1 ? component.lenP1 - 1 : 0); in collect_glyphs()
1117 c->output->add_array (substitute.arrayZ, substitute.len); in collect_glyphs()
1142 backtrack.len, (HBUINT16 *) backtrack.arrayZ, in apply()
1146 lookahead.len, (HBUINT16 *) lookahead.arrayZ, in apply()
Dhb-uniscribe.cc698 active_features.remove (feature - active_features.arrayZ ()); in _hb_uniscribe_shape()
889 range_char_counts.arrayZ (), in _hb_uniscribe_shape()
890 range_properties.arrayZ (), in _hb_uniscribe_shape()
930 range_char_counts.arrayZ (), in _hb_uniscribe_shape()
931 range_properties.arrayZ (), in _hb_uniscribe_shape()
Dhb-ot-cmap-table.hh236 endCount = subtable->values.arrayZ; in init()
625 hb_codepoint_t first = arrayZ[i].startUnicodeValue; in collect_unicodes()
626 hb_codepoint_t last = MIN ((hb_codepoint_t) (first + arrayZ[i].additionalCount), in collect_unicodes()
661 out->add (arrayZ[i].glyphID); in collect_unicodes()
726 out->add (record.arrayZ[i].varSelector); in collect_variation_selectors()
Dhb-aat-layout-kerx-table.hh257 kern_idx = Types::byteOffsetToIndex (kern_idx, &table->machine, kernAction.arrayZ); in transition()
395 const UnsizedArrayOf<FWORD> &arrayZ = this+array; in get_kerning() local
397 kern_idx = Types::offsetToIndex (kern_idx, this, &arrayZ); in get_kerning()
398 const FWORD *v = &arrayZ[kern_idx]; in get_kerning()

12