[前][次][番号順一覧][スレッド一覧]

ruby-changes:2456

From: ko1@a...
Date: 16 Nov 2007 17:03:57 +0900
Subject: [ruby-changes:2456] nobu - Ruby:r13947 (trunk, ruby_1_8): * ext/iconv/iconv.c (Document-class): moved the simplest example to

nobu	2007-11-16 17:03:36 +0900 (Fri, 16 Nov 2007)

  New Revision: 13947

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/ext/iconv/iconv.c
    trunk/ChangeLog
    trunk/ext/iconv/iconv.c

  Log:
    * ext/iconv/iconv.c (Document-class): moved the simplest example to
      the top.
    
    * ext/iconv/iconv.c (iconv_s_iconv): Document-method: needs class
      prefix for class method.  [ruby-core:13542]


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/iconv/iconv.c?r1=13947&r2=13946
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=13947&r2=13946
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13947&r2=13946
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ext/iconv/iconv.c?r1=13947&r2=13946

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 13946)
+++ ChangeLog	(revision 13947)
@@ -1,3 +1,11 @@
+Fri Nov 16 17:03:34 2007  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/iconv/iconv.c (Document-class): moved the simplest example to
+	  the top.
+
+	* ext/iconv/iconv.c (iconv_s_iconv): Document-method: needs class
+	  prefix for class method.  [ruby-core:13542]
+
 Fri Nov 16 16:26:57 2007  Shugo Maeda  <shugo@r...>
 
 	* include/ruby/ruby.h: added some declarations for event hooks.
Index: ext/iconv/iconv.c
===================================================================
--- ext/iconv/iconv.c	(revision 13946)
+++ ext/iconv/iconv.c	(revision 13947)
@@ -43,8 +43,12 @@
  * 
  * == Examples
  *
- * 1. Instantiate a new Iconv and use method Iconv#iconv.
+ * 1. Simple conversion between two charsets.
  *
+ *      converted_text = Iconv.conv('iso-8859-15', 'utf-8', text)
+ *
+ * 2. Instantiate a new Iconv and use method Iconv#iconv.
+ *
  *      cd = Iconv.new(to, from)
  *      begin
  *        input.each { |s| output << cd.iconv(s) }
@@ -53,20 +57,16 @@
  *        cd.close
  *      end
  *
- * 2. Invoke Iconv.open with a block.
+ * 3. Invoke Iconv.open with a block.
  *
  *      Iconv.open(to, from) do |cd|
  *        input.each { |s| output << cd.iconv(s) }
  *        output << cd.iconv(nil)
  *      end
  *
- * 3. Shorthand for (2).
+ * 4. Shorthand for (3).
  *
  *      Iconv.iconv(to, from, *input.to_a)
- *
- * 4. Simple conversion between two charsets.
- *
- *      converted_text = Iconv.new('iso-8859-15', 'utf-8').iconv(text)
  */
 
 /* Invalid value for iconv_t is -1 but 0 for VALUE, I hope VALUE is
@@ -610,7 +610,7 @@
 }
 
 /*
- * Document-method: iconv
+ * Document-method: Iconv::iconv
  * call-seq: Iconv.iconv(to, from, *strs)
  *
  * Shorthand for
Index: ruby_1_8/ext/iconv/iconv.c
===================================================================
--- ruby_1_8/ext/iconv/iconv.c	(revision 13946)
+++ ruby_1_8/ext/iconv/iconv.c	(revision 13947)
@@ -43,8 +43,12 @@
  * 
  * == Examples
  *
- * 1. Instantiate a new Iconv and use method Iconv#iconv.
+ * 1. Simple conversion between two charsets.
  *
+ *      converted_text = Iconv.conv('iso-8859-15', 'utf-8', text)
+ *
+ * 2. Instantiate a new Iconv and use method Iconv#iconv.
+ *
  *      cd = Iconv.new(to, from)
  *      begin
  *        input.each { |s| output << cd.iconv(s) }
@@ -53,20 +57,16 @@
  *        cd.close
  *      end
  *
- * 2. Invoke Iconv.open with a block.
+ * 3. Invoke Iconv.open with a block.
  *
  *      Iconv.open(to, from) do |cd|
  *        input.each { |s| output << cd.iconv(s) }
  *        output << cd.iconv(nil)
  *      end
  *
- * 3. Shorthand for (2).
+ * 4. Shorthand for (3).
  *
  *      Iconv.iconv(to, from, *input.to_a)
- *
- * 4. Simple conversion between two charsets.
- *
- *      converted_text = Iconv.new('iso-8859-15', 'utf-8').iconv(text)
  */
 
 /* Invalid value for iconv_t is -1 but 0 for VALUE, I hope VALUE is
@@ -606,7 +606,7 @@
 }
 
 /*
- * Document-method: iconv
+ * Document-method: Iconv::iconv
  * call-seq: Iconv.iconv(to, from, *strs)
  *
  * Shorthand for
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 13946)
+++ ruby_1_8/ChangeLog	(revision 13947)
@@ -1,3 +1,11 @@
+Fri Nov 16 17:03:34 2007  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/iconv/iconv.c (Document-class): moved the simplest example to
+	  the top.
+
+	* ext/iconv/iconv.c (iconv_s_iconv): Document-method: needs class
+	  prefix for class method.  [ruby-core:13542]
+
 Fri Nov 16 11:16:41 2007  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/yaml/rubytypes.rb (String#is_binary_data?): use Integer#fdiv.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]