textOffsetForUtf8Point function
Converts a UTF-8 parser point into a grapheme offset.
Implementation
int textOffsetForUtf8Point(TextDocument document, TextUtf8Point point) =>
TextUtf8CoordinateIndex(document).offsetForPoint(point);
Converts a UTF-8 parser point into a grapheme offset.
int textOffsetForUtf8Point(TextDocument document, TextUtf8Point point) =>
TextUtf8CoordinateIndex(document).offsetForPoint(point);