public static class MultiAutoCompleteTextView.CommaTokenizer extends Object implements MultiAutoCompleteTextView.Tokenizer
Constructor and Description |
---|
MultiAutoCompleteTextView.CommaTokenizer() |
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)
Returns
text , modified, if necessary, to ensure that
it ends with a token terminator (for example a space or comma). |
public MultiAutoCompleteTextView.CommaTokenizer()
public int findTokenStart(CharSequence text, int cursor)
MultiAutoCompleteTextView.Tokenizer
cursor
within text
.findTokenStart
in interface MultiAutoCompleteTextView.Tokenizer
public int findTokenEnd(CharSequence text, int cursor)
MultiAutoCompleteTextView.Tokenizer
cursor
within text
.findTokenEnd
in interface MultiAutoCompleteTextView.Tokenizer
public CharSequence terminateToken(CharSequence text)
MultiAutoCompleteTextView.Tokenizer
text
, modified, if necessary, to ensure that
it ends with a token terminator (for example a space or comma).terminateToken
in interface MultiAutoCompleteTextView.Tokenizer