This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Change lookup for dumping pattern
authorKarl Williamson <khw@cpan.org>
Mon, 30 Jan 2017 21:01:29 +0000 (14:01 -0700)
committerKarl Williamson <khw@cpan.org>
Thu, 1 Jun 2017 12:33:17 +0000 (06:33 -0600)
commita25d3b59702b551ace9e660fea69ff29d7909dd4
tree52050d7bbbdf85a3e1097d8ac0a15e84671395d2
parent4f3d592dab44d979d9445efa51979df782491855
regcomp.c: Change lookup for dumping pattern

Instead of using a bunch of branches, use strchr() to see if a
character is a member of a class.  This is a common paradigm in the
parsers.
regcomp.c