toTextRange

fun Selection.toTextRange(text: String): TextRange