harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: [classlib][luni] String.toLowerCase/toUpperCase incorrect for supplementary characters (HARMONY-6649)
Date Fri, 24 Sep 2010 04:28:56 GMT
On Fri, Sep 24, 2010 at 12:10 AM, Tim Ellison <t.p.ellison@gmail.com> wrote:
>
> Thanks.  Seems strange since it could obviously produce some 'unusual'
> results.  In this case, computing a hashCode, it likely doesn't matter
> if the result is a bogus string.
>
>
Do you have an example where the result would be unusual for a filename?

In this case the Unicode standard gives a nice background (in fact,
filenames are given as the example): see Unicode 5.18, caseless matching:
http://www.unicode.org/versions/Unicode5.2.0/ch05.pdf

side note: toLowerCase(ENGLISH) isn't exactly the case folding algorithm
they describe, thats UCharacter.foldCase(String, ...). But its close and the
idea is the same.

-- 
Robert Muir
rcmuir@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message