(int index)
| 499 | } |
| 500 | |
| 501 | @Override |
| 502 | public char charAt(int index) { |
| 503 | if (index < 0 || index > length) { |
| 504 | throw new StringIndexOutOfBoundsException(index); |
| 505 | } |
| 506 | |
| 507 | if (data instanceof char[]) { |
| 508 | return ((char[]) data)[index + offset]; |
| 509 | } else { |
| 510 | return (char) ((byte[]) data)[index + offset]; |
| 511 | } |
| 512 | } |
| 513 | |
| 514 | public String[] split(String regex) { |
| 515 | return split(regex, 0); |
no outgoing calls
no test coverage detected