Added in API level 1

CommaTokenizer


open class CommaTokenizer : MultiAutoCompleteTextView.Tokenizer
kotlin.Any
   ↳ android.widget.MultiAutoCompleteTextView.CommaTokenizer

This simple Tokenizer can be used for lists where the items are separated by a comma and one or more spaces.

Summary

Public constructors

Public methods
open Int
findTokenEnd(text: CharSequence!, cursor: Int)

Returns the end of the token (minus trailing punctuation) that begins at offset cursor within text.

open Int
findTokenStart(text: CharSequence!, cursor: Int)

Returns the start of the token that ends at offset cursor within text.

open CharSequence!

Returns text, modified, if necessary, to ensure that it ends with a token terminator (for example a space or comma).

Public constructors

CommaTokenizer

CommaTokenizer()

Public methods

findTokenEnd

Added in API level 1
open fun findTokenEnd(
    text: CharSequence!,
    cursor: Int
): Int

Returns the end of the token (minus trailing punctuation) that begins at offset cursor within text.

findTokenStart

Added in API level 1
open fun findTokenStart(
    text: CharSequence!,
    cursor: Int
): Int

Returns the start of the token that ends at offset cursor within text.

terminateToken

Added in API level 1
open 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).