|
@@ 3471-3476 (lines=6) @@
|
| 3468 |
|
$haystack = self::substr($haystack, $offset); |
| 3469 |
|
} |
| 3470 |
|
|
| 3471 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 3472 |
|
$left = substr($haystack, 0, $pos); |
| 3473 |
|
|
| 3474 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 3475 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 3476 |
|
} |
| 3477 |
|
|
| 3478 |
|
return false; |
| 3479 |
|
} |
|
@@ 5661-5666 (lines=6) @@
|
| 5658 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 5659 |
|
} |
| 5660 |
|
|
| 5661 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 5662 |
|
$left = substr($haystack, 0, $pos); |
| 5663 |
|
|
| 5664 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5665 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5666 |
|
} |
| 5667 |
|
|
| 5668 |
|
return false; |
| 5669 |
|
} |