Feature #6173 » patch.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[0], n))
|
||
return ys - y;
|
||
else
|
||
return -1;
|
||
}
|
||
else if (m <= SIZEOF_VALUE) {
|
||
return rb_memsearch_ss(x0, m, y0, n);
|