|
@@ 3288-3293 (lines=6) @@
|
| 3285 |
|
$haystack = self::substr($haystack, $offset); |
| 3286 |
|
} |
| 3287 |
|
|
| 3288 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 3289 |
|
$left = substr($haystack, 0, $pos); |
| 3290 |
|
|
| 3291 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 3292 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 3293 |
|
} |
| 3294 |
|
|
| 3295 |
|
return false; |
| 3296 |
|
} |
|
@@ 5479-5484 (lines=6) @@
|
| 5476 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 5477 |
|
} |
| 5478 |
|
|
| 5479 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 5480 |
|
$left = substr($haystack, 0, $pos); |
| 5481 |
|
|
| 5482 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5483 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5484 |
|
} |
| 5485 |
|
|
| 5486 |
|
return false; |
| 5487 |
|
} |