W3cubDocs

/Symfony 2.8

Symfony\Component\CssSelector\Parser\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)
int getOffset(string $string)
bool findPattern(string $pattern)
moveForward(int $length)
moveToEnd()

Details

public __construct(string $source)

Parameters

string $source

public bool isEOF()

Return Value

bool

public int getPosition()

Return Value

int

public int getRemainingLength()

Return Value

int

public string getSubstring(int $length, int $offset)

Parameters

int $length
int $offset

Return Value

string

public int getOffset(string $string)

Parameters

string $string

Return Value

int

public bool findPattern(string $pattern)

Parameters

string $pattern

Return Value

bool

public moveForward(int $length)

Parameters

int $length

public moveToEnd()

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