aboutsummaryrefslogtreecommitdiff
path: root/utf9/utf9.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-10-28 00:00:21 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-10-28 00:00:21 +0300
commitd96b8c7d12fc61ec609d6138627b9d6d18139a9a (patch)
tree82bc9a4c2b22de6c021097fb79a57b6d7756a127 /utf9/utf9.h
downloadtri-d96b8c7d12fc61ec609d6138627b9d6d18139a9a.tar.gz
tri-d96b8c7d12fc61ec609d6138627b9d6d18139a9a.zip
move to monorepo
+ Will probably have to make some changes to dir layout to make things make more sense
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