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

at line 30
__construct(string $source)

Parameters

string $source

at line 36
bool isEOF()

Return Value

bool

at line 41
int getPosition()

Return Value

int

at line 46
int getRemainingLength()

Return Value

int

at line 51
string getSubstring(int $length, int $offset = 0)

Parameters

int $length
int $offset

Return Value

string

at line 56
getOffset(string $string)

Parameters

string $string

at line 66
array|false findPattern(string $pattern)

Parameters

string $pattern

Return Value

array|false

at line 77
moveForward(int $length)

Parameters

int $length

at line 82
moveToEnd()