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

Method codePointBefore

lib/java/lang/String.java:1875–1881  ·  view source on GitHub ↗

Retrieves the Unicode code point value that precedes the specified index. @param index the index to the char code unit within this string. @return the Unicode code point value. @throws IndexOutOfBoundsException if index is less than 1 or greater than

(int index)

Source from the content-addressed store, hash-verified

1873 * @since 1.5
1874 */
1875 public int codePointBefore(int index) {
1876 if (index < 1 || index > count) {
1877 throw new IndexOutOfBoundsException();
1878 }
1879 int s = index + offset;
1880 return Character.codePointBefore(value, s);
1881 }
1882
1883 /**
1884 * Calculates the number of Unicode code points between {@code beginIndex}

Callers

nothing calls this directly

Calls 1

codePointBeforeMethod · 0.95

Tested by

no test coverage detected