This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Merge character class handling revamp topic branch into blead
authorKarl Williamson <public@khwilliamson.com>
Sat, 22 Dec 2012 18:12:08 +0000 (11:12 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sat, 22 Dec 2012 18:12:08 +0000 (11:12 -0700)
commit75db75df0e3f964ba02f066e6f3eebbf857922fb
tree4f1d31479996ff59e6e54c94cce424d1c33efca3
parent173db420ea152864e7a251e388d062ac83a80260
parent605bb55fcdaecb677c075ee439ff1e1062d4173a
Merge character class handling revamp topic branch into blead

This sequence of commits cuts down the amount of duplication in handling
character classes (like \w, [:graph:]).  There are three principal
components: 1) refactor a switch statement in regcomp.c to have common
code for most of the possible classes; 2) replace the 30 regops that
handle these classes by just 4 (effectively) distinct ones; 3) deprecate
the functions callable from XS that do character classification.  XS
code should instead (if they weren't already) use macros in handy.h to
accomplish this purpose.