Project

General

Profile

Feature #6626 ยป 0001-string.c-rb_str_subpos.patch

nobu (Nobuyoshi Nakada), 06/22/2012 03:20 PM

View differences:

include/ruby/intern.h
704 704
long rb_str_sublen(VALUE, long);
705 705
VALUE rb_str_substr(VALUE, long, long);
706 706
VALUE rb_str_subseq(VALUE, long, long);
707
char *rb_str_subpos(VALUE, long, long*);
707 708
void rb_str_modify(VALUE);
708 709
void rb_str_modify_expand(VALUE, long);
709 710
VALUE rb_str_freeze(VALUE);
string.c
1635 1635
    return str2;
1636 1636
}
1637 1637

  
1638
static char *
1638
char *
1639 1639
rb_str_subpos(VALUE str, long beg, long *lenp)
1640 1640
{
1641 1641
    long len = *lenp;