Re: TextView and position of the text cursor



get_line_index() : get the number of character before the cursor in the
current line
Just to clarify: get_line_offset() returns the number of characters. get_line_index() returns the number of bytes in the line. They may differ when the line contains non-ASCII characters.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]