1 #ifndef HB_UTF_PRIVATE_H
2 #define HB_UTF_PRIVATE_H
3 /*----------------------------------------------------------------------------*/
5 void *hb_utf_next_utf8(void *text
, void *end
, hb_codepoint_t
* unicode
);
6 void *hb_utf_prev_utf8(void *text
, void *start
, hb_codepoint_t
* unicode
);
7 void *hb_utf_ptr_offset_utf8(void *text
, unsigned offset
);
8 unsigned hb_utf_strlen_utf8(void *text
);
9 unsigned hb_utf_diff_utf8(void *a
, void *b
);
11 /*----------------------------------------------------------------------------*/
13 void *hb_utf_next_utf16(void *text
, void *end
, hb_codepoint_t
* unicode
);
14 void *hb_utf_prev_utf16(void *text
, void *start
, hb_codepoint_t
* unicode
);
15 void *hb_utf_ptr_offset_utf16(void *text
, unsigned offset
);
16 unsigned hb_utf_strlen_utf16(void *text
);
17 unsigned hb_utf_diff_utf16(void *a
, void *b
);
19 /*----------------------------------------------------------------------------*/
21 void *hb_utf_next_utf32(void *text
, void *end HB_UNUSED
,
22 hb_codepoint_t
* unicode
);
23 void *hb_utf_prev_utf32(void *text
, void *start HB_UNUSED
,
24 hb_codepoint_t
* unicode
);
25 void *hb_utf_ptr_offset_utf32(void *text
, unsigned offset
);
26 unsigned hb_utf_strlen_utf32(void *text
);
27 unsigned hb_utf_diff_utf32(void *a
, void *b
);