aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-28 06:45:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-28 06:45:32 +0000
commit51b4cc11d179106d4b7b9e8baf84e8e55c7b49f7 (patch)
tree4363a95d3bc4877bab8bedfff2347135e05c3b4a /include
parent01c24a2f78cb65c813331a9d590304c4352a4b34 (diff)
downloadruby-51b4cc11d179106d4b7b9e8baf84e8e55c7b49f7.tar.gz
* string.c (rb_str_subseq): retrieve substring based on byte offset.
* string.c (rb_str_rindex_m): was confusing character offset and byte offset. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13295 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 7b1ab6aebe..78ac3f9d00 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -500,6 +500,7 @@ VALUE rb_str_plus(VALUE, VALUE);
VALUE rb_str_times(VALUE, VALUE);
int rb_str_sublen(VALUE, int);
VALUE rb_str_substr(VALUE, long, long);
+VALUE rb_str_subseq(VALUE, long, long);
void rb_str_modify(VALUE);
VALUE rb_str_freeze(VALUE);
void rb_str_set_len(VALUE, long);