summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-07-02 21:09:18 -0600
committerKarl Williamson <public@khwilliamson.com>2012-07-24 21:13:45 -0600
commite48bdfbc901b8dfc9e4a8e9f3d1e326946934606 (patch)
treece9314e7cf4962c4c8491a0b517524eb4e29d325 /handy.h
parent4eeeb4163431861c1ea71094893a7d7e4533d011 (diff)
downloadperl-e48bdfbc901b8dfc9e4a8e9f3d1e326946934606.tar.gz
handy.h: l1_charclass.h: Add bit for matching ASCII
This does not replace the isASCII macro definition, as I think the current one is more efficient than this one provides. But future commits will rely on all the named character classes (e.g., /[[:ascii:]]/) having a bit, and this is the only one missing.
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index fed3c37350..bd707de6d6 100644
--- a/handy.h
+++ b/handy.h
@@ -621,6 +621,7 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc
# define _CC_IDFIRST_L1 (1<<13)
# define _CC_LOWER_A (1<<14)
# define _CC_LOWER_L1 (1<<15)
+# define _CC_ASCII (1<<16)
# define _CC_PRINT_A (1<<17)
# define _CC_PRINT_L1 (1<<18)
# define _CC_PSXSPC_A (1<<19)
@@ -636,7 +637,7 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc
# define _CC_XDIGIT_A (1<<29)
# define _CC_NONLATIN1_FOLD (1<<30)
# define _CC_QUOTEMETA (1U<<31) /* 1U keeps Solaris from griping */
-/* Unused: (1<<16)
+/* Unused: None
* If more are needed, can give up some of the above. The first ones to go
* would be those that require just two tests to verify; either there are two
* code points, like BLANK_A, or it occupies a single range like DIGIT_A,