|
141 | 141 | * Case folding is locale-independent and language-neutral and may map a single code |
142 | 142 | * point to multiple code points (1:M mappings). For example, the German sharp |
143 | 143 | * 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> |
146 | 147 | * </ul> |
147 | 148 | * |
148 | 149 | * <p>Unless otherwise noted, methods for comparing Strings do not take locale into |
@@ -2253,6 +2254,7 @@ public boolean equalsIgnoreCase(String anotherString) { |
2253 | 2254 | * the same sequence of characters as this string under Unicode case |
2254 | 2255 | * folding; {@code false} otherwise. |
2255 | 2256 | * |
| 2257 | + * @spec https://www.unicode.org/versions/latest/core-spec/chapter-5/#G21790 Unicode Caseless Matching |
2256 | 2258 | * @see #compareToFoldCase(String) |
2257 | 2259 | * @see #equalsIgnoreCase(String) |
2258 | 2260 | * @since 26 |
@@ -2451,6 +2453,8 @@ public int compare(String s1, String s2) { |
2451 | 2453 | * @return a negative integer, zero, or a positive integer as the specified |
2452 | 2454 | * String is greater than, equal to, or less than this String, |
2453 | 2455 | * ignoring case considerations by case folding. |
| 2456 | + * |
| 2457 | + * @spec https://www.unicode.org/versions/latest/core-spec/chapter-5/#G21790 Unicode Caseless Matching |
2454 | 2458 | * @see java.text.Collator |
2455 | 2459 | * @see #compareToIgnoreCase(String) |
2456 | 2460 | * @see #equalsFoldCase(String) |
|
0 commit comments