summaryrefslogtreecommitdiff
path: root/src/utf8.h
diff options
context:
space:
mode:
authorGulliver <gulliver@fargonauten.de>2014-09-11 20:31:59 +0200
committerGulliver <gulliver@fargonauten.de>2014-09-22 22:48:29 +0200
commit7e0b564af9ea4aaa35feced8c6fda6a97c7f8948 (patch)
treee7af742d230db039683ab752fbce136669c5eccc /src/utf8.h
parent3e16b871d17f812be1226c23fffbbecbe52876b0 (diff)
using only includes from system
Diffstat (limited to 'src/utf8.h')
-rw-r--r--src/utf8.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/utf8.h b/src/utf8.h
index fe59a90..c971250 100644
--- a/src/utf8.h
+++ b/src/utf8.h
@@ -1,6 +1,13 @@
-#include <stdlib.h>
-#include "bstrlib.h"
+#ifndef _H_STMD_UTF8_
+#define _H_STMD_UTF8_
-extern unsigned char * from_utf8(unsigned char * s, unsigned int *n);
-extern int to_utf8(unsigned int c, bstring dest);
-extern bstring case_fold(bstring source);
+#include <stdint.h>
+#include "buffer.h"
+
+void utf8proc_case_fold(strbuf *dest, const uint8_t *str, int len);
+void utf8proc_encode_char(int32_t uc, strbuf *buf);
+int utf8proc_iterate(const uint8_t *str, int str_len, int32_t *dst);
+int utf8proc_charlen(const uint8_t *str, int str_len);
+void utf8proc_detab(strbuf *dest, const uint8_t *line, size_t size);
+
+#endif