This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Teach Perl about Unicode named character sequences
authorKarl Williamson <public@khwilliamson.com>
Mon, 13 Sep 2010 03:33:12 +0000 (21:33 -0600)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 25 Sep 2010 07:47:02 +0000 (00:47 -0700)
commitfb121860c2407cd1d1566d63a95a5220fa93d8e4
treecc61893dd3ffe9966e079addeaa538172e2290e9
parent8ebef31d4feab4b7c35ff0eb427632a67b1abdd9
Teach Perl about Unicode named character sequences

mktables is changed to process the Unicode named sequence file.
charnames.pm is changed to cache the looked-up values in utf8.  A new
function, string_vianame is created that can handle named sequences, as
the interface for vianame cannot.  The subroutine lookup_name() is
slightly refactored to do almost all of the common work for \N{} and the
vianame routines.  It now understands named sequences as created my
mktables..

tests and documentation are added.  In the randomized testing section,
half use vianame() and half string_vianame().
lib/charnames.pm
lib/charnames.t
lib/unicore/mktables
pod/perldelta.pod
pod/perlop.pod
pod/perlre.pod
pod/perlrebackslash.pod
pod/perlreref.pod
pod/perluniintro.pod