get_line_index


Description:

public int get_line_index ()

Returns the byte index of the iterator, counting from the start of a newline-terminated line.

Remember that `GtkTextBuffer` encodes text in UTF-8, and that characters can require a variable number of bytes to represent.

Parameters:

this

an iterator

Returns:

distance from start of line, in bytes




2022 vala-language.org