diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-25 03:29:39 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-25 03:29:39 +0000 |
commit | a25fbe3b3e531bbe479f344af24eaf9d2eeae6ea () | |
tree | 055e58ed569fb28012fadade94f518e0a888e47d /ext/tk/sample | |
parent | 0ada813abfe3a049da29bd423ba34606a00777bd (diff) |
* encoding.c: provide basic features for M17N.
* parse.y: encoding aware parsing. * parse.y (pragma_encoding): encoding specification pragma. * parse.y (rb_intern3): encoding specified symbols. * string.c (rb_str_length): length based on characters. for older behavior, bytesize method added. * string.c (rb_str_index_m): index based on characters. rindex as well. * string.c (succ_char): encoding aware succeeding string. * string.c (rb_str_reverse): reverse based on characters. * string.c (rb_str_inspect): encoding aware string description. * string.c (rb_str_upcase_bang): encoding aware case conversion. downcase, capitalize, swapcase as well. * string.c (rb_str_tr_bang): tr based on characters. delete, squeeze, tr_s, count as well. * string.c (rb_str_split_m): split based on characters. * string.c (rb_str_each_line): encoding aware each_line. * string.c (rb_str_each_char): added. iteration based on characters. * string.c (rb_str_strip_bang): encoding aware whitespace stripping. lstrip, rstrip as well. * string.c (rb_str_justify): encoding aware justifying (ljust, rjust, center). * string.c (str_encoding): get encoding attribute from a string. * re.c (rb_reg_initialize): encoding aware regular expression * sprintf.c (rb_str_format): formatting (i.e. length count) based on characters. * io.c (rb_io_getc): getc to return one-character string. for older behavior, getbyte method added. * ext/stringio/stringio.c (strio_getc): ditto. * io.c (rb_io_ungetc): allow pushing arbitrary string at the current reading point. * ext/stringio/stringio.c (strio_ungetc): ditto. * ext/strscan/strscan.c: encoding support. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
60 files changed, 67 insertions, 0 deletions
@@ -1,3 +1,4 @@ # # animated label widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # animated wave demo (called by 'widget') # @@ -1,3 +1,4 @@ # # arrowhead widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # text (tag bindings) widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # bitmap widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # button widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # checkbutton widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # checkbutton widget demo2 (called by 'widget') # @@ -1,3 +1,4 @@ # # widget demo prompts the user to select a color (called by 'widget') # @@ -1,3 +1,4 @@ # # listbox widget demo 'colors' (called by 'widget') # @@ -1,3 +1,4 @@ # # simple scrollable canvas widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # Canvas Text widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # a dialog box with a local grab (called by 'widget') # @@ -1,3 +1,4 @@ # # a dialog box with a global grab (called by 'widget') # @@ -1,3 +1,4 @@ # # entry (no scrollbars) widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # entry (with scrollbars) widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # entry3.rb -- # # This demonstration script creates several entry widgets whose @@ -1,3 +1,4 @@ # # widget demo prompts the user to select a file (called by 'widget') # @@ -1,3 +1,4 @@ # # floorDisplay widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # floorDisplay widget demo 2 (called by 'widget') # @@ -1,3 +1,4 @@ # # form widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # Ruby/Tk Goldverg demo (called by 'widget') # @@ -1,4 +1,5 @@ #!/usr/bin/env ruby require 'tk' TkButton.new(nil, @@ -1,3 +1,4 @@ require "tkcanvas" if defined?($hscale_demo) && $hscale_deom @@ -1,3 +1,4 @@ # # iconic button widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # two image widgets demo (called by 'widget') # @@ -1,3 +1,4 @@ # # widget demo 'load image' (called by 'widget') # @@ -1,3 +1,4 @@ # image3.rb # # This demonstration script creates a simple collection of widgets @@ -1,3 +1,4 @@ # # canvas item types widget demo (called by 'widget') # @@ -1,4 +1,5 @@ #!/usr/bin/env ruby # # ixset -- # A nice interface to "xset" to change X server settings @@ -1,3 +1,4 @@ # # label widget demo (called by 'widget') # @@ -1,3 +1,5 @@ # labelframe.rb # # This demonstration script creates a toplevel window containing @@ -1,3 +1,4 @@ # # menus widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # menus widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # menus widget demo (called by 'widget') # @@ -1,3 +1,4 @@ require "tkcanvas" def optionMenu(menubutton, varName, firstValue, *rest) @@ -1,3 +1,4 @@ # # message boxes widget demo (called by 'widget') # @@ -1,3 +1,5 @@ # paned1.rb # # This demonstration script creates a toplevel window containing @@ -1,3 +1,5 @@ # paned2.rb -- # # This demonstration script creates a toplevel window containing @@ -1,3 +1,4 @@ # # This demonstration illustrates how Tcl/Tk can be used to construct # simulations of physical systems. @@ -1,3 +1,4 @@ # # 2-D plot widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # widet demo 'puzzle' (called by 'widget') # @@ -1,3 +1,4 @@ # # radiobutton widget demo (called by 'widget') # @@ -1,3 +1,5 @@ # radio2.rb # # This demonstration script creates a toplevel window containing @@ -1,3 +1,5 @@ # radio3.rb # # This demonstration script creates a toplevel window containing @@ -1,4 +1,5 @@ #!/usr/bin/env ruby # # rolodex -- # ���Υ�����ץȤ� Tom LaStrange �� rolodex �ΰ����Ǥ��� @@ -1,3 +1,4 @@ # # ruler widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # listbox widget demo 'sayings' (called by 'widget') # @@ -1,3 +1,4 @@ # # Text Search widget demo (called by 'widget') # @@ -1,3 +1,5 @@ # spin.rb -- # # This demonstration script creates several spinbox widgets. @@ -1,3 +1,4 @@ # # listbox widget demo 'states' (called by 'widget') # @@ -1,3 +1,4 @@ # # text (display styles) widget demo (called by 'widget') # @@ -1,4 +1,5 @@ #!/usr/bin/env ruby # # tcolor -- # ���Υ�����ץȤ�RGB,HSB,CYM�����ݡ��Ȥ��� @@ -1,3 +1,4 @@ # # text (basic facilities) widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # text (embedded windows) widget demo (called by 'widget') # @@ -1,3 +1,4 @@ # # text (embedded windows) widget demo 2 (called by 'widget') # @@ -1,3 +1,5 @@ # unicodeout.rb -- # # This demonstration script shows how you can produce output (in label @@ -1,3 +1,4 @@ require "tkcanvas" if defined?($vscale_demo) && $vscale_demo @@ -1,4 +1,5 @@ #!/usr/bin/env ruby # �������������� ( tk.rb �Υ����ɻ��� encoding ����/����˻Ȥ��� ) $KCODE = 'euc' @@ -1,4 +1,5 @@ #!/usr/bin/env ruby require 'tk' require 'tkextlib/vu/charts' |