diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-08-31 16:39:31 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-09-13 21:14:01 -0600 |
commit | 05b688d9b969fe6703f2793129c425e7297fb0c9 (patch) | |
tree | eea523a124d4a86290b57c2606facf22c68d4ddd /regcharclass.h | |
parent | e021c6e6e7e20352e84d2f2a578c324b8d0b490c (diff) | |
download | perl-05b688d9b969fe6703f2793129c425e7297fb0c9.tar.gz |
regen/regcharclass.pl: Handle ranges, \p{}
Instead of having to list all code points in a class, you can now use
\p{} or a range.
This changes some classes to use the \p{}, so that any changes Unicode
makes to the definitions don't have to manually be done here as well.
Diffstat (limited to 'regcharclass.h')
-rw-r--r-- | regcharclass.h | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/regcharclass.h b/regcharclass.h index d7db256a3c..7e6a7a3bb2 100644 --- a/regcharclass.h +++ b/regcharclass.h @@ -20,13 +20,7 @@ LNBREAK: Line Break: \R "\x0D\x0A" # CRLF - Network (Windows) line ending - 0x0A # LF | LINE FEED - 0x0B # VT | VERTICAL TAB - 0x0C # FF | FORM FEED - 0x0D # CR | CARRIAGE RETURN - 0x85 # NEL | NEXT LINE - 0x2028 # LINE SEPARATOR - 0x2029 # PARAGRAPH SEPARATOR + \p{VertSpace} */ /*** GENERATED CODE ***/ #define is_LNBREAK(s,is_utf8) \ @@ -122,25 +116,7 @@ /* HORIZWS: Horizontal Whitespace: \h \H - 0x09 # HT - 0x20 # SPACE - 0xa0 # NBSP - 0x1680 # OGHAM SPACE MARK - 0x180e # MONGOLIAN VOWEL SEPARATOR - 0x2000 # EN QUAD - 0x2001 # EM QUAD - 0x2002 # EN SPACE - 0x2003 # EM SPACE - 0x2004 # THREE-PER-EM SPACE - 0x2005 # FOUR-PER-EM SPACE - 0x2006 # SIX-PER-EM SPACE - 0x2007 # FIGURE SPACE - 0x2008 # PUNCTUATION SPACE - 0x2009 # THIN SPACE - 0x200A # HAIR SPACE - 0x202f # NARROW NO-BREAK SPACE - 0x205f # MEDIUM MATHEMATICAL SPACE - 0x3000 # IDEOGRAPHIC SPACE + \p{HorizSpace} */ /*** GENERATED CODE ***/ #define is_HORIZWS(s,is_utf8) \ @@ -276,13 +252,7 @@ /* VERTWS: Vertical Whitespace: \v \V - 0x0A # LF - 0x0B # VT - 0x0C # FF - 0x0D # CR - 0x85 # NEL - 0x2028 # LINE SEPARATOR - 0x2029 # PARAGRAPH SEPARATOR + \p{VertSpace} */ /*** GENERATED CODE ***/ #define is_VERTWS(s,is_utf8) \ |