TextBuffer.getIterAtLineIndex

Obtains an iterator pointing to byte_index within the given line. byte_index must be the start of a UTF-8 character, and must not be beyond the end of the line. Note bytes, not characters; UTF-8 may encode one character as multiple bytes.

class TextBuffer
void
getIterAtLineIndex

Parameters

iter TextIter

iterator to initialize. out

lineNumber int

line number counting from 0

byteIndex int

byte index from start of line

Meta