public class Rfc822Tokenizer extends Object implements MultiAutoCompleteTextView.Tokenizer
Constructor and Description |
---|
Rfc822Tokenizer() |
Modifier and Type | Method and Description |
---|---|
int |
findTokenEnd(CharSequence text,
int cursor)
Returns the end of the token (minus trailing punctuation)
that begins at offset
cursor within text . |
int |
findTokenStart(CharSequence text,
int cursor)
Returns the start of the token that ends at offset
cursor within text . |
CharSequence |
terminateToken(CharSequence text)
Terminates the specified address with a comma and space.
|
static Rfc822Token[] |
tokenize(CharSequence text)
This method will try to take a string like
"Foo Bar (something) <foo\@google.com>,
blah\@google.com (something)"
and convert it into one or more Rfc822Tokens.
|
static void |
tokenize(CharSequence text,
Collection<Rfc822Token> out)
This constructor will try to take a string like
"Foo Bar (something) <foo\@google.com>,
blah\@google.com (something)"
and convert it into one or more Rfc822Tokens, output into the supplied
collection.
|
public static void tokenize(CharSequence text, Collection<Rfc822Token> out)
public static Rfc822Token[] tokenize(CharSequence text)
public int findTokenStart(CharSequence text, int cursor)
cursor
within text
.findTokenStart
in interface MultiAutoCompleteTextView.Tokenizer
public int findTokenEnd(CharSequence text, int cursor)
cursor
within text
.findTokenEnd
in interface MultiAutoCompleteTextView.Tokenizer
public CharSequence terminateToken(CharSequence text)
terminateToken
in interface MultiAutoCompleteTextView.Tokenizer