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

Method charAt

lib/java/lang/String.java:542–547  ·  view source on GitHub ↗

Returns the character at the specified offset in this string. @param index the zero-based index in this string. @return the character at the index. @throws IndexOutOfBoundsException if index < 0 or index >= length().

(int index)

Source from the content-addressed store, hash-verified

540 * if {@code index < 0} or {@code index >= length()}.
541 */
542 public char charAt(int index) {
543 if (0 <= index && index < count) {
544 return value[offset + index];
545 }
546 throw new StringIndexOutOfBoundsException();
547 }
548
549 // Optimized for ASCII
550 private char compareValue(char ch) {

Callers 4

encodeURLMethod · 0.95
properPathMethod · 0.95
getAbsoluteNameMethod · 0.95
isValidDomainNameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected