ruby-changes:10355
From: knu <ko1@a...>
Date: Fri, 30 Jan 2009 16:08:28 +0900 (JST)
Subject: [ruby-changes:10355] Ruby:r21899 (ruby_1_9_1): Split the String and Regexp section into two and elaborate on
knu 2009-01-30 16:08:18 +0900 (Fri, 30 Jan 2009) New Revision: 21899 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21899 Log: Split the String and Regexp section into two and elaborate on individual changes. Modified files: branches/ruby_1_9_1/NEWS Index: ruby_1_9_1/NEWS =================================================================== --- ruby_1_9_1/NEWS (revision 21898) +++ ruby_1_9_1/NEWS (revision 21899) @@ -107,13 +107,21 @@ * File::Stat o File::Stat#world_readable? o File::Stat#world_writable? - * String and Regexp - o No longer an Enumerable - o ?c semantics - o "One-char-wide" semantics for String#[] and String#[]= - o Character-wise semantics in many methods in stead of - byte-wise. + * String + o No longer an Enumerable: use each_line/lines for line + oriented operation o Encoding-awareness + o Character-wise semantics in many methods instead of + byte-wise. + o String#[]: Indexing a String with an integer returns a + single character String instead of an integer. + o String#[]=: No longer takes an integer as right + side value. Note that "str[i] = ?c" because of + the following change. + o ?c is evaluated to a single character string + instead of an integer. + * Regexp + o Encoding-awareness o Regexp matches only with strings which is encoded in a compatible character encoding to the regexp's. o Regexp#kcode is removed. use Regexp#encoding. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/