Automattic\WooCommerce\Vendor\Sabberworm\CSS\CSSList

CSSList::identifierIs │ private static │ WC 1.0

Tests an identifier for a given value. Since identifiers are all keywords, they can be vendor-prefixed. We need to check for these versions too.

Метод класса: CSSList{}

Хуков нет.

Возвращает

bool.

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

$result = CSSList::identifierIs( $sIdentifier, $sMatch );
$sIdentifier(строка) (обязательный)
.
$sMatch(строка) (обязательный)
.

Код CSSList::identifierIs() WC 11.2.1

private static function identifierIs($sIdentifier, $sMatch)
{
    return (strcasecmp($sIdentifier, $sMatch) === 0)
        ?: preg_match("/^(-\\w+-)?$sMatch$/i", $sIdentifier) === 1;
}