byteOffsetToCaret

convert byte offset in utf8 content to caret position

TextPosition
byteOffsetToCaret
(
string content
,
)

Meta