develooper Front page | perl.perl5.porters | Postings from November 2010

PATCH: [perl 71752] Case-insensitive matching of characters above255 in ranges in character classes doesn't work

Thread Next
From:
karl williamson
Date:
November 6, 2010 16:59
Subject:
PATCH: [perl 71752] Case-insensitive matching of characters above255 in ranges in character classes doesn't work
Message ID:
4CD5EBE5.7080904@khwilliamson.com
I believe this also fixes some other bugs regarding /i matching and 
Unicode properties, but RT has been down for a while, preventing me from 
finding out.

This patch is also the basis for a number of other bug fixes that should 
follow in short order.

The problem is that the existing algorithm is defective, not catching a 
number of possible matches, as explained in the commit messages and code 
comments.  This patch works by creating, at first need, a hash that 
quickly gives all the code points that fold to the one being examined. 
It then knows all the possibilities, and tries them, instead of giving 
up early.  The hash is created from the probably 
already-read-into-memory folding swash.

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