Use macro not swash for utf8 quotemeta
authorKarl Williamson <public@khwilliamson.com>
Mon, 3 Sep 2012 22:59:09 +0000 (16:59 -0600)
committerKarl Williamson <public@khwilliamson.com>
Fri, 14 Sep 2012 03:14:03 +0000 (21:14 -0600)
commit685289b5657b776e8a3871de68a57785e6ccd797
treeeffb3627422467ccc329131b12c3de913ff5b8a4
parentb1af8fefbdf1c044271e0b9d8898e2d808ab7879
Use macro not swash for utf8 quotemeta

The rules for matching whether an above-Latin1 code point are now saved
in a macro generated from a trie by regen/regcharclass.pl, and these are
now used by pp.c to test these cases.  This allows removal of a wrapper
subroutine, and also there is no need for dynamic loading at run-time
into a swash.

This macro is about as big as I'm comfortable compiling in, but it
saves the building of a hash that can grow over time, and removes a
subroutine and interpreter variables.  Indeed, performance benchmarks
show that it is about the same speed as a hash, but it does not require
having to load the rules in from disk the first time it is used.
embed.fnc
embed.h
embedvar.h
intrpvar.h
pp.c
proto.h
regcharclass.h
regen/regcharclass.pl
sv.c
utf8.c