зеркало из https://github.com/github/ruby.git
* re.c (ignorecase_setter): change warning message.
* re.c (ignorecase_getter): now gives warning. * string.c (rb_str_cmp_m): update RDoc document. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7b28e82f6f
Коммит
dbcc539602
|
@ -1,4 +1,4 @@
|
||||||
Thu Oct 4 16:55:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Thu Oct 4 17:08:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* re.c (kcode_setter): Perl-ish global variable `$=' no longer
|
* re.c (kcode_setter): Perl-ish global variable `$=' no longer
|
||||||
effective.
|
effective.
|
||||||
|
@ -9,6 +9,12 @@ Thu Oct 4 16:55:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* time.c (Init_Time): remove obsolete Time::times.
|
* time.c (Init_Time): remove obsolete Time::times.
|
||||||
|
|
||||||
|
* re.c (ignorecase_setter): change warning message.
|
||||||
|
|
||||||
|
* re.c (ignorecase_getter): now gives warning.
|
||||||
|
|
||||||
|
* string.c (rb_str_cmp_m): update RDoc document.
|
||||||
|
|
||||||
Thu Oct 4 16:28:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Oct 4 16:28:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* encoding.c (rb_obj_encoding): returns encoding of the given object.
|
* encoding.c (rb_obj_encoding): returns encoding of the given object.
|
||||||
|
|
3
re.c
3
re.c
|
@ -2317,13 +2317,14 @@ kcode_setter(VALUE val)
|
||||||
static VALUE
|
static VALUE
|
||||||
ignorecase_getter(void)
|
ignorecase_getter(void)
|
||||||
{
|
{
|
||||||
|
rb_warn("variable $= is no longer effective");
|
||||||
return Qfalse;
|
return Qfalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ignorecase_setter(VALUE val, ID id)
|
ignorecase_setter(VALUE val, ID id)
|
||||||
{
|
{
|
||||||
rb_warn("modifying %s is deprecated", rb_id2name(id));
|
rb_warn("variable $= is no longer effective; ignored");
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
4
string.c
4
string.c
|
@ -1293,9 +1293,7 @@ rb_str_eql(VALUE str1, VALUE str2)
|
||||||
* <i>other_str</i> is equal to, and +1 if <i>other_str</i> is greater than
|
* <i>other_str</i> is equal to, and +1 if <i>other_str</i> is greater than
|
||||||
* <i>str</i>. If the strings are of different lengths, and the strings are
|
* <i>str</i>. If the strings are of different lengths, and the strings are
|
||||||
* equal when compared up to the shortest length, then the longer string is
|
* equal when compared up to the shortest length, then the longer string is
|
||||||
* considered greater than the shorter one. If the variable <code>$=</code> is
|
* considered greater than the shorter one. In older versions of Ruby, setting
|
||||||
* <code>false</code>, the comparison is based on comparing the binary values
|
|
||||||
* of each character in the string. In older versions of Ruby, setting
|
|
||||||
* <code>$=</code> allowed case-insensitive comparisons; this is now deprecated
|
* <code>$=</code> allowed case-insensitive comparisons; this is now deprecated
|
||||||
* in favor of using <code>String#casecmp</code>.
|
* in favor of using <code>String#casecmp</code>.
|
||||||
*
|
*
|
||||||
|
|
Загрузка…
Ссылка в новой задаче