TextBuffer lines iterators
- From: Ondrej Tuma <konference webjet cz>
- To: gtkmm-list gnome org
- Subject: TextBuffer lines iterators
- Date: Fri, 06 Jul 2007 12:21:31 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
i need read each lines from TextView, so it seams that easiest way to do
it is via get_text(get_iter_at_line(n),get_iter_at_line(n+1)) or
get_text(get_iter_at_line(n),end()) if is the last line.
End the question for a million is, there are some chars which represent
end of line (line separators), are there always '\r\n' from human input
on all platform (win32 or linux)? So can i cut this two bytes from end
of line ? How i write this, i think that it's better to use some
function from glib like g_strchomp.
But is there someone better solution how read each lines from
TextBuffer(TextView)?
thanks for a answers
- --
Ondrej Tuma
Unix-like system is the best operation system from the top of the world.
I'm lucky BSD and linux user. :) Use unix-like, be free. :)
www.blackmouse.biz www.radioakropolis.cz hash.webjet.cz
ICQ: 107760454 JABBER: mcbig jabber cz MSN: ondra tu atlas cz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGjherBmNIPxOnb/IRAqrRAKDEUd5GEsIKasuRJbxFKkhknhoX/gCgoury
saFvO/5i7MOE9EDDR1DxWA4=
=HHY1
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]