Tokenizer
interface Tokenizer
android.widget.MultiAutoCompleteTextView.Tokenizer |
Summary
Public methods | |
---|---|
abstract Int |
findTokenEnd(text: CharSequence!, cursor: Int) Returns the end of the token (minus trailing punctuation) that begins at offset |
abstract Int |
findTokenStart(text: CharSequence!, cursor: Int) Returns the start of the token that ends at offset |
abstract CharSequence! |
terminateToken(text: CharSequence!) Returns |
Public methods
findTokenEnd
abstract fun findTokenEnd(
text: CharSequence!,
cursor: Int
): Int
Returns the end of the token (minus trailing punctuation) that begins at offset cursor
within text
.
findTokenStart
abstract fun findTokenStart(
text: CharSequence!,
cursor: Int
): Int
Returns the start of the token that ends at offset cursor
within text
.
terminateToken
abstract fun terminateToken(text: CharSequence!): CharSequence!
Returns text
, modified, if necessary, to ensure that it ends with a token terminator (for example a space or comma).