Add compile-time inversion lists for POSIX classes
authorKarl Williamson <public@khwilliamson.com>
Sat, 4 Feb 2012 18:42:58 +0000 (11:42 -0700)
committerKarl Williamson <public@khwilliamson.com>
Thu, 9 Feb 2012 17:13:57 +0000 (10:13 -0700)
commit3f427fd9b3d9172856d6247beacfaedb3a38b17d
treee5a0b56d8adcac229f0b24c9de5c77ba82322fa7
parenta3e1f3a6180fe54649735a678cb15de8aaacf5e9
Add compile-time inversion lists for POSIX classes

These will be used in regcomp.c to replace the existing bit-wise
handling of these, enabling subsequent optimizations.

These are compiled-in, and hence affect the memory footprint of every
program, including those that don't use Unicode.  The lists that aren't
tiny are therefore currently restricted to only the Latin1 range;
anything needed beyond that will have to be read in at execution time,
just as before.

The design allows for easy conversion from Latin1 to use the full
Unicode range, should it be deemed desirable for some or all of these.
charclass_invlists.h
embedvar.h
intrpvar.h
regcomp.c
regen/mk_invlists.pl
sv.c