[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Thu Apr 30 10:06:42 PDT 2015
src/hb-buffer.cc | 17 +++++++++++++++++
src/hb-buffer.h | 4 ++++
2 files changed, 21 insertions(+)
New commits:
commit 81bedda58cfc15f1987aa1952290cf9d87b4d074
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Thu Apr 30 13:04:16 2015 -0400
New API: hb_buffer_reverse_range()
diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc
index 0543073..88892d0 100644
--- a/src/hb-buffer.cc
+++ b/src/hb-buffer.cc
@@ -1283,6 +1283,23 @@ hb_buffer_reverse (hb_buffer_t *buffer)
}
/**
+ * 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.
*
diff --git a/src/hb-buffer.h b/src/hb-buffer.h
index e5b46d8..520141b 100644
--- a/src/hb-buffer.h
+++ b/src/hb-buffer.h
@@ -222,6 +222,10 @@ 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);
More information about the HarfBuzz
mailing list