Replace "unpaired surrogates" with "isolated surrogate code units"

https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-3/#G1654
https://www.unicode.org/charts/PDF/UDC00.pdf
This commit is contained in:
Tatsunori Uchino 2026-01-27 20:29:56 +09:00 committed by GitHub
parent 9af51fc7d0
commit 471b430835
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -255,7 +255,7 @@ public interface CharSequence {
/**
* {@return the number of Unicode code points in this character sequence}
* Unpaired surrogates count as one code point each.
* Isolated surrogate code units count as one code point each.
*
* @since 27
*/

View File

@ -9979,7 +9979,7 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
/**
* {@return the number of Unicode code points in the {@code char} array}
* Unpaired surrogates count as one code point each.
* Isolated surrogate code units count as one code point each.
*
* @param seq the {@code char} array
* @throws NullPointerException if {@code seq} is null

View File

@ -1716,7 +1716,7 @@ public final class String
/**
* {@return the number of Unicode code points in this String}
* Unpaired surrogates count as one code point each.
* Isolated surrogate code units count as one code point each.
*
* @since 27
*/
@ -1730,7 +1730,7 @@ public final class String
/**
* Returns the index within this {@code String} that is
* offset from the given {@code index} by
* {@code codePointOffset} code points. Unpaired surrogates
* {@code codePointOffset} code points. Isolated surrogate code units
* within the text range given by {@code index} and
* {@code codePointOffset} count as one code point each.
*