> Adds `codePointCount()` overloads to `String`, `Character`,
> `(Abstract)StringBuilder`, and `StringBuffer` to make it possible to
> conveniently retrieve the length of a string as code points without extra
> boundary checks.
>
>
> if (superTremendouslyLongExpressionYieldingAString().codePointCount() >
> limit) {
> throw new Exception("exceeding length");
> }
>
>
> Is a CSR required to this change?
Tatsunori Uchino has updated the pull request incrementally with one additional
commit since the last revision:
Fix out of bounds defect
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26461/files
- new: https://git.openjdk.org/jdk/pull/26461/files/e7d33b94..13f7721f
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26461&range=23
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26461&range=22-23
Stats: 12 lines in 2 files changed: 6 ins; 0 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/26461.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26461/head:pull/26461
PR: https://git.openjdk.org/jdk/pull/26461