summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-12 14:45:43 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-12 14:45:43 +0000
commit5ca264948a28f13c1611a387fee9130fe0e815ed (patch)
treee51327449a35d00cfd4d183ba559c22682202887 /include
parent4abf568303d345669a5f081cae670f1325b07f13 (diff)
downloadruby-5ca264948a28f13c1611a387fee9130fe0e815ed.tar.gz
ruby-5ca264948a28f13c1611a387fee9130fe0e815ed.tar.xz
ruby-5ca264948a28f13c1611a387fee9130fe0e815ed.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/ruby/intern.h1
1 files changed, 1 insertions, 0 deletions
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__ ( \