textUtf8PointForOffset function

TextUtf8Point textUtf8PointForOffset(
  1. TextDocument document,
  2. int offset
)

Converts a grapheme offset into a zero-based UTF-8 parser point.

Implementation

TextUtf8Point textUtf8PointForOffset(TextDocument document, int offset) =>
    TextUtf8CoordinateIndex(document).pointForOffset(offset);