|
@@ 4523-4528 (lines=6) @@
|
| 4520 |
|
$haystack = self::substr($haystack, $offset); |
| 4521 |
|
} |
| 4522 |
|
|
| 4523 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 4524 |
|
$left = substr($haystack, 0, $pos); |
| 4525 |
|
|
| 4526 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 4527 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 4528 |
|
} |
| 4529 |
|
|
| 4530 |
|
return false; |
| 4531 |
|
} |
|
@@ 4725-4730 (lines=6) @@
|
| 4722 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 4723 |
|
} |
| 4724 |
|
|
| 4725 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 4726 |
|
$left = substr($haystack, 0, $pos); |
| 4727 |
|
|
| 4728 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 4729 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 4730 |
|
} |
| 4731 |
|
|
| 4732 |
|
return false; |
| 4733 |
|
} |