RFR: 8365675: Add String Unicode Case-Folding Support [v7]
Xueming Shen
sherman at openjdk.org
Wed Nov 12 01:40:11 UTC 2025
On Fri, 7 Nov 2025 22:11:30 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Xueming Shen has updated the pull request incrementally with one additional commit since the last revision:
>>
>> update to use value long for folding
>
> src/java.base/share/classes/jdk/internal/lang/CaseFolding.java.template line 152:
>
>> 150: }
>> 151: }
>> 152: }
>
> If expanded_case_cps was sorted, Array.binarySearch could be used to find the index of the first character in the range.
> And the loop could break when cp reaches the end of the range.
This is the existing implementation. I will leave it to the next round when we are back to the regex.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27628#discussion_r2516389642
More information about the build-dev
mailing list