Example usage for Java android.text TextUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
Parcelable.Creator | CHAR_SEQUENCE_CREATOR |
int | CAP_MODE_CHARACTERS Capitalization mode for #getCapsMode : capitalize all characters. |
int | CAP_MODE_WORDS Capitalization mode for #getCapsMode : capitalize the first character of all words. |
int | CAP_MODE_SENTENCES Capitalization mode for #getCapsMode : capitalize the first character of each sentence. |
CharSequence | concat(CharSequence... text) Returns a CharSequence concatenating the specified CharSequences, retaining their spans if any. |
void | copySpansFrom(Spanned source, int start, int end, Class kind, Spannable dest, int destoff) Copies the spans from the region start...end in source to the region destoff...destoff+end-start in dest . |
CharSequence | ellipsize(CharSequence text, TextPaint p, float avail, TruncateAt where) Returns the original text if it fits in the specified width given the properties of the specified Paint, or, if it does not fit, a truncated copy with ellipsis character added at the specified edge or center. |
boolean | equals(CharSequence a, CharSequence b) Returns true if a and b are equal, including if they are both null. |
CharSequence | expandTemplate(CharSequence template, CharSequence... values) Replace instances of "^1", "^2", etc. |
void | getChars(CharSequence s, int start, int end, char[] dest, int destoff) |
int | getLayoutDirectionFromLocale(Locale locale) Return the layout direction for a given Locale |
int | getTrimmedLength(CharSequence s) Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim . |
String | htmlEncode(String s) Html-encode the string. |
int | indexOf(CharSequence s, char ch) |
int | indexOf(CharSequence s, CharSequence needle) |
int | indexOf(CharSequence s, char ch, int start, int end) |
int | indexOf(CharSequence s, CharSequence needle, int start, int end) |
boolean | isDigitsOnly(CharSequence str) Returns whether the given CharSequence contains only digits. |
boolean | isEmpty(@Nullable CharSequence str) Returns true if the string is null or 0-length. |
boolean | isGraphic(CharSequence str) Returns whether the given CharSequence contains any printable characters. |
boolean | isGraphic(char c) Returns whether this character is a printable character. |
boolean | isPrintableAsciiOnly(final CharSequence str) |
String | join(@NonNull CharSequence delimiter, @NonNull Object[] tokens) Returns a string containing the tokens joined by delimiters. |
String | join(@NonNull CharSequence delimiter, @NonNull Iterable tokens) Returns a string containing the tokens joined by delimiters. |
int | lastIndexOf(CharSequence s, char ch) |
boolean | regionMatches(CharSequence one, int toffset, CharSequence two, int ooffset, int len) |
CharSequence | replace(CharSequence template, String[] sources, CharSequence[] destinations) Return a new CharSequence in which each of the source strings is replaced by the corresponding element of the destinations. |
String[] | split(String text, String expression) This method yields the same result as text.split(expression, -1) except that if text.isEmpty() then this method returns an empty array whereas "".split(expression, -1) would have returned an array with a single "" . |
String[] | split(String text, Pattern pattern) Splits a string on a pattern. |
CharSequence | stringOrSpannedString(CharSequence source) |
String | substring(CharSequence source, int start, int end) Create a new String object containing the given range of characters from the source string. |
void | writeToParcel(CharSequence cs, Parcel p, int parcelableFlags) Flatten a CharSequence and whatever styles can be copied across processes into the parcel. |