Reader

class Reader

CSS selector reader.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.

Methods

__construct(string $source)
isEOF()
getPosition()
getRemainingLength()
getSubstring(int $length, int $offset)
getOffset(string $string)
array|false findPattern(string $pattern)
moveForward(int $length)
moveToEnd()

Details

__construct(string $source)

Parameters

string $source

isEOF()

getPosition()

getRemainingLength()

getSubstring(int $length, int $offset)

Parameters

int $length
int $offset

getOffset(string $string)

Parameters

string $string

array|false findPattern(string $pattern)

Parameters

string $pattern

Return Value

array|false

moveForward(int $length)

Parameters

int $length

moveToEnd()

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/CssSelector/Parser/Reader.html