summaryrefslogtreecommitdiff
path: root/lib/unicode.c
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-01-01 13:01:08 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-01-01 14:40:06 +0000
commit1f68fe78e84f25c8ddacdc37a293a5de31725bab (patch)
tree4537db483391b579387c1bcc00c3f1e3b6adc106 /lib/unicode.c
parentAdd glm::vec concatenation operator|| (diff)
downloadilt-1f68fe78e84f25c8ddacdc37a293a5de31725bab.tar.bz2
ilt-1f68fe78e84f25c8ddacdc37a293a5de31725bab.tar.xz
ilt-1f68fe78e84f25c8ddacdc37a293a5de31725bab.zip
First iteration with font/text support
Diffstat (limited to 'lib/unicode.c')
-rw-r--r--lib/unicode.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/unicode.c b/lib/unicode.c
new file mode 100644
index 0000000..b52431f
--- /dev/null
+++ b/lib/unicode.c
@@ -0,0 +1,13 @@
+#include "unicode.h"
+#include <glib.h>
+
+const char *
+next_char(const char * c)
+{
+ return g_utf8_next_char(c);
+}
+uint32_t
+get_codepoint(const char * c)
+{
+ return g_utf8_get_char(c);
+}