|
@@ 4718-4723 (lines=6) @@
|
| 4715 |
|
$haystack = self::substr($haystack, $offset); |
| 4716 |
|
} |
| 4717 |
|
|
| 4718 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 4719 |
|
$left = substr($haystack, 0, $pos); |
| 4720 |
|
|
| 4721 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 4722 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 4723 |
|
} |
| 4724 |
|
|
| 4725 |
|
return false; |
| 4726 |
|
} |
|
@@ 4922-4927 (lines=6) @@
|
| 4919 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 4920 |
|
} |
| 4921 |
|
|
| 4922 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 4923 |
|
$left = substr($haystack, 0, $pos); |
| 4924 |
|
|
| 4925 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 4926 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 4927 |
|
} |
| 4928 |
|
|
| 4929 |
|
return false; |
| 4930 |
|
} |