Sabberworm\CSS\Parser::parseIdentifier PHP Метод

parseIdentifier() приватный Метод

private parseIdentifier ( $bAllowFunctions = true, $bIgnoreCase = true )
    private function parseIdentifier($bAllowFunctions = true, $bIgnoreCase = true)
    {
        $sResult = $this->parseCharacter(true);
        if ($sResult === null) {
            throw new UnexpectedTokenException($sResult, $this->peek(5), 'identifier');
        }
        $sCharacter = null;
        while (($sCharacter = $this->parseCharacter(true)) !== null) {
            $sResult .= $sCharacter;
        }
        if ($bIgnoreCase) {
            $sResult = $this->strtolower($sResult);
        }
        if ($bAllowFunctions && $this->comes('(')) {
            $this->consume('(');
            $aArguments = $this->parseValue(array('=', ' ', ','));
            $sResult = new CSSFunction($sResult, $aArguments);
            $this->consume(')');
        }
        return $sResult;
    }