# MultiAutoCompleteTextView.CommaTokenizer

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# CommaTokenizer

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/widget/MultiAutoCompleteTextView.CommaTokenizer "View this page in Java")  

```
open class CommaTokenizer : MultiAutoCompleteTextView.Tokenizer
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                     ||
| ↳ | [android.widget.MultiAutoCompleteTextView.CommaTokenizer](https://developer.android.com/reference/kotlin/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                                                                   ||
|------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [CommaTokenizer](https://developer.android.com/reference/kotlin/android/widget/MultiAutoCompleteTextView.CommaTokenizer#CommaTokenizer())`()` <br /> |

|                                                                                                                                                                                                                                      Public methods                                                                                                                                                                                                                                       ||
|----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                     | [findTokenEnd](https://developer.android.com/reference/kotlin/android/widget/MultiAutoCompleteTextView.CommaTokenizer#findTokenEnd(kotlin.CharSequence,%20kotlin.Int))`(`text:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`, `cursor:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />     |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                     | [findTokenStart](https://developer.android.com/reference/kotlin/android/widget/MultiAutoCompleteTextView.CommaTokenizer#findTokenStart(kotlin.CharSequence,%20kotlin.Int))`(`text:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`, `cursor:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> |
| open[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)! | [terminateToken](https://developer.android.com/reference/kotlin/android/widget/MultiAutoCompleteTextView.CommaTokenizer#terminateToken(kotlin.CharSequence))`(`text:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`)` <br />                                                                                                       |

## Public constructors

### CommaTokenizer

```
CommaTokenizer()
```

## Public methods

### findTokenEnd

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun findTokenEnd(
    text: CharSequence!, 
    cursor: Int
): Int
```  

### findTokenStart

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

### terminateToken

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun terminateToken(text: CharSequence!): CharSequence!
```