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

Method toLowerCase

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

Source from the content-addressed store, hash-verified

559
560 // Optimized for ASCII
561 private char toLowerCase(char ch) {
562 if (ch < 128) {
563 if ('A' <= ch && ch <= 'Z') {
564 return (char) (ch + ('a' - 'A'));
565 }
566 return ch;
567 }
568 return Character.toLowerCase(ch);
569 }
570
571 // Optimized for ASCII
572 private char toUpperCase(char ch) {

Callers 2

equalsIgnoreCaseMethod · 0.95
regionMatchesMethod · 0.95

Calls 3

toLowerCaseMethod · 0.95
getDefaultMethod · 0.95
toLowerCaseMethod · 0.95

Tested by

no test coverage detected