IndexError in rindex

[email protected]$G$9!#e(B

test/ruby/test_string.rbe$B$Ne(Btest_rindexe$B$,e(BIndexErrore$B$G<:GT$9$k$N$Ge(B
e$B$9$,!"$3$N!Ve(Badjust for Oniguruma
5.xe$B!W$H$$$&$N$O$J$s$N$?$a$N$b$Ne(B
e$B$G$7$g$&$+!#e(B

Index: string.c

— string.c (e$B%j%S%8%g%se(B 13293)
+++ string.c (e$B:n6H%3%T!<e(B)
@@ -1462,5 +1462,4 @@ rb_str_rindex_m(int argc, VALUE argv, V
case T_REGEXP:
/
enc = rb_get_check(str, sub); */

  • pos++; /* xxx adjust for Oniguruma 5.x */
    pos = str_offset(RSTRING_PTR(str), RSTRING_END(str), pos,
    rb_enc_get(str));
    if (RREGEXP(sub)->len) {

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:31666] IndexError in rindex”
on Tue, 28 Aug 2007 15:33:32 +0900, Nobuyoshi N.
[email protected] writes:

|test/ruby/test_string.rbe$B$Ne(Btest_rindexe$B$,e(BIndexErrore$B$G<:GT$9$k$N$Ge(B
|e$B$9$,!"$3$N!Ve(Badjust for Oniguruma 5.xe$B!W$H$$$&$N$O$J$s$N$?$a$N$b$Ne(B
|e$B$G$7$g$&$+!#e(B

e$B54<Ve(B5.0e$B$K0\9T$7$?$i5U8!:w$G7k2L$,e(B1e$B$:$l$k$N$G$H$j$"$($:Ev$F$?e(B
e$B$b$N$G$9!#@hDx%P%$%H%%U%;%C%H$H%-%c%i%/%?%%U%;%C%H$N:.F1$re(B
e$BD>$7$?$ie(B(e$B$J$<$+e(B)e$BMW$i$J$/$J$j$^$7$?!#$J$s$H$J$/9uKb=Q$N=-$$!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs