ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 6日 (木) 10:05:45 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 a single spot (a point) in a text buffer or to define an interval of text in a text buffer. They are transient or ephemeral in nature, because they become 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 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 a single spot (a point) in a text buffer or to define an interval or a contiguous block of text in a text buffer. They are transient or ephemeral in nature, because they become 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