Spec-Zone.ru › Symfony 3.0

Чтец

класс Reader

Чтец селекторов CSS.

Этот компонент является портом библиотеки Python cssselect, авторское право Иана Бикинга, см. https://github.com/SimonSapin/cssselect.

Методы

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

Подробности

__construct(string $source)

Параметры

string $source

bool isEOF()

Возвращаемое значение

bool

int getPosition()

Возвращаемое значение

int

int getRemainingLength()

Возвращаемое значение

int

string getSubstring(int $length, int $offset)

Параметры

int $length
int $offset

Возвращаемое значение

string

int getOffset(string $string)

Параметры

string $string

Возвращаемое значение

int

bool findPattern(string $pattern)

Параметры

string $pattern

Возвращаемое значение

bool

moveForward(int $length)

Параметры

int $length

moveToEnd()

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API