summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-12-11 13:05:04 -0700
committerKarl Williamson <public@khwilliamson.com>2012-12-22 11:11:26 -0700
commit63c61c3fe04eb423aaa8e9895c20e220f86c6593 (patch)
tree82944cb6fb6be32665f4b2770aebb50055bf2b63 /handy.h
parente3d474b7de6268afa57fb09352d3082a13d99d0c (diff)
downloadperl-63c61c3fe04eb423aaa8e9895c20e220f86c6593.tar.gz
intrpvar.h: Place some swash pointers in an array
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index 17379db15a..c3fce76d96 100644
--- a/handy.h
+++ b/handy.h
@@ -791,6 +791,18 @@ typedef enum {
} _char_class_number;
#endif
+#define POSIX_SWASH_COUNT _FIRST_NON_SWASH_CC
+
+#define PL_utf8_alnum PL_utf8_swash_ptrs[_CC_WORDCHAR]
+#define PL_utf8_alnumc PL_utf8_swash_ptrs[_CC_ALNUMC]
+#define PL_utf8_alpha PL_utf8_swash_ptrs[_CC_ALPHA]
+#define PL_utf8_graph PL_utf8_swash_ptrs[_CC_GRAPH]
+#define PL_utf8_digit PL_utf8_swash_ptrs[_CC_DIGIT]
+#define PL_utf8_upper PL_utf8_swash_ptrs[_CC_UPPER]
+#define PL_utf8_lower PL_utf8_swash_ptrs[_CC_LOWER]
+#define PL_utf8_print PL_utf8_swash_ptrs[_CC_PRINT]
+#define PL_utf8_punct PL_utf8_swash_ptrs[_CC_PUNCT]
+
# ifdef DOINIT
EXTCONST U32 PL_charclass[] = {
# include "l1_char_class_tab.h"