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

ruby-changes:43207

From: duerst <ko1@a...>
Date: Sun, 5 Jun 2016 19:06:47 +0900 (JST)
Subject: [ruby-changes:43207] duerst:r55281 (trunk): * NEWS: Add news about Unicode-wide case mapping for

duerst	2016-06-05 19:06:42 +0900 (Sun, 05 Jun 2016)

  New Revision: 55281

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55281

  Log:
    * NEWS: Add news about Unicode-wide case mapping for
      String/Symbol#upcase/downcase/swapcase/capitalize(!).

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
Index: NEWS
===================================================================
--- NEWS	(revision 55280)
+++ NEWS	(revision 55281)
@@ -61,12 +61,21 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L61
 
 * String
 
+  * String#upcase, String#downcase, String#capitalize, String#swapcase and
+    their bang variants work for all of Unicode, and are no longer limited
+    to ASCII. Variations are available with options. See the documentation
+    of String#downcase for details. [Feature #10085]
+
   * String.new(capacity: size) [Feature #12024]
 
 * Symbol
 
   * Symbol#match now returns MatchData.  [Bug #11991]
 
+  * Symbol#upcase, Symbol#downcase, Symbol#capitalize, and Symbol#swapcase now
+    work for all of Unicode. See the documentation of String#downcase
+    for details. [Feature #10085]
+
 * MatchData
 
   * MatchData#named_captures [Feature #11999]
@@ -110,6 +119,14 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L119
   klass == rb_cBignum, should be changed to FIXNUM_P(obj) and
   RB_TYPE_P(obj, T_BIGNUM).
 
+* String/Symbol#upcase/downcase/swapcase/capitalize(!) now work for all of
+  Unicode, not only for ASCII. [Feature #10085]
+  No change is needed if the data is in ASCII anyway or if the limitation
+  to ASCII was only tolerated while waiting for a more extensive implementation.
+  A change (using the :ascii option) is needed in cases where Unicode data
+  is processed, but the operation has to be limited to ASCII only.
+  A good example of this are internationalized domain names.
+
 === Stdlib compatibility issues (excluding feature bug fixes)
 
 * Time
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55280)
+++ ChangeLog	(revision 55281)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Jun  5 19:06:40 2016  Martin Duerst  <duerst@i...>
+
+	* NEWS: Add news about Unicode-wide case mapping for
+	  String/Symbol#upcase/downcase/swapcase/capitalize(!).
+
 Sun Jun  5 15:24:33 2016  Martin Duerst  <duerst@i...>
 
 	* test/ruby/enc/test_case_comprehensive.rb:

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

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