MCPcopy Create free account
hub / github.com/ReadyTalk/avian / toUpperCase

Method toUpperCase

classpath/java/lang/String.java:270–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268 }
269
270 public String toUpperCase() {
271 for (int j = 0; j < length; ++j) {
272 char ch = charAt(j);
273 if (Character.toUpperCase(ch) != ch) {
274 char[] b = new char[length];
275 for (int i = 0; i < length; ++i) {
276 b[i] = Character.toUpperCase(charAt(i));
277 }
278 return new String(b, 0, length, false);
279 }
280 }
281 return this;
282 }
283
284 public int indexOf(int c) {
285 return indexOf(c, 0);

Callers 1

getBytesMethod · 0.45

Calls 2

charAtMethod · 0.95
toUpperCaseMethod · 0.95

Tested by

no test coverage detected