* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\CssSelector\Parser\Shortcut; use Symfony\Component\CssSelector\Node\ElementNode; use Symfony\Component\CssSelector\Node\SelectorNode; use Symfony\Component\CssSelector\Parser\ParserInterface; /** * CSS selector class parser shortcut. * * This shortcut ensure compatibility with previous version. * - The parser fails to parse an empty string. * - In the previous version, an empty string matches each tags. * * This component is a port of the Python cssselect library, * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect. * * @author Jean-François Simon * * @internal */ class EmptyStringParser implements ParserInterface { /** * {@inheritdoc} */ public function parse($source) { // Matches an empty string if ('' == $source) { return array(new SelectorNode(new ElementNode(null, '*'))); } return array(); } } __halt_compiler();----SIGNATURE:----IU2ebm+Z7BipIM6ag6MhU1JV1Uj6siZvZV2IL3dXQOrw2s+5qIvz4BQmnRj8bMew9ZDSM3FvPDUZHwuHB7qfZ5U+brff/1mWDQTLHAyYQankJV4IrNpxsQNjRiplYFxI3c7vuYvLq+p29tV9oIqmHFzLereBJO77zgLlniGqtrXl0qFP9PAbNN2Aa0qz8M4/1JncGrTGS/CmrsVqD3+6FhhicRKFbWP9GlFAMPWbL7Ee2OZyxVLTHoE8wfvhLlRSyUY2J5xmZfqeLlRuJvr0OB8b07UlVAPhlH2Z9DSCurObb4RDzU/qP4NZsG3A0RBkUymxmOE04J5qyRwAqazlSsYPoeEh3r+VeYgQHhd82H0l8EsIR+o2Ito2o+Y5DUlza1d3A+c6DuTlbppoBUXp7fVGfRBx+5qyqp1gFisBaheE6lOTZSBkTNEUP5j97UwaKgJCOOwAot+2bZNq1DI5PZWJLmRgUTxMXHvJ6n1b7XYulBJhjDNPJFF+zz3pPHZQ2LZxdrKhu2dfsn4KvbO79SSv6OV/fs4FeCpLZUAQeNt8Vx7upP7i5somEH4xpK8/LBVbJFoYf72jbPaB13iIloTKQvgfqS2I2t9jnocc+3j++pnElhQh//uElpgaBy2AbjRzGR6NCjXyrLiO5XvsuVYWSky+ehisZvLTR04dTgU=----ATTACHMENT:----NzA0MDczNDE2NTE1MTM5NSA3NDc3MDQ0MTQ0MTY4OTYwIDgxMDQzOTYzNjE3MjIwMzI=