WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

YoastSEO_Vendor\Symfony\Polyfill\Intl\Idn

Idn::lookupCodePointStatus() private Yoast 1.0

Это метод класса: Idn{}

Хуков нет.

Возвращает

Массив{status:. string, mapping?: string}

Использование

$result = Idn::lookupCodePointStatus( $codePoint, $useSTD3ASCIIRules );
$codePoint(число) (обязательный)
$useSTD3ASCIIRules(true/false) (обязательный)

Код Idn::lookupCodePointStatus() Yoast 15.1.1

<?php
private static function lookupCodePointStatus($codePoint, $useSTD3ASCIIRules)
{
    if (!self::$mappingTableLoaded) {
        self::$mappingTableLoaded = \true;
        self::$mapped = (require __DIR__ . '/Resources/unidata/mapped.php');
        self::$ignored = (require __DIR__ . '/Resources/unidata/ignored.php');
        self::$deviation = (require __DIR__ . '/Resources/unidata/deviation.php');
        self::$disallowed = (require __DIR__ . '/Resources/unidata/disallowed.php');
        self::$disallowed_STD3_mapped = (require __DIR__ . '/Resources/unidata/disallowed_STD3_mapped.php');
        self::$disallowed_STD3_valid = (require __DIR__ . '/Resources/unidata/disallowed_STD3_valid.php');
    }
    if (isset(self::$mapped[$codePoint])) {
        return array('status' => 'mapped', 'mapping' => self::$mapped[$codePoint]);
    }
    if (isset(self::$ignored[$codePoint])) {
        return array('status' => 'ignored');
    }
    if (isset(self::$deviation[$codePoint])) {
        return array('status' => 'deviation', 'mapping' => self::$deviation[$codePoint]);
    }
    if (isset(self::$disallowed[$codePoint]) || \YoastSEO_Vendor\Symfony\Polyfill\Intl\Idn\Resources\unidata\DisallowedRanges::inRange($codePoint)) {
        return array('status' => 'disallowed');
    }
    $isDisallowedMapped = isset(self::$disallowed_STD3_mapped[$codePoint]);
    if ($isDisallowedMapped || isset(self::$disallowed_STD3_valid[$codePoint])) {
        $status = 'disallowed';
        if (!$useSTD3ASCIIRules) {
            $status = $isDisallowedMapped ? 'mapped' : 'valid';
        }
        if ($isDisallowedMapped) {
            return array('status' => $status, 'mapping' => self::$disallowed_STD3_mapped[$codePoint]);
        }
        return array('status' => $status);
    }
    return array('status' => 'valid');
}