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

Method equalsIgnoreCase

core/src/main/java/io/questdb/std/Chars.java:317–328  ·  view source on GitHub ↗

Case-insensitive comparison of two char sequences. @param l left sequence @param r right sequence @return true if sequences match exactly (ignoring char case)

(@NotNull CharSequence l, @NotNull CharSequence r)

Source from the content-addressed store, hash-verified

315 * @return true if sequences match exactly (ignoring char case)
316 */
317 public static boolean equalsIgnoreCase(@NotNull CharSequence l, @NotNull CharSequence r) {
318 if (l == r) {
319 return true;
320 }
321
322 int ll = l.length();
323 if (ll != r.length()) {
324 return false;
325 }
326
327 return equalsCharsIgnoreCase(l, r, ll);
328 }
329
330 /**
331 * Case-insensitive comparison of two char sequences, with subsequence over second.

Callers 15

onEventMethod · 0.95
onEventMethod · 0.95
getScheduleMethod · 0.95
prepareTableMethod · 0.95
getColumnIndexMethod · 0.95
getDenseSymbolIndexMethod · 0.95
matchesModelAliasMethod · 0.95

Calls 2

equalsCharsIgnoreCaseMethod · 0.95
lengthMethod · 0.65

Tested by 10

onEventMethod · 0.76
onEventMethod · 0.76
getScheduleMethod · 0.76
getHeaderMethod · 0.64
setHeaderMethod · 0.64
getHeaderMethod · 0.64
setHeaderMethod · 0.64
getHeaderMethod · 0.64
setHeaderMethod · 0.64