[HB] Add buffer UTF-X API
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 11 Aug 2009 01:10:37 +0000 (21:10 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 2 Nov 2009 19:40:37 +0000 (14:40 -0500)
src/hb-buffer.h

index 4240f6a..4804a87 100644 (file)
@@ -111,6 +111,27 @@ hb_buffer_add_glyph (hb_buffer_t    *buffer,
                     hb_mask_t       mask,
                     unsigned int    cluster);
 
+void
+hb_buffer_add_utf8 (hb_buffer_t  *buffer,
+                   const char   *text,
+                   unsigned int  text_len,
+                   unsigned int  item_offset,
+                   unsigned int  item_len);
+
+void
+hb_buffer_add_utf16 (hb_buffer_t    *buffer,
+                    const uint16_t *text,
+                    unsigned int    text_len,
+                    unsigned int    item_offset,
+                    unsigned int    item_len);
+
+void
+hb_buffer_add_utf32 (hb_buffer_t    *buffer,
+                    const uint32_t *text,
+                    unsigned int    text_len,
+                    unsigned int    item_offset,
+                    unsigned int    item_len);
+
 
 /* Getting glyphs out of the buffer */