Calculates the number of Unicode code points between begin and end. @param begin the inclusive beginning index of the subsequence. @param end the exclusive end index of the subsequence. @return the number of Unicode code points in the subsequence. @throws IndexOutOfBoundsException if
(int begin, int end)
| 1279 | * @see Character |
| 1280 | * @see Character#codePointCount(char[], int, int) */ |
| 1281 | public int codePointCount (int begin, int end) { |
| 1282 | if (begin < 0 || end > size || begin > end) throw new IndexOutOfBoundsException(); |
| 1283 | return Character.codePointCount(items, begin, end - begin); |
| 1284 | } |
| 1285 | |
| 1286 | /** Returns the index that is offset {@code codePointOffset} code points from {@code index}. |
| 1287 | * @param index the index to calculate the offset from. |