Automattic\WooCommerce\Vendor\Sabberworm\CSS\Parsing

ParserState::setCharsetpublicWC 1.0

Sets the charset to be used if the CSS does not contain an @charset declaration.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$ParserState = new ParserState();
$ParserState->setCharset( $sCharset );
$sCharset(строка) (обязательный)
.

Код ParserState::setCharset() WC 10.4.3

public function setCharset($sCharset)
{
    $this->sCharset = $sCharset;
    $this->aText = $this->strsplit($this->sText);
    if (is_array($this->aText)) {
        $this->iLength = count($this->aText);
    }
}