diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-30 09:06:48 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-30 09:06:48 +0000 |
commit | 5d7a215f6e4fddb5dedcd9bb20d3dd1c8d9f3195 (patch) | |
tree | c759c75df634fb3c658872623d3fad1e665c5a16 /include/ruby | |
parent | b472f9b61a4a73d90842ac9db5f73c52cec28e1a (diff) |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/intern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index ed9e746bf0..f153658d50 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -643,6 +643,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__ ( \ |