|
@@ 4454-4459 (lines=6) @@
|
| 4451 |
|
$haystack = self::substr($haystack, $offset); |
| 4452 |
|
} |
| 4453 |
|
|
| 4454 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 4455 |
|
$left = substr($haystack, 0, $pos); |
| 4456 |
|
|
| 4457 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 4458 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 4459 |
|
} |
| 4460 |
|
|
| 4461 |
|
return false; |
| 4462 |
|
} |
|
@@ 4669-4674 (lines=6) @@
|
| 4666 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 4667 |
|
} |
| 4668 |
|
|
| 4669 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 4670 |
|
$left = substr($haystack, 0, $pos); |
| 4671 |
|
|
| 4672 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 4673 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 4674 |
|
} |
| 4675 |
|
|
| 4676 |
|
return false; |
| 4677 |
|
} |