Home | History | Annotate | Download | only in src

Lines Matching refs:buffer

32 #include "hb-buffer-private.hh"
235 "idx %d codepoint %u", c->buffer->idx, c->buffer->cur().codepoint);
261 hb_buffer_t *buffer;
279 font (font_), face (font->face), buffer (buffer_),
383 end (c->buffer->len)
392 matcher.set_syllable (start_index_ == c->buffer->idx ? c->buffer->cur().syllable () : 0);
412 const hb_glyph_info_t &info = c->buffer->info[idx];
462 matcher.set_syllable (start_index_ == c->buffer->idx ? c->buffer->cur().syllable () : 0);
482 const hb_glyph_info_t &info = c->buffer->out_info[idx];
566 buffer->cur().glyph_props() = gdef.get_glyph_props (glyph_index);
568 buffer->cur().glyph_props() = class_guess;
575 buffer->output_glyph (glyph_index);
581 buffer->replace_glyph (glyph_index);
587 buffer->cur().codepoint = glyph_index;
706 hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, c->buffer->idx, count - 1);
728 bool is_mark_ligature = !!(c->buffer->cur().glyph_props() & HB_OT_LAYOUT_GLYPH_PROPS_MARK);
731 total_component_count += get_lig_num_comps (c->buffer->cur());
733 unsigned int first_lig_id = get_lig_id (c->buffer->cur());
734 unsigned int first_lig_comp = get_lig_comp (c->buffer->cur());
740 unsigned int this_lig_id = get_lig_id (c->buffer->info[skippy_iter.idx]);
741 unsigned int this_lig_comp = get_lig_comp (c->buffer->info[skippy_iter.idx]);
757 is_mark_ligature = is_mark_ligature && (c->buffer->info[skippy_iter.idx].glyph_props() & HB_OT_LAYOUT_GLYPH_PROPS_MARK);
758 total_component_count += get_lig_num_comps (c->buffer->info[skippy_iter.idx]);
762 *end_offset = skippy_iter.idx - c->buffer->idx + 1;
781 hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, c->buffer->idx, count - 1);
814 unsigned int lig_id = is_mark_ligature ? 0 : allocate_lig_id (c->buffer);
815 unsigned int last_lig_id = get_lig_id (c->buffer->cur());
816 unsigned int last_num_components = get_lig_num_comps (c->buffer->cur());
820 set_lig_props_for_ligature (c->buffer->cur(), lig_id, total_component_count);
827 while (c->buffer->idx < skippy_iter.idx)
831 MIN (MAX (get_lig_comp (c->buffer->cur()), 1u), last_num_components);
832 set_lig_props_for_mark (c->buffer->cur(), lig_id, new_lig_comp);
834 c->buffer->next_glyph ();
837 last_lig_id = get_lig_id (c->buffer->cur());
838 last_num_components = get_lig_num_comps (c->buffer->cur());
842 c->buffer->idx++;
847 for (unsigned int i = c->buffer->idx; i < c->buffer->len; i++) {
848 if (last_lig_id == get_lig_id (c->buffer->info[i])) {
850 MIN (MAX (get_lig_comp (c->buffer->info[i]), 1u), last_num_components);
851 set_lig_props_for_mark (c->buffer->info[i], lig_id, new_lig_comp);
866 hb_apply_context_t::skipping_backward_iterator_t skippy_iter (c, c->buffer->backtrack_len (), count, true);
886 hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, c->buffer->idx + offset - 1, count, true);
934 unsigned int end = c->buffer->len;
935 if (unlikely (count == 0 || c->buffer->idx + count > end))
946 hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, c->buffer->idx, count - 1);
948 uint8_t syllable = c->buffer->cur().syllable();
953 unsigned int old_pos = c->buffer->idx;
961 i += c->buffer->idx - old_pos;
968 hb_apply_context_t::skipping_forward_iterator_t tmp (c, c->buffer->idx - 1, count - i);
977 c->buffer->next_glyph ();
983 while (c->buffer->idx < skippy_iter.idx)
984 c->buffer->next_glyph ();
988 buffer->idx;
996 i += c->buffer->idx - old_pos;
1003 hb_apply_context_t::skipping_forward_iterator_t tmp (c, c->buffer->idx - 1, count - i);
1012 c->buffer->next_glyph ();
1268 unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint);
1359 unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint);
1363 index = class_def.get_class (c->buffer->cur().codepoint);
1449 unsigned int index = (this+coverage[0]).get_coverage (c->buffer->cur().codepoint);
1827 unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint);
1930 unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint);
1937 index = input_class_def.get_class (c->buffer->cur().codepoint);
2053 unsigned int index = (this+input[0]).get_coverage (c->buffer->cur().codepoint);