W3cubDocs

/Symfony 4.1

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)
bool isEOF()
int getPosition()
int getRemainingLength()
string getSubstring(int $length, int $offset = 0)
getOffset(string $string)
array|false findPattern(string $pattern)
moveForward(int $length)
moveToEnd()

Details

__construct(string $source)

Parameters

string $source

bool isEOF()

Return Value

bool

int getPosition()

Return Value

int

int getRemainingLength()

Return Value

int

string getSubstring(int $length, int $offset = 0)

Parameters

int $length
int $offset

Return Value

string

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.
https://api.symfony.com/4.1/Symfony/Component/CssSelector/Parser/Reader.html