|
@@ 5388-5393 (lines=6) @@
|
| 5385 |
|
$haystack = self::substr($haystack, $offset); |
| 5386 |
|
} |
| 5387 |
|
|
| 5388 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 5389 |
|
$left = substr($haystack, 0, $pos); |
| 5390 |
|
|
| 5391 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5392 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5393 |
|
} |
| 5394 |
|
|
| 5395 |
|
return false; |
| 5396 |
|
} |
|
@@ 5560-5565 (lines=6) @@
|
| 5557 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 5558 |
|
} |
| 5559 |
|
|
| 5560 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 5561 |
|
$left = substr($haystack, 0, $pos); |
| 5562 |
|
|
| 5563 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5564 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5565 |
|
} |
| 5566 |
|
|
| 5567 |
|
return false; |
| 5568 |
|
} |