setText

fun setText(text: String?)

Set a new text string to be scanned. The current scan position is reset to [].