<i18n dev> RFR: 8364007: Add no-argument codePointCount method to CharSequence and String [v3]

Alan Bateman alanb at openjdk.org
Mon Jul 28 09:19:05 UTC 2025


On Sun, 27 Jul 2025 23:05:25 GMT, Tatsunori Uchino <duke at openjdk.org> wrote:

> > Right now your PR is proposing to add a default method named codePointCount to CharSequence.
> 
> If it should be excluded for this time, I will push an additional commit to _remove_ it from the content in this PR.

I think we should mull over the addition of CharSequence::codePointCount. On the surface it looks like it fits but we can't rush it (CharSequence is widely implemented and additions to this interface have a history of disruption in the eco system).

What is the reason for proposing Character.codePointCount(CharSequence) aswell?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/26461#issuecomment-3126308040


More information about the i18n-dev mailing list