summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
new file mode 100644
index 0000000..49e0750
--- /dev/null
+++ b/utf8.h
@@ -0,0 +1,9 @@
+typedef unsigned long unicode;
+/* must be big enough to store codes up to UMAX */
+
+#define UMAX 0x10ffff /* last unicode value */
+#define BMPMAX 0xffff
+
+#include <stdio.h>
+unicode fromUTF8(FILE *);
+void outUTF8(unicode, FILE *);