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