shithub: riscv

ref: 6e0835f7d8255c0f9f66ec349871e2c8da6efaf4
dir: /sys/src/cmd/postscript/common/rune.h/

View raw version
/*
 *
 * 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 */
	Runemax		= 0xFFFF,	/* 16 bit rune */
};
#endif