|
@@ 5461-5466 (lines=6) @@
|
| 5458 |
|
$haystack = self::substr($haystack, $offset); |
| 5459 |
|
} |
| 5460 |
|
|
| 5461 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 5462 |
|
$left = substr($haystack, 0, $pos); |
| 5463 |
|
|
| 5464 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5465 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5466 |
|
} |
| 5467 |
|
|
| 5468 |
|
return false; |
| 5469 |
|
} |
|
@@ 5671-5676 (lines=6) @@
|
| 5668 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 5669 |
|
} |
| 5670 |
|
|
| 5671 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 5672 |
|
$left = substr($haystack, 0, $pos); |
| 5673 |
|
|
| 5674 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5675 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5676 |
|
} |
| 5677 |
|
|
| 5678 |
|
return false; |
| 5679 |
|
} |