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

Method equalsLowerCaseAscii

core/src/main/java/io/questdb/std/Chars.java:394–410  ·  view source on GitHub ↗
(@NotNull CharSequence lLC, @NotNull CharSequence r, int rLo, int rHi)

Source from the content-addressed store, hash-verified

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) {

Callers 15

isNotNullableMethod · 0.95
getCommitModeMethod · 0.95
getSqlJitModeMethod · 0.95
onJsonEventMethod · 0.95
bindPropertiesMethod · 0.95
expectKeywordMethod · 0.95
compileCheckpointMethod · 0.95

Calls 3

toLowerCaseAsciiMethod · 0.95
lengthMethod · 0.65
charAtMethod · 0.45

Tested by 2

isNotNullableMethod · 0.76