[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-txtw-itrsmrks

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 9月 15日 (土) 08:33:19 JST


-------------------------
REMOTE_ADDR = 184.145.80.187
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-itrsmrks
-------------------------
@@ -17,8 +17,8 @@
          Gets the iter with the current position at mark.
          * mark: a Gtk::TextMark in buffer 
          * Returns: a Gtk::TextIter
-    {{br}}
 
+{{br}}
 
 Sometimes you would like to refer to a position within a text buffer by means of index and offset, which in the early days of programming, before multi-byte characters were introduced, used to be the rather natural way to navigate the buffer. If you wish you can still navigate text buffer this way, though in the case you use UTF-8 character encoding, this can become increasingly unreliable. Should you have a need to do so, you can employ Gtk::TextBuffer#get_iter_at_offset(char_offset), which gets an iterator pointing to((*char_offset*))within the text buffer, and Gtk::TextIter#offset which returns the character offset of an iterator (note in both cases we mean character offset, not byte offset).
 




ruby-gnome2-cvs メーリングリストの案内
Back to archive index