query

fun query(input: CharSequence, index: Int): Pair<Int, T>?

Returns the length of the matching string, or -1 if not found