RFR: 8364007: Add no-argument codePointCount method to CharSequence and String [v16]
Tatsunori Uchino
duke at openjdk.org
Sat Jan 31 13:34:52 UTC 2026
On Sat, 31 Jan 2026 08:46:52 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Tatsunori Uchino has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add `codePointCount` for `CharBuffer`
>
> src/java.base/share/classes/java/nio/X-Buffer.java.template line 2062:
>
>> 2060: /**
>> 2061: * {@return the number of Unicode code points in this character sequence}
>> 2062: * Isolated surrogate code units count as one code point each.
>
> I agree the override needs to be specified but it will need to be specified to count the code points between the position (inclusive) and the limit (exclusive).
JavaDoc updated
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26461#discussion_r2749563799
More information about the core-libs-dev
mailing list