Fwd: Re: Why GtkTextIter doesn't provide a function to return its byte index? How to retrieve it?

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

 



On 11 August 2011 12:30, Gang Chen <gang.chen.cn@xxxxxxxxx> wrote:
> g_utf8_offset_to_pointer scans the buffer. Too expensive. This is why
> I ask why the text iterator doesn't cache the byte index.

I guess since a gtk_text_buffer is a b-tree of lines the byte offset
from the beginning is not very useful.  The iterator never needs the
byte offset, so it never has it to cache.

Cheers
Lex
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux