| 392 | |
| 393 | // Left side has to be lower-case. |
| 394 | public static boolean equalsLowerCaseAscii(@NotNull CharSequence lLC, @NotNull CharSequence r, int rLo, int rHi) { |
| 395 | if (lLC == r) { |
| 396 | return true; |
| 397 | } |
| 398 | |
| 399 | int ll = lLC.length(); |
| 400 | if (ll != rHi - rLo) { |
| 401 | return false; |
| 402 | } |
| 403 | |
| 404 | for (int i = 0; i < ll; i++) { |
| 405 | if (lLC.charAt(i) != toLowerCaseAscii(r.charAt(i + rLo))) { |
| 406 | return false; |
| 407 | } |
| 408 | } |
| 409 | return true; |
| 410 | } |
| 411 | |
| 412 | public static boolean equalsLowerCaseAscii(@NotNull CharSequence l, int lLo, int lHi, @NotNull CharSequence r, int rLo, int rHi) { |
| 413 | if (l == r) { |