MCPcopy Create free account
hub / github.com/questdb/questdb / equalsCharsIgnoreCase

Method equalsCharsIgnoreCase

core/src/main/java/io/questdb/std/Chars.java:1606–1613  ·  view source on GitHub ↗
(@NotNull CharSequence l, @NotNull CharSequence r, int len)

Source from the content-addressed store, hash-verified

1604 }
1605
1606 private static boolean equalsCharsIgnoreCase(@NotNull CharSequence l, @NotNull CharSequence r, int len) {
1607 for (int i = 0; i < len; i++) {
1608 if (Character.toLowerCase(l.charAt(i)) != Character.toLowerCase(r.charAt(i))) {
1609 return false;
1610 }
1611 }
1612 return true;
1613 }
1614
1615 private static boolean equalsCharsIgnoreCase(@NotNull CharSequence l, @NotNull CharSequence r, int len, int rLo, int rHi) {
1616 assert len == (rHi - rLo);

Callers 1

equalsIgnoreCaseMethod · 0.95

Calls 2

toLowerCaseMethod · 0.80
charAtMethod · 0.45

Tested by

no test coverage detected