Javadoc and comment

This commit is contained in:
Gary Gregory 2024-09-15 15:45:19 -04:00
parent a9bb7e90fa
commit 425a0c3eae
1 changed files with 2 additions and 1 deletions

View File

@ -290,6 +290,7 @@ public class CharSequenceUtils {
* @param start the index to start on the {@code substring} CharSequence
* @param length character length of the region
* @return whether the region matched
* @see String#regionMatches(boolean, int, String, int, int)
*/
static boolean regionMatches(final CharSequence cs, final boolean ignoreCase, final int thisStart,
final CharSequence substring, final int start, final int length) {
@ -326,7 +327,7 @@ public class CharSequenceUtils {
return false;
}
// The real same check as in String.regionMatches():
// The real same check as in String#regionMatches(boolean, int, String, int, int):
final char u1 = Character.toUpperCase(c1);
final char u2 = Character.toUpperCase(c2);
if (u1 != u2 && Character.toLowerCase(u1) != Character.toLowerCase(u2)) {