|
@@ 5371-5376 (lines=6) @@
|
| 5368 |
|
$haystack = self::substr($haystack, $offset); |
| 5369 |
|
} |
| 5370 |
|
|
| 5371 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 5372 |
|
$left = substr($haystack, 0, $pos); |
| 5373 |
|
|
| 5374 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5375 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5376 |
|
} |
| 5377 |
|
|
| 5378 |
|
return false; |
| 5379 |
|
} |
|
@@ 5543-5548 (lines=6) @@
|
| 5540 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 5541 |
|
} |
| 5542 |
|
|
| 5543 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 5544 |
|
$left = substr($haystack, 0, $pos); |
| 5545 |
|
|
| 5546 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5547 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5548 |
|
} |
| 5549 |
|
|
| 5550 |
|
return false; |
| 5551 |
|
} |