Automattic\WooCommerce\Vendor\Sabberworm\CSS\Parsing

ParserState::peek │ public │ WC 1.0

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

Хуков нет.

Возвращает

string.

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

$ParserState = new ParserState();
$ParserState->peek( $iLength, $iOffset );
$iLength(int)
.
По умолчанию: 1
$iOffset(int)
.

Код ParserState::peek() WC 11.2.1

public function peek($iLength = 1, $iOffset = 0)
{
    $iOffset += $this->iCurrentPosition;
    if ($iOffset >= $this->iLength) {
        return '';
    }
    return $this->substr($iOffset, $iLength);
}