summaryrefslogtreecommitdiff
path: root/maint
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-09-23 16:50:00 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-09-23 16:50:00 +0000
commit05d03818ae1cf4196b9316714f0fd199dfb1b1e2 (patch)
tree63b12f728462a7a07d2a2f31d1631048a0de1137 /maint
parent515816cae335b59b2d784ae9bb13711455a7c192 (diff)
downloadpcre-05d03818ae1cf4196b9316714f0fd199dfb1b1e2.tar.gz
Update character class handling to use new character case information; rework
\h, \H, \v, and \V to use the same apparatus with centrally defined lists. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1045 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'maint')
-rwxr-xr-xmaint/MultiStage2.py10
-rw-r--r--maint/ucptest.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/maint/MultiStage2.py b/maint/MultiStage2.py
index 9b4d27f..79f1f66 100755
--- a/maint/MultiStage2.py
+++ b/maint/MultiStage2.py
@@ -56,9 +56,9 @@
#
# This script constructs four tables. The ucd_caseless_sets table contains
# lists of characters that all match each other caselessly. Each list is
-# in order, and is terminated by 0xffffffff, which is of course larger than any
-# valid character. The first list is empty; this is used for characters that
-# are not part of any list.
+# in order, and is terminated by NOTACHAR (0xffffffff), which is larger than
+# any valid character. The first list is empty; this is used for characters
+# that are not part of any list.
#
# The ucd_records table contains one instance of every unique record that is
# required. The ucd_stage1 table is indexed by a character's block number, and
@@ -435,12 +435,12 @@ print record_struct
# --- Added by PH: output the table of caseless character sets ---
print "const pcre_uint32 PRIV(ucd_caseless_sets)[] = {"
-print " 0xffffffff,"
+print " NOTACHAR,"
for s in sets:
s = sorted(s)
for x in s:
print ' 0x%04x,' % x,
- print ' 0xffffffff,'
+ print ' NOTACHAR,'
print '};'
print
diff --git a/maint/ucptest.c b/maint/ucptest.c
index b06578e..87ac89a 100644
--- a/maint/ucptest.c
+++ b/maint/ucptest.c
@@ -243,7 +243,7 @@ if (othercase != c)
if (caseset != 0)
{
const pcre_uint32 *p = PRIV(ucd_caseless_sets) + caseset - 1;
- while (*(++p) < 0xffffffff)
+ while (*(++p) < NOTACHAR)
if (*p != othercase && *p != c) printf(", %04x", *p);
}
}