Feature #6173 » patch2.diff
re.c | ||
---|---|---|
return 0;
|
||
}
|
||
else if (m == 1) {
|
||
const unsigned char *ys = y, *ye = ys + n;
|
||
for (; y < ye; ++y) {
|
||
if (*x == *y)
|
||
return y - ys;
|
||
}
|
||
return -1;
|
||
const unsigned char *ys;
|
||
if (ys = memchr(y, *x, n))
|
||
return ys - y;
|
||
else
|
||
return -1;
|
||
}
|
||
else if (m <= SIZEOF_VALUE) {
|
||
return rb_memsearch_ss(x0, m, y0, n);
|
- « Previous
- 1
- 2
- Next »