This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pv_uni_display: Use common fcn; \b mnemonic
authorKarl Williamson <khw@cpan.org>
Thu, 16 Jan 2020 23:14:40 +0000 (16:14 -0700)
committerKarl Williamson <khw@cpan.org>
Thu, 23 Jan 2020 22:46:56 +0000 (15:46 -0700)
commitdaf6caf1ef25ff48f871fa1e53adcefc11bf1d08
treed82154f20ec7d73e8fae65ff09c56458f4c667a5
parent5e6ebb121e85847e480061b087a1c6fe206e6c3a
pv_uni_display: Use common fcn; \b mnemonic

This removes the (almost) duplicate code in this function to display
mnemonics for control characters that have them.  The reason the two
pieces of code aren't precisely the same is that the other function also
uses \b as a mnemonic for backspace.  Using all possible mnemonics is
desirable, so a flag is added for pv_uni_display to now use \b.  This is
now by default enabled in double-quoted strings, but not regex patterns
(as \b there means something quite different except in character classes).
B.pm is changed to expect \b.
ext/B/B.pm
ext/B/B.xs
ext/B/t/b.t
utf8.c
utf8.h