dlangide.tools.d.deditortool

Members

Functions

byteOffsetToCaret
TextPosition byteOffsetToCaret(string content, int byteOffset)

convert byte offset in utf8 content to caret position

caretPositionToByteOffset
int caretPositionToByteOffset(string content, TextPosition caretPosition)

convert caret position to byte offset in utf8 content

Meta