4 /* libutf8 © 2012-2015 Connor Lane Smith <cls@lubutu.com> */
8 #if __STDC_VERSION__ >= 201112L
10 #ifdef __STDC_UTF_32__
11 #define RUNE_C INT32_C
12 typedef char32_t Rune
;
18 #define RUNE_C INT32_C
19 typedef uint_least32_t Rune
;
21 #define RUNE_C(x) x##L
22 typedef unsigned long Rune
;
26 #define UTFmax 4 /* maximum bytes per rune */
28 #define Runeself 0x80 /* rune and utf are equal (<) */
29 #define Runemax RUNE_C(0x10FFFF) /* maximum rune value */
32 int runetochar(char *s
, const Rune
*p
);