caretPositionToByteOffset

convert caret position to byte offset in utf8 content

int
caretPositionToByteOffset
(
string content
,
TextPosition caretPosition
)

Meta