summaryrefslogtreecommitdiffstats
path: root/include/ruby/intern.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-30 09:06:48 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-30 09:06:48 +0000
commit1719dd8b379fa412cf9f5ff66babb7eaceab9b54 (patch)
treec759c75df634fb3c658872623d3fad1e665c5a16 /include/ruby/intern.h
parentf9d9ab8b9ec36aa72b907e08b722e0d58d02b18f (diff)
downloadruby-1719dd8b379fa412cf9f5ff66babb7eaceab9b54.tar.gz
ruby-1719dd8b379fa412cf9f5ff66babb7eaceab9b54.tar.xz
ruby-1719dd8b379fa412cf9f5ff66babb7eaceab9b54.zip
* 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/trunk@23916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/intern.h')
-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 ed9e746bf..f153658d5 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__ ( \