TextUtils

public class TextUtils extends Object

Nested Class Summary

class TextUtils.SimpleStringSplitter A simple string splitter. 
interface TextUtils.StringSplitter An interface for splitting strings according to rules that are opaque to the user of this interface. 
enum TextUtils.TruncateAt  

Constant Summary

int CAP_MODE_CHARACTERS Capitalization mode for getCapsMode(CharSequence, int, int): capitalize all characters.
int CAP_MODE_SENTENCES Capitalization mode for getCapsMode(CharSequence, int, int): capitalize the first character of each sentence.
int CAP_MODE_WORDS Capitalization mode for getCapsMode(CharSequence, int, int): capitalize the first character of all words.

Public Method Summary

static CharSequence
concat(CharSequence... text)
Returns a CharSequence concatenating the specified CharSequences, retaining their spans if any.
static 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.
static void
dumpSpans(CharSequence cs, Printer printer, String prefix)
Debugging tool to print the spans in a CharSequence.
static boolean
equals(CharSequence a, CharSequence b)
Returns true if a and b are equal, including if they are both null.
static