<i18n dev> Integrated: 8263677: Improve Character.isLowerCase/isUpperCase lookups
redestad at openjdk.java.net
Wed Mar 17 15:25:50 UTC 2021
On Tue, 16 Mar 2021 12:51:02 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
This pull request has now been integrated.
Author: Claes Redestad <redestad at openjdk.org>
Stats: 283 lines in 8 files changed: 15 ins; 137 del; 131 mod
8263677: Improve Character.isLowerCase/isUpperCase lookups
Reviewed-by: erikj, ihse, naoto, rriggs
More information about the i18n-dev