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)

No description

bool
isEOF()

No description

int
getPosition()

No description

int
getRemainingLength()

No description

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

No description

getOffset(string $string)

No description

array|false
findPattern(string $pattern)

No description

moveForward(int $length)

No description

moveToEnd()

No description

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()