MCPcopy Create free account
hub / github.com/davidgiven/luje / compareValue

Method compareValue

lib/java/lang/String.java:550–558  ·  view source on GitHub ↗
(char ch)

Source from the content-addressed store, hash-verified

548
549 // Optimized for ASCII
550 private char compareValue(char ch) {
551 if (ch < 128) {
552 if ('A' <= ch && ch <= 'Z') {
553 return (char) (ch + ('a' - 'A'));
554 }
555 return ch;
556 }
557 return Character.toLowerCase(Character.toUpperCase(ch));
558 }
559
560 // Optimized for ASCII
561 private char toLowerCase(char ch) {

Callers 1

compareToIgnoreCaseMethod · 0.95

Calls 2

toLowerCaseMethod · 0.95
toUpperCaseMethod · 0.95

Tested by

no test coverage detected