diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2013-06-07 08:50:27 +0000 |
|---|---|---|
| committer | Charles Forsyth <charles.forsyth@gmail.com> | 2013-06-07 08:50:27 +0000 |
| commit | db76ee8d534cb5c7681e9013703b20ab5016b4fa (patch) | |
| tree | 06921e4d2117133e45f66e783084f44ec929da76 | |
| parent | aecc9af60ded26eed61441e5129f2a8df451cd82 (diff) | |
UTFmax increased, Runeerror changed
| -rw-r--r-- | os/port/lib.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/os/port/lib.h b/os/port/lib.h index e50fd8cb..4a9974a2 100644 --- a/os/port/lib.h +++ b/os/port/lib.h @@ -38,10 +38,12 @@ extern int fullrune(char*, int); 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 = 0x80, /* decoding error in UTF */ + UTFmax = 4, /* 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 = 0x10FFFF, /* 21-bit rune */ + Runemask = 0x1FFFFF, /* bits used by runes (see grep) */ }; /* |
