Lines Matching refs:buffer
219 hb_buffer_t *buffer,
226 hb_glyph_info_t *info = buffer->info;
227 unsigned int count = buffer->len;
258 hb_buffer_t *buffer,
316 buffer->clear_output ();
317 unsigned int count = buffer->len;
318 for (buffer->idx = 0; buffer->idx < count;)
320 hb_codepoint_t u = buffer->cur().codepoint;
322 buffer->next_glyph ();
329 buffer->replace_glyphs (1, 2, decomposed);
330 if (unlikely (buffer->in_error))
334 unsigned int end = buffer->out_len;
336 while (start > 0 && IS_TONE_MARK (buffer->out_info[start - 1].codepoint))
342 buffer->merge_out_clusters (start, end);
343 hb_glyph_info_t t = buffer->out_info[end - 2];
344 memmove (buffer->out_info + start + 1,
345 buffer->out_info + start,
346 sizeof (buffer->out_info[0]) * (end - start - 2));
347 buffer->out_info[start] = t;
354 buffer->merge_out_clusters (start - 1, end);
357 buffer->swap_buffers ();
361 do_thai_pua_shaping (plan, buffer, font);