This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8.h: Use new macro type from previous commit
authorKarl Williamson <khw@cpan.org>
Tue, 6 May 2014 04:17:33 +0000 (22:17 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 31 May 2014 17:52:06 +0000 (11:52 -0600)
commit5dca92787911972e6827cbb3173c9b1f44ea8613
tree4441de42446a50729bec14d361bc769963294449
parent40f914fd7fc2115d5df1c2b1ecc1d960d5f0a210
utf8.h: Use new macro type from previous commit

This allows for an efficient isUTF8_CHAR macro, which does its own
length checking, and uses the UTF8_INVARIANT macro for the first byte.
On EBCDIC systems this macro which does a table lookup is quite a bit
more efficient than all the branches that would normally have to be
done.
regcharclass.h
regen/regcharclass.pl
utf8.h