summaryrefslogtreecommitdiff
path: root/src/utf8.h
blob: 9506b75885b2968609322190d6b7925fdd6aadf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _H_STMD_UTF8_
#define _H_STMD_UTF8_

#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);
ssize_t utf8proc_iterate(const uint8_t *str, ssize_t str_len, int32_t *dst);
ssize_t utf8proc_charlen(const uint8_t *str, ssize_t str_len);
void utf8proc_detab(strbuf *dest, const uint8_t *line, size_t size);

#endif