Skip to content

Commit 0aafb67

Browse files
doc update - add spec tag
1 parent 057ea81 commit 0aafb67

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/java.base/share/classes/java/lang/String.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@
141141
* Case folding is locale-independent and language-neutral and may map a single code
142142
* point to multiple code points (1:M mappings). For example, the German sharp
143143
* s ({@code U+00DF}) is folded to the sequence {@code "ss"}.
144-
* Use these methods when you need Unicode-compliant caseless matching,
145-
* searching, or ordering.</li>
144+
* Use these methods when you need Unicode-compliant
145+
* <a href="https://www.unicode.org/versions/latest/core-spec/chapter-5/#G21790">
146+
* caseless matching</a>, searching, or ordering.</li>
146147
* </ul>
147148
*
148149
* <p>Unless otherwise noted, methods for comparing Strings do not take locale into
@@ -2253,6 +2254,7 @@ public boolean equalsIgnoreCase(String anotherString) {
22532254
* the same sequence of characters as this string under Unicode case
22542255
* folding; {@code false} otherwise.
22552256
*
2257+
* @spec https://www.unicode.org/versions/latest/core-spec/chapter-5/#G21790 Unicode Caseless Matching
22562258
* @see #compareToFoldCase(String)
22572259
* @see #equalsIgnoreCase(String)
22582260
* @since 26
@@ -2451,6 +2453,8 @@ public int compare(String s1, String s2) {
24512453
* @return a negative integer, zero, or a positive integer as the specified
24522454
* String is greater than, equal to, or less than this String,
24532455
* ignoring case considerations by case folding.
2456+
*
2457+
* @spec https://www.unicode.org/versions/latest/core-spec/chapter-5/#G21790 Unicode Caseless Matching
24542458
* @see java.text.Collator
24552459
* @see #compareToIgnoreCase(String)
24562460
* @see #equalsFoldCase(String)

0 commit comments

Comments
 (0)