New API: hb_buffer_reverse_range()

This commit is contained in:
Behdad Esfahbod 2015-04-30 13:04:16 -04:00
parent f724cc3516
commit 81bedda58c
2 changed files with 21 additions and 0 deletions

View File

@ -1282,6 +1282,23 @@ hb_buffer_reverse (hb_buffer_t *buffer)
buffer->reverse ();
}
/**
* hb_buffer_reverse_range:
* @buffer: a buffer.
* @start: start index.
* @end: end index.
*
* Reverses buffer contents between start to end.
*
* Since: 1.0
**/
void
hb_buffer_reverse_range (hb_buffer_t *buffer,
unsigned int start, unsigned int end)
{
buffer->reverse_range (start, end);
}
/**
* hb_buffer_reverse_clusters:
* @buffer: a buffer.

View File

@ -221,6 +221,10 @@ hb_buffer_allocation_successful (hb_buffer_t *buffer);
void
hb_buffer_reverse (hb_buffer_t *buffer);
void
hb_buffer_reverse_range (hb_buffer_t *buffer,
unsigned int start, unsigned int end);
void
hb_buffer_reverse_clusters (hb_buffer_t *buffer);