develooper Front page | perl.perl5.porters | Postings from April 2007

Re: [PATCH] Change meaning of \v, \V, and add \h, \H to match Perl6, add \R to match PCRE and unicode tr18

Thread Previous | Thread Next
From:
demerphq
Date:
April 23, 2007 04:46
Subject:
Re: [PATCH] Change meaning of \v, \V, and add \h, \H to match Perl6, add \R to match PCRE and unicode tr18
Message ID:
9b18b3110704230445g337374a9h6106939987158cee@mail.gmail.com
On 4/23/07, Rafael Garcia-Suarez <rgarciasuarez@gmail.com> wrote:
> On 22/04/07, demerphq <demerphq@gmail.com> wrote:
> > The attached patch changes \v and \V (as requested by Larry a while
> > back) to match vertical whitespace (or not), adds support for \h and
> > \H to match horizontal whitespace (or not) and adds \R which match
> > line endings, (the same as (?>\x0D\x0A|\v) would match).
> >
> > \R is currently in PCRE 7 and is suggested in the unicode spec under
> > http://unicode.org/unicode/reports/tr18/#Line_Boundaries.
> >
> > \v\V and \h\H are from Perl6.
>
> Thanks, applied as change 31026.

This patch adds the generator script for making regcharclass.h to
Porting/ as discussed in #p5p. I've called the generator script
regcharclass.pl and documented what it does a bit, and made
configuration __DATA__ driven, and added boilerplate etc.

If executed with no args it trys to find regcharclass in the current
and parent directory. If it finds it then it updates it, otherwise it
dies. If executed with args then writes the generated code to a file
of that name.

Option handling and inline documentation is currently lacking. Ill try
to enhance it later on.

Also updates MANIFEST to show that regcharclass.h is generated by
regcharclass.pl

Cheers,
Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About