From 5ca264948a28f13c1611a387fee9130fe0e815ed Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 12 Jul 2009 14:45:43 +0000 Subject: merges r23916 from trunk into ruby_1_9_1. -- * re.c (reg_match_pos): adjust offset based on characters, not bytes. [ruby-dev:38722] * string.c (rb_str_offset): new function. * string.c (rb_str_index_m): no call to rb_reg_adjust_startpos(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 5a6cd6064..a7c77a8c6 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -625,6 +625,7 @@ void rb_str_setter(VALUE, ID, VALUE*); VALUE rb_str_intern(VALUE); VALUE rb_sym_to_s(VALUE); VALUE rb_str_length(VALUE); +long rb_str_offset(VALUE, long); size_t rb_str_capacity(VALUE); #if defined __GNUC__ #define rb_str_new_cstr(str) __extension__ ( \ -- cgit