Minor
This commit is contained in:
parent
784f29d061
commit
1be368e96f
|
@ -156,7 +156,21 @@ struct hb_buffer_t {
|
||||||
HB_INTERNAL void copy_glyph (void);
|
HB_INTERNAL void copy_glyph (void);
|
||||||
/* Copies glyph at idx to output and advance idx.
|
/* Copies glyph at idx to output and advance idx.
|
||||||
* If there's no output, just advance idx. */
|
* If there's no output, just advance idx. */
|
||||||
HB_INTERNAL void next_glyph (void);
|
inline void
|
||||||
|
next_glyph (void)
|
||||||
|
{
|
||||||
|
if (have_output)
|
||||||
|
{
|
||||||
|
if (unlikely (out_info != info || out_len != idx)) {
|
||||||
|
if (unlikely (!make_room_for (1, 1))) return;
|
||||||
|
out_info[out_len] = info[idx];
|
||||||
|
}
|
||||||
|
out_len++;
|
||||||
|
}
|
||||||
|
|
||||||
|
idx++;
|
||||||
|
}
|
||||||
|
|
||||||
/* Advance idx without copying to output. */
|
/* Advance idx without copying to output. */
|
||||||
inline void skip_glyph (void) { idx++; }
|
inline void skip_glyph (void) { idx++; }
|
||||||
|
|
||||||
|
|
|
@ -290,21 +290,6 @@ hb_buffer_t::replace_glyph (hb_codepoint_t glyph_index)
|
||||||
out_len++;
|
out_len++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
hb_buffer_t::next_glyph (void)
|
|
||||||
{
|
|
||||||
if (have_output)
|
|
||||||
{
|
|
||||||
if (unlikely (out_info != info || out_len != idx)) {
|
|
||||||
if (unlikely (!make_room_for (1, 1))) return;
|
|
||||||
out_info[out_len] = info[idx];
|
|
||||||
}
|
|
||||||
out_len++;
|
|
||||||
}
|
|
||||||
|
|
||||||
idx++;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
hb_buffer_t::set_masks (hb_mask_t value,
|
hb_buffer_t::set_masks (hb_mask_t value,
|
||||||
|
|
Loading…
Reference in New Issue