rune.h 376 B

12345678910111213141516171819
  1. /*
  2. *
  3. * Rune declarations - for supporting UTF encoding.
  4. *
  5. */
  6. #define RUNELIB 1
  7. #ifdef RUNELIB
  8. typedef unsigned short Rune;
  9. enum
  10. {
  11. UTFmax = 3, /* maximum bytes per rune */
  12. Runesync = 0x80, /* cannot represent part of a utf sequence (<) */
  13. Runeself = 0x80, /* rune and utf sequences are the same (<) */
  14. Runeerror = 0xFFFD, /* decoding error in utf */
  15. };
  16. #endif