|
@@ 5530-5535 (lines=6) @@
|
| 5527 |
|
$haystack = self::substr($haystack, $offset); |
| 5528 |
|
} |
| 5529 |
|
|
| 5530 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 5531 |
|
$left = substr($haystack, 0, $pos); |
| 5532 |
|
|
| 5533 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5534 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5535 |
|
} |
| 5536 |
|
|
| 5537 |
|
return false; |
| 5538 |
|
} |
|
@@ 5704-5709 (lines=6) @@
|
| 5701 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 5702 |
|
} |
| 5703 |
|
|
| 5704 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 5705 |
|
$left = substr($haystack, 0, $pos); |
| 5706 |
|
|
| 5707 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5708 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5709 |
|
} |
| 5710 |
|
|
| 5711 |
|
return false; |
| 5712 |
|
} |