diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 2b9d2431b..63c1e5cfa 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -395,29 +395,6 @@ hb_buffer_t::set_masks (hb_mask_t value, info[i].mask = (info[i].mask & not_mask) | value; } -void -hb_buffer_t::reverse_range (unsigned int start, - unsigned int end) -{ - if (end - start < 2) - return; - - hb_array_t (info, len).reverse (start, end); - - if (have_positions) { - hb_array_t (pos, len).reverse (start, end); - } -} - -void -hb_buffer_t::reverse () -{ - if (unlikely (!len)) - return; - - reverse_range (0, len); -} - void hb_buffer_t::reverse_clusters () { diff --git a/src/hb-buffer.hh b/src/hb-buffer.hh index 48b4a033c..61c40ec31 100644 --- a/src/hb-buffer.hh +++ b/src/hb-buffer.hh @@ -201,8 +201,14 @@ struct hb_buffer_t unsigned int cluster); HB_INTERNAL void add_info (const hb_glyph_info_t &glyph_info); - HB_INTERNAL void reverse_range (unsigned int start, unsigned int end); - HB_INTERNAL void reverse (); + void reverse_range (unsigned start, unsigned end) + { + hb_array_t (info, len).reverse (start, end); + if (have_positions) + hb_array_t (pos, len).reverse (start, end); + } + void reverse () { reverse_range (0, len); } + HB_INTERNAL void reverse_clusters (); HB_INTERNAL void guess_segment_properties ();