Method | Description |
int codePointAt(int index) | Returns the character (Unicode code point) at the specified index. |
int codePointBefore(int index) | Returns the character (Unicode code point) before the specified index. |
int codePointCount(int beginIndex, int endIndex) | Returns the number of Unicode code points in the specified text range of this sequence. |
int indexOf(String str) | Returns the index within this string of the first occurrence of the specified substring. |
int indexOf(String str, int fromIndex) | Returns the index within this string of the first occurrence of the specified substring, starting at the specified index. |
int lastIndexOf(String str) | Returns the index within this string of the rightmost occurrence of the specified substring. |
int lastIndexOf(String str, int fromIndex) | Returns the index within this string of the last occurrence of the specified substring. |
int offsetByCodePoints(int index, int codePointOffset) | Returns the index within this sequence that is offset from the given index by codePointOffset code points. |
StringBuffer replace(int start, int end, String str) | Replaces the characters in a substring of this sequence with characters in the specified String . |
StringBuffer reverse() | Causes this character sequence to be replaced by the reverse of the sequence. |
CharSequence subSequence(int start, int end) | Returns a new character sequence that is a subsequence of this sequence. |
String toString() | Returns a string representing the data in this sequence. |
void trimToSize() | Attempts to reduce storage used for the character sequence. |