string.c: radix indicators [ci skip]
* string.c (rb_str_oct): [DOC] mention radix indicators. [ruby-core:71310] [Bug #11648] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1178a6fdba
commit
365fae4dd9
@ -1,3 +1,8 @@
|
|||||||
|
Tue Dec 15 13:50:05 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* string.c (rb_str_oct): [DOC] mention radix indicators.
|
||||||
|
[ruby-core:71310] [Bug #11648]
|
||||||
|
|
||||||
Tue Dec 15 12:20:30 2015 Takashi Kokubun <takashikkbn@gmail.com>
|
Tue Dec 15 12:20:30 2015 Takashi Kokubun <takashikkbn@gmail.com>
|
||||||
|
|
||||||
* lib/erb.rb: Simplify regexp to optimize erb scanner.
|
* lib/erb.rb: Simplify regexp to optimize erb scanner.
|
||||||
|
3
string.c
3
string.c
@ -8033,6 +8033,9 @@ rb_str_hex(VALUE str)
|
|||||||
* "-377".oct #=> -255
|
* "-377".oct #=> -255
|
||||||
* "bad".oct #=> 0
|
* "bad".oct #=> 0
|
||||||
* "0377bad".oct #=> 255
|
* "0377bad".oct #=> 255
|
||||||
|
*
|
||||||
|
* If +str+ starts with <code>0</code>, radix indicators are hornored.
|
||||||
|
* See Kernel#Integer.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user