Project

General

Profile

« Previous | Next » 

Revision 3b6c4dad

Added by nobu (Nobuyoshi Nakada) over 9 years ago

bignum.c: rb_cstr_parse_inum

  • bignum.c (rb_cstr_parse_inum): [EXPERIMENTAL] new function to
    parse integer in C-string with length. the name and the
    arguments may be changed in the future.
  • bignum.c (rb_str_to_inum): preserve encoding of the argument in
    error messages, and no longer needs to copy non-terminated
    strings.
  • bignum.c (rb_str2big_{poweroftwo,normal,karatsuba,gmp}): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e