summaryrefslogtreecommitdiff
path: root/Nt/386/include/lib9.h
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2013-06-07 08:49:25 +0000
committerCharles Forsyth <charles.forsyth@gmail.com>2013-06-07 08:49:25 +0000
commitd90014f6464dd122afdd1a8cd81933e72c72619a (patch)
treefc3e328d81079972bf4d5849351bfb140b277632 /Nt/386/include/lib9.h
parenta4c1b2fe47152137ddc6716ab544ad6677c9c914 (diff)
UTFmax increased, Runeerror changed
Diffstat (limited to 'Nt/386/include/lib9.h')
-rwxr-xr-xNt/386/include/lib9.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Nt/386/include/lib9.h b/Nt/386/include/lib9.h
index 1485e0c6..85ec1b4c 100755
--- a/Nt/386/include/lib9.h
+++ b/Nt/386/include/lib9.h
@@ -100,10 +100,12 @@ extern uvlong strtoull(const char*, char**, int);
enum
{
- UTFmax = 3, /* maximum bytes per rune */
+ 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 = 0x80 /* decoding error in UTF */
+ Runeerror = 0xFFFD, /* decoding error in UTF */
+ Runemax = 0x10FFFF, /* 21-bit rune */
+ Runemask = 0x1FFFFF, /* bits used by runes (see grep) */
};
/*