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

Method codePointCount

lib/java/lang/String.java:1899–1905  ·  view source on GitHub ↗

Calculates the number of Unicode code points between beginIndex and endIndex. @param beginIndex the inclusive beginning index of the subsequence. @param endIndex the exclusive end index of the subsequence. @return the number of Unicode code points in the subseq

(int beginIndex, int endIndex)

Source from the content-addressed store, hash-verified

1897 * @since 1.5
1898 */
1899 public int codePointCount(int beginIndex, int endIndex) {
1900 if (beginIndex < 0 || endIndex > count || beginIndex > endIndex) {
1901 throw new IndexOutOfBoundsException();
1902 }
1903 int s = beginIndex + offset;
1904 return Character.codePointCount(value, s, endIndex - beginIndex);
1905 }
1906
1907 /**
1908 * Determines if this {@code String} contains the sequence of characters in

Callers

nothing calls this directly

Calls 1

codePointCountMethod · 0.95

Tested by

no test coverage detected