ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 4日 (火) 04:38:56 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-itrsmrks ------------------------- @@ -7,7 +7,7 @@ :Text Iterators - Text iterators represent a position between two characters in a text buffer. If I borrow the terminology from geometry, we can say that text iterators are used to define an interval of text in a text buffer. They are transient or ephemeral in nature, because they are meant to be used immediately after their initialization and became invalid as soon as the text buffer is edited. Iterators are better than offset or byte index into a buffer, because they are guarantied to point at the beginning of an UTF-8 character, which may be a string of multiple bytes. + Text iterators represent a position between two characters in a text buffer. If I borrow the terminology from geometry, we can say that text iterators are used to define an interval of text in a text buffer. They are transient or ephemeral in nature, because they became invalid as soon as the text buffer is edited i.e. when text is inserted or deleted in the buffer. Iterators are better than offset or byte index into a buffer, because they are guarantied to point at the beginning of an UTF-8 character, which may be a string of multiple bytes. :Text Marks