String.lastIndexOf confused by unpaired trailing surrogate

Ulf Zibis Ulf.Zibis at gmx.de
Tue Mar 23 16:11:48 UTC 2010


Am 22.03.2010 23:36, schrieb Martin Buchholz:
> Masayoshi,
>
> Ulf and I are working on a few changes to supplementary character handling.
> Character.isSurrogate has already gone in.
>
> The following are in the pipeline:
>
> 6934268: Better implementation of Character.isValidCodePoint
> http://cr.openjdk.java.net/~martin/webrevs/openjdk7/isValidCodePoint
> 6934265: Add public method Character.isBMPCodePoint
> http://cr.openjdk.java.net/~martin/webrevs/openjdk7/public-isBMPCodePoint
> [mq]: isBMPCodePoint2
> http://cr.openjdk.java.net/~martin/webrevs/openjdk7/isBMPCodePoint2
> 6937112: String.lastIndexOf confused by unpaired trailing surrogate
> http://cr.openjdk.java.net/~martin/webrevs/openjdk7/lastIndexOf
>
> In addition, Ulf and I would like to add
> char Character.highSurrogate(int codePoint)
> char Character.lowSurrogate(int codePoint)
>
> Ulf,
> please provide me with your latest patch for Character.highSurrogate
> and I will add it to the pipeline.

Here it is.

I couldn't resist from some beautifying, and purging of 
sun.nio.cs.Surrogate.
Feel free to ignore it.

-Ulf

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Character_highLowSurrogate
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20100323/a59d9704/Character_highLowSurrogate.ksh>


More information about the core-libs-dev mailing list