diff options
author | Kārlis Gaņģis <Knagis@users.noreply.github.com> | 2014-10-08 11:02:43 +0300 |
---|---|---|
committer | Kārlis Gaņģis <Knagis@users.noreply.github.com> | 2014-10-08 11:02:43 +0300 |
commit | 43b8646d444d6828014bdd38df956f5871d60efe (patch) | |
tree | 66a1b9f6bd38822ee0c01a097ba7465157a5480c /src/utf8.h | |
parent | 3567b844ca1fd7bec62801f8758545f7bd5cbaae (diff) | |
parent | daeb55edc7636deebc2a79621ea06c3548d67827 (diff) |
Merge pull request #1 from jgm/master
merge
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 |