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)
| 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} |
nothing calls this directly
no test coverage detected