8263677: Improve Character.isLowerCase/isUpperCase lookups #3028
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.
To checkout this PR locally:
To update a local copy of the PR:
The text was updated successfully, but these errors were encountered:
@cl4es This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 22 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
@cl4es Since your change was applied there have been 23 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit e152cc0.