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

Method offsetByCodePoints

lib/java/lang/String.java:1936–1941  ·  view source on GitHub ↗

Returns the index within this object that is offset from index by codePointOffset code points. @param index the index within this object to calculate the offset from. @param codePointOffset the number of code points to count. @return the index within this objec

(int index, int codePointOffset)

Source from the content-addressed store, hash-verified

1934 * @since 1.5
1935 */
1936 public int offsetByCodePoints(int index, int codePointOffset) {
1937 int s = index + offset;
1938 int r = Character.offsetByCodePoints(value, offset, count, s,
1939 codePointOffset);
1940 return r - offset;
1941 }
1942
1943 /**
1944 * Returns a formatted string, using the supplied format and arguments,

Callers

nothing calls this directly

Calls 1

offsetByCodePointsMethod · 0.95

Tested by

no test coverage detected