summaryrefslogtreecommitdiff
path: root/sys/src/cmd/postscript/common/rune.h
blob: 9c1fd4fd0a0a86fbb3ced957dcc26e6b1f347c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 *
 * Rune declarations - for supporting UTF encoding.
 *
 */

#define RUNELIB		1

#ifdef RUNELIB
typedef unsigned short	Rune;

enum
{
	UTFmax		= 3,		/* maximum bytes per rune */
	Runesync	= 0x80,		/* cannot represent part of a utf sequence (<) */
	Runeself	= 0x80,		/* rune and utf sequences are the same (<) */
	Runeerror	= 0xFFFD,		/* decoding error in utf */
};
#endif