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) | |
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)
Parameters
int | $length | |
int | $offset |
Return Value
string |
int getOffset(string $string)
Parameters
string | $string |
Return Value
int |
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/2.8/Symfony/Component/CssSelector/Parser/Reader.html