|
@@ 673-681 (lines=9) @@
|
| 670 |
|
{ |
| 671 |
|
INF === $encoding && $encoding = self::$internal_encoding; |
| 672 |
|
|
| 673 |
|
if (0 !== strncasecmp($encoding, 'utf-8', 5)) { |
| 674 |
|
if (false === $haystack = self::iconv($encoding, 'utf-8', $haystack)) { |
| 675 |
|
return false; |
| 676 |
|
} |
| 677 |
|
|
| 678 |
|
if (false === $needle = self::iconv($encoding, 'utf-8', $needle)) { |
| 679 |
|
return false; |
| 680 |
|
} |
| 681 |
|
} |
| 682 |
|
|
| 683 |
|
$offset = (int)$offset; |
| 684 |
|
|
|
@@ 851-858 (lines=8) @@
|
| 848 |
|
{ |
| 849 |
|
INF === $encoding && $encoding = self::$internal_encoding; |
| 850 |
|
|
| 851 |
|
if (0 !== strncasecmp($encoding, 'utf-8', 5)) { |
| 852 |
|
if (false === $haystack = self::iconv($encoding, 'utf-8', $haystack)) { |
| 853 |
|
return false; |
| 854 |
|
} |
| 855 |
|
if (false === $needle = self::iconv($encoding, 'utf-8', $needle)) { |
| 856 |
|
return false; |
| 857 |
|
} |
| 858 |
|
} |
| 859 |
|
|
| 860 |
|
$pos = isset($needle[0]) ? strrpos($haystack, $needle) : false; |
| 861 |
|
|