<i18n dev> RFR: 8263677: Improve Character.isLowerCase/isUpperCase lookups [v2]

Roger Riggs rriggs at openjdk.java.net
Wed Mar 17 13:53:54 UTC 2021

On Tue, 16 Mar 2021 21:02:28 GMT, Claes Redestad <redestad at openjdk.org> wrote:

>> This patch changes the otherLowercase / otherUppercase bits to be set if either the codepoint is of type LOWERCASE_LETTER and UPPERCASE_LETTER, or the Unicode Other_Lowercase / Other_Uppercase property is set. This simplifies the lookup in Character.isLowerCase/isUpperCase to a single table lookup, which appears to be healthy for performance.
>> I also took the opportunity to clean up the somewhat dated GenerateCharacter utility class.
>> Testing: tier1-3
> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
>   Roger review + additional cleanups

Marked as reviewed by rriggs (Reviewer).


PR: https://git.openjdk.java.net/jdk/pull/3028

More information about the i18n-dev mailing list