|
@@ 3278-3283 (lines=6) @@
|
| 3275 |
|
$haystack = self::substr($haystack, $offset); |
| 3276 |
|
} |
| 3277 |
|
|
| 3278 |
|
if (($pos = strpos($haystack, $needle)) !== false) { |
| 3279 |
|
$left = substr($haystack, 0, $pos); |
| 3280 |
|
|
| 3281 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 3282 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 3283 |
|
} |
| 3284 |
|
|
| 3285 |
|
return false; |
| 3286 |
|
} |
|
@@ 5469-5474 (lines=6) @@
|
| 5466 |
|
$haystack = self::substr($haystack, 0, $offset); |
| 5467 |
|
} |
| 5468 |
|
|
| 5469 |
|
if (($pos = strrpos($haystack, $needle)) !== false) { |
| 5470 |
|
$left = substr($haystack, 0, $pos); |
| 5471 |
|
|
| 5472 |
|
// negative offset not supported in PHP strpos(), ignoring |
| 5473 |
|
return ($offset > 0 ? $offset : 0) + self::strlen($left); |
| 5474 |
|
} |
| 5475 |
|
|
| 5476 |
|
return false; |
| 5477 |
|
} |