string.c (str_nth_len, str_utf8_nth): return the rest length together.
* string.c (rb_str_substr): get rid of measure the length always to improve performance for huge string. [ruby-core:34648]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
string.c (str_nth_len, str_utf8_nth): return the rest length together.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e