|
@@ 5415-5420 (lines=6) @@
|
| 5412 |
|
$haystack = self::substr($haystack, $offset); |
| 5413 |
|
} |
| 5414 |
|
|
| 5415 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 5416 |
|
$left = substr($haystack, 0, $pos); |
| 5417 |
|
|
| 5418 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5419 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5420 |
|
} |
| 5421 |
|
|
| 5422 |
|
return false; |
| 5423 |
|
} |
|
@@ 5589-5594 (lines=6) @@
|
| 5586 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 5587 |
|
} |
| 5588 |
|
|
| 5589 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 5590 |
|
$left = substr($haystack, 0, $pos); |
| 5591 |
|
|
| 5592 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5593 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5594 |
|
} |
| 5595 |
|
|
| 5596 |
|
return false; |
| 5597 |
|
} |