> 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 three 
additional commits since the last revision:

 - Split testcases for `StringBuilder.codePointCount`
 - Update year
 - Improve JavaDoc

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26461/files
  - new: https://git.openjdk.org/jdk/pull/26461/files/77583bdc..cabb3efe

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26461&range=17
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26461&range=16-17

  Stats: 31 lines in 3 files changed: 19 ins; 8 del; 4 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

Reply via email to