1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| public char[] toCharArray() { return isLatin1() ? StringLatin1.toChars(value) : StringUTF16.toChars(value); }
public boolean equalsIgnoreCase(String anotherString) { return (this == anotherString) ? true : (anotherString != null) && (anotherString.length() == length()) && regionMatches(true, 0, anotherString, 0, length()); }
public boolean isEmpty() { return value.length == 0; }
public String substring(int start, int end) { checkRangeSIOOBE(start, end, count); if (isLatin1()) { return StringLatin1.newString(value, start, end - start); } return StringUTF16.newString(value, start, end - start); }
|