> 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:
Improve JavaDoc
Co-authored-by: Chen Liang <[email protected]>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26461/files
- new: https://git.openjdk.org/jdk/pull/26461/files/0e55e35c..4744ee69
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26461&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26461&range=02-03
Stats: 23 lines in 5 files changed: 0 ins; 11 del; 12 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