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

Method toLowerCaseAscii

core/src/main/java/io/questdb/std/Chars.java:1314–1328  ·  view source on GitHub ↗
(@Nullable CharSequence value)

Source from the content-addressed store, hash-verified

1312 }
1313
1314 public static String toLowerCaseAscii(@Nullable CharSequence value) {
1315 if (value == null) {
1316 return null;
1317 }
1318 final int len = value.length();
1319 if (len == 0) {
1320 return "";
1321 }
1322
1323 final Utf16Sink b = Misc.getThreadLocalSink();
1324 for (int i = 0; i < len; i++) {
1325 b.put(toLowerCaseAscii(value.charAt(i)));
1326 }
1327 return b.toString();
1328 }
1329
1330 public static char toLowerCaseAscii(char character) {
1331 return character > 64 && character < 91 ? (char) (character + 32) : character;

Callers 13

parseExprMethod · 0.95
toPlanMethod · 0.95
toPlanMethod · 0.95
equalsLowerCaseAsciiMethod · 0.95
putAtMethod · 0.95
putIfAbsentMethod · 0.95
putAtMethod · 0.95
putIfAbsentMethod · 0.95
addAtMethod · 0.95
putAtMethod · 0.95
putIfAbsentMethod · 0.95

Calls 5

getThreadLocalSinkMethod · 0.95
putMethod · 0.95
lengthMethod · 0.65
toStringMethod · 0.65
charAtMethod · 0.45

Tested by

no test coverage detected