aboutsummaryrefslogtreecommitdiff
path: root/src/unicode.h
blob: 701c8c7138c4c65601a11793869438e350ec5f4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef ORYX_UNICODE_H
#define ORYX_UNICODE_H

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

#define RUNE_C(x) UINT32_C(x)
typedef uint32_t rune;

rune utf8_decode(const char **);
size_t utf8_validate_off(const char *, size_t);
#if ORYX_SIMD
bool utf8_validate_simd(const char *, size_t);
#endif

#endif /* !ORYX_UNICODE_H */