|
@@ 5510-5515 (lines=6) @@
|
| 5507 |
|
$haystack = self::substr($haystack, $offset); |
| 5508 |
|
} |
| 5509 |
|
|
| 5510 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 5511 |
|
$left = substr($haystack, 0, $pos); |
| 5512 |
|
|
| 5513 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5514 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5515 |
|
} |
| 5516 |
|
|
| 5517 |
|
return false; |
| 5518 |
|
} |
|
@@ 5684-5689 (lines=6) @@
|
| 5681 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 5682 |
|
} |
| 5683 |
|
|
| 5684 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 5685 |
|
$left = substr($haystack, 0, $pos); |
| 5686 |
|
|
| 5687 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5688 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5689 |
|
} |
| 5690 |
|
|
| 5691 |
|
return false; |
| 5692 |
|
} |