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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 9月 2日 (日) 01:51:57 JST


-------------------------
REMOTE_ADDR = 70.49.49.99
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-textview
-------------------------
@@ -46,7 +46,10 @@
 
 Most new text views are created with the Gtk::TextView.new(buffer=nil). When using this method with the default nil argument an empty Gtk::TextBuffer is created for you. This empty text buffer can be replaced or retrieved by "Gtk::TextView#buffer=(buff)", or "buff = Gtk::TextView#buffer" respectively.
 
-When handling text buffers, you will be dealing with terms such as ((*ofset*)) and ((*index*)). As with all text widgets in GTK+, text is stored in UTF-8 strings, hence individual characters may be more than one byte long. This may effect the overall meaning or value that offset and index will represent.
+{{image_left("txtv-utf-8.png")}}
+
+When handling text buffers, you will be dealing with terms such as((*ofset*))and((*index.*))As with all text widgets in GTK+, text is stored in UTF-8 strings, hence individual characters may be more than one byte long. This may effect the overall meaning or value that offset and index will represent. You can tell what is the size in bytes for an UTF-8 character by looking at the initial bit(s) of the character. Consult the table on the left for details: 
+
 
 :CAUTION:
    The word ((*index*)) refers to an individual byte, you need to be careful when stepping through a text buffer in later examples. In particular you can not refer to an index pointing to the position between two characters.




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