summaryrefslogtreecommitdiff
path: root/regcharclass.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-11-19 13:14:24 -0700
committerKarl Williamson <public@khwilliamson.com>2012-11-19 17:13:02 -0700
commit840f8e9207353b89e0c2790e03fe16f44071615b (patch)
tree49898c5d54c2715bede005060d81145ea27ace01 /regcharclass.h
parenta35d759aff667e2ddcde81fae0f6dbaecf27e7b1 (diff)
downloadperl-840f8e9207353b89e0c2790e03fe16f44071615b.tar.gz
handy.h: Add isVERTWS_uni(), isVERTWS_utf8()
These two macros match the same things as \v does in patterns. I'm leaving them undocumented for now.
Diffstat (limited to 'regcharclass.h')
-rw-r--r--regcharclass.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/regcharclass.h b/regcharclass.h
index f7b42294d4..497d0914cd 100644
--- a/regcharclass.h
+++ b/regcharclass.h
@@ -269,6 +269,14 @@
: 0 )
/*** GENERATED CODE ***/
+#define is_VERTWS_high(s) \
+( ( ( ( 0xE2 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )
+
+/*** GENERATED CODE ***/
+#define is_VERTWS_high_safe(s,e) \
+( ( ( ( ((e)-(s) > 2) && ( 0xE2 == ((U8*)s)[0] ) ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )
+
+/*** GENERATED CODE ***/
#define is_VERTWS_latin1(s) \
( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) || 0x85 == ((U8*)s)[0] )
@@ -284,6 +292,10 @@
( 0x85 == cp || ( 0x85 < cp && \
( 0x2028 == cp || 0x2029 == cp ) ) ) ) )
+/*** GENERATED CODE ***/
+#define is_VERTWS_cp_high(cp) \
+( 0x2028 == cp || 0x2029 == cp )
+
/*
REPLACEMENT: Unicode REPLACEMENT CHARACTER