This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Rewrite S_put_byte() which dumps regex []
authorKarl Williamson <khw@cpan.org>
Sat, 28 Jun 2014 21:12:45 +0000 (15:12 -0600)
committerKarl Williamson <khw@cpan.org>
Sun, 29 Jun 2014 01:47:21 +0000 (19:47 -0600)
commit7ab5ea18b37891e4d40f4d45d747f682efb6022f
tree24833fe6c3a6b436050fff7094a9ef21c97b1730
parentdc023dbb5508b25bc7dab35c42cc34fe58fc4037
regcomp.c: Rewrite S_put_byte() which dumps regex []

This routine is used to display what the latin1 portions of a bracketed
character class matches.  It is what used, for example,  under -Dr to
display [] contents.  I noticed that the display had more hex characters
than needed, which are less intelligible than just printing out ASCII
printables.  And hence was harder to discern what is really going on.
This improves that, see the comments for more details.
regcomp.c