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.

Method of the class: ParserState{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ParserState = new ParserState();
$ParserState->setCharset( $sCharset );
$sCharset(string) (required)
.

ParserState::setCharset() code WC 10.8.1

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