mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 09:33:59 +02:00
Split the String and Regexp section into two and elaborate on
individual changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bfe8c2d0be
commit
d8c25be13f
1 changed files with 14 additions and 6 deletions
18
NEWS
18
NEWS
|
@ -107,12 +107,20 @@ See doc/NEWS-1.8.7 for changes between 1.8.6 and 1.8.7.
|
||||||
* File::Stat
|
* File::Stat
|
||||||
o File::Stat#world_readable?
|
o File::Stat#world_readable?
|
||||||
o File::Stat#world_writable?
|
o File::Stat#world_writable?
|
||||||
* String and Regexp
|
* String
|
||||||
o No longer an Enumerable
|
o No longer an Enumerable: use each_line/lines for line
|
||||||
o ?c semantics
|
oriented operation
|
||||||
o "One-char-wide" semantics for String#[] and String#[]=
|
o Encoding-awareness
|
||||||
o Character-wise semantics in many methods in stead of
|
o Character-wise semantics in many methods instead of
|
||||||
byte-wise.
|
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 Encoding-awareness
|
||||||
o Regexp matches only with strings which is encoded in a
|
o Regexp matches only with strings which is encoded in a
|
||||||
compatible character encoding to the regexp's.
|
compatible character encoding to the regexp's.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue