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

Method toUpperCase

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

Source from the content-addressed store, hash-verified

570
571 // Optimized for ASCII
572 private char toUpperCase(char ch) {
573 if (ch < 128) {
574 if ('a' <= ch && ch <= 'z') {
575 return (char) (ch - ('a' - 'A'));
576 }
577 return ch;
578 }
579 return Character.toUpperCase(ch);
580 }
581
582 /**
583 * Compares the specified string to this string using the Unicode values of

Callers 2

equalsIgnoreCaseMethod · 0.95
regionMatchesMethod · 0.95

Calls 1

toUpperCaseMethod · 0.95

Tested by

no test coverage detected