Punic\Comparer::normalize PHP Метод

normalize() приватный Метод

private normalize ( string $str ) : string
$str string
Результат string
    private function normalize($str)
    {
        $str = (string) $str;
        if (!isset($this->cache[$str])) {
            $this->cache[$str] = $str;
            if ($str !== '') {
                if ($this->iconv) {
                    $transliterated = @iconv('UTF-8', 'ASCII//IGNORE//TRANSLIT', $str);
                    if ($transliterated !== false) {
                        $this->cache[$str] = $transliterated;
                    }
                }
            }
        }
        return $this->cache[$str];
    }