1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

13 commits

Author SHA1 Message Date
knu
05a579c9ec Forward port r34151 from ruby_1_8_7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@34379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-26 07:10:03 +00:00
nobu
2102e6443a * string.c (rb_str_partition, rb_str_rpartition)
(rb_str_start_with, rb_str_end_with): preserve the last match
  data.  [ruby-core:39671] [Bug #5351]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@33527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-26 07:05:42 +00:00
nobu
75c1cac7f3 * {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 21:51:01 +00:00
naruse
4563853574 fix commit miss. [ruby-core:27794]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 14:58:55 +00:00
naruse
8142629cae * test/ruby/test_string.rb (test_split): add tests.
patched by Hugh Sasse [ruby-core:27794]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 14:26:56 +00:00
nobu
20a2b656c2 * string.c (rb_str_inspect): get rid of adding garbage to short
UTF-8 string.  [ruby-dev:39550]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 13:05:48 +00:00
knu
ed22e8690b * pack.c (rb_utf8_to_uv), intern.h: Rename utf8_to_uv to
rb_utf8_to_uv and export.

* re.c (str_ord): Backport String#ord from 1.9 (sort of);
  requested by Shinichiro Hamaji in [ruby-dev:37247].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-03 07:36:31 +00:00
knu
0543873335 * string.c (rb_str_getbyte, rb_str_setbyte): Add String#getbyte
and String#setbyte for the forward compatibility with 1.9, where
  the behavior of String#[] and String#[]= have changed; based on
  a patch from Shinichiro Hamaji in  [ruby-dev:37247].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-03 07:23:09 +00:00
nobu
dd65714382 * test/ruby/test_string.rb (test_succ, test_succ!): reverted stale
tests.  [ruby-core:17704]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-10 01:20:49 +00:00
nobu
f5113b5731 * string.c (rb_str_succ): alphabets or numerics mutually enclosing
non-alphanumeric characters can carry up.  e.g., "1.999".succ should
  be "2.000".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-08 16:38:40 +00:00
nobu
f04db2b4cf * string.c (rb_str_succ): limit carrying in an alphanumeric region if
exists.  [ruby-dev:35094]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-07 15:23:01 +00:00
akr
900af185d0 test String#sum for bits=0..7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-03 06:09:54 +00:00
(no author)
5973eda633 This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-03 06:03:26 +00:00