diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-09-17 14:05:04 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-09-17 14:05:04 -0700 |
commit | 309173a493aea59cce5cce1b52b86e01b041bb8f (patch) | |
tree | 30eea56599b096d11cf4eaad38d395b3910a35b4 /src/utf8.h | |
parent | 6326bc748c8f5f225d82c01fe6763776f2bbd88e (diff) | |
parent | 3aa56049d4b52b55a2313e51698090ee81e10036 (diff) |
Merge pull request #66 from vmg/revamp
Enfastenate the C Parsenator
Diffstat (limited to 'src/utf8.h')
-rw-r--r-- | src/utf8.h | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -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 |