MCPcopy Index your code
hub / github.com/davidgiven/luje / substring

Method substring

lib/java/lang/String.java:1401–1409  ·  view source on GitHub ↗

Copies a range of characters into a new string. @param start the offset of the first character. @return a new string containing the characters from start to the end of the string. @throws IndexOutOfBoundsException if start < 0 or start > length().

(int start)

Source from the content-addressed store, hash-verified

1399 * if {@code start < 0} or {@code start > length()}.
1400 */
1401 public String substring(int start) {
1402 if (start == 0) {
1403 return this;
1404 }
1405 if (0 <= start && start <= count) {
1406 return new String(offset + start, count - start, value);
1407 }
1408 throw new StringIndexOutOfBoundsException(start);
1409 }
1410
1411 /**
1412 * Copies a range of characters into a new string.

Callers 15

subSequenceMethod · 0.95
properPathMethod · 0.95
parseURIMethod · 0.95
parseAuthorityMethod · 0.95
relativizeMethod · 0.95
decodeMethod · 0.45
appendMethod · 0.45
calculatePathMethod · 0.45
getNameMethod · 0.45
getParentMethod · 0.45
appendMethod · 0.45
validateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected