blob: aa4d06af2ada60251ca9c3c4c5f3ec42c4447964 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* Rune are simple integers */
typedef unsigned int Rune;
#define NORUNE 0x80000000u
#define WRONGRUNE 0xfffdu
#define risascii(r) ((r) < 0x7f)
int utf8_decode_len(unsigned char);
int utf8_rune_len(Rune);
int utf8_rune_nlen(const Rune *, int);
int utf8_encode_rune(Rune, unsigned char *, int);
int utf8_decode_rune(Rune *, const unsigned char *, int);
int unicode_rune_width(Rune);
|