936
937
938
939
940
941
942
943
944
945
946
947
948
949
|
}
static public function unicodeTransliterate($str): ?string
{
if ($str === null) {
return null;
}
return transliterator_transliterate('Any-Latin; Latin-ASCII; Lower()', $str);
}
static public function unicodeCaseComparison($a, $b): int
{
if (!isset(self::$collator) && function_exists('collator_create')) {
|
>
>
|
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
|
}
static public function unicodeTransliterate($str): ?string
{
if ($str === null) {
return null;
}
$str = str_replace('’', '\'', $str); // Normalize French apostrophe
return transliterator_transliterate('Any-Latin; Latin-ASCII; Lower()', $str);
}
static public function unicodeCaseComparison($a, $b): int
{
if (!isset(self::$collator) && function_exists('collator_create')) {
|