aboutsummaryrefslogtreecommitdiff
path: root/utf9/utf9.h
diff options
context:
space:
mode:
Diffstat (limited to 'utf9/utf9.h')
-rw-r--r--utf9/utf9.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/utf9/utf9.h b/utf9/utf9.h
new file mode 100644
index 0000000..73a1576
--- /dev/null
+++ b/utf9/utf9.h
@@ -0,0 +1,11 @@
+#ifndef UTF9_H
+#define UTF9_H
+
+#include <stddef.h>
+#include <tri.h>
+
+size_t utf8_to_utf9(tri_t *u9, size_t u9_len, const uint8_t *u8, size_t u8_len, size_t *u8_read);
+
+size_t utf9_to_utf8(uint8_t *u8, size_t u8_len, const tri_t *u9, size_t u9_len, size_t *u9_read);
+
+#endif