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

Method lowerCaseAsciiHashCode

core/src/main/java/io/questdb/std/Chars.java:1116–1126  ·  view source on GitHub ↗
(CharSequence value, int lo, int hi)

Source from the content-addressed store, hash-verified

1114 }
1115
1116 public static int lowerCaseAsciiHashCode(CharSequence value, int lo, int hi) {
1117 if (hi == lo) {
1118 return 0;
1119 }
1120
1121 int h = 0;
1122 for (int p = lo; p < hi; p++) {
1123 h = 31 * h + toLowerCaseAscii(value.charAt(p));
1124 }
1125 return h;
1126 }
1127
1128 public static int lowerCaseAsciiHashCode(CharSequence value) {
1129 int len = value.length();

Callers 2

keyIndexMethod · 0.95
removeAtMethod · 0.95

Calls 3

toLowerCaseAsciiMethod · 0.95
lengthMethod · 0.65
charAtMethod · 0.45

Tested by

no test coverage detected