lineStartOffset

fun lineStartOffset(index: Int): Int

Returns the cumulative UTF-16 start offset for logical line index.

Return

inclusive line start offset.

Parameters

index

zero-based logical line index.