FAQ
Attached are the commits for review for fixing the code and tests for
this. I'll now start working on the doc patches.

Search Discussions

  • Tom Christiansen at May 3, 2011 at 9:19 pm
    + /* We have decided to not allow multi-char folds in inverted character
    + * classes, due to the confusion that can happen, even with classes
    + * that are designed for a non-Unicode world: You have the peculiar
    + * case that:
    + "s s" =~ /^[^\xDF]+$/i => Y
    + "ss" =~ /^[^\xDF]+$/i => N
    + *
    + * See [perl #89750] */

    That's a very good observations, although I might have said not

    "even with classes designed for a non-Unicode world"

    but rather

    "especially with classes designed for a non-Unicode world"

    Because I don't believe that charclasses in a non-Unicode world
    *ever* had multichar folds -- did they?

    Someday we will have a way for "." to match "\X" -- which is trivial,
    of course -- but also for charclasses to match more than a single
    code point, or for things to match virtual graphemes that because of
    k-decomps might be several of them, etc. It won't be so surprising then.

    --tom
  • Karl Williamson at May 3, 2011 at 10:43 pm

    On 05/03/2011 03:19 PM, Tom Christiansen wrote:
    + /* We have decided to not allow multi-char folds in inverted character
    + * classes, due to the confusion that can happen, even with classes
    + * that are designed for a non-Unicode world: You have the peculiar
    + * case that:
    + "s s" =~ /^[^\xDF]+$/i => Y
    + "ss" =~ /^[^\xDF]+$/i => N
    + *
    + * See [perl #89750] */

    That's a very good observations,
    Stolen from George Greer
    although I might have said not

    "even with classes designed for a non-Unicode world"

    but rather

    "especially with classes designed for a non-Unicode world"
    I'll change the wording in 5.15
    Because I don't believe that charclasses in a non-Unicode world
    *ever* had multichar folds -- did they?
    I don't think so.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-porters @
categoriesperl
postedMay 3, '11 at 5:55p
activeMay 3, '11 at 10:43p
posts3
users2
websiteperl.org

People

Translate

site design / logo © 2021 Grokbase