public function Reader::getOffset in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/css-selector/Parser/Reader.php \Symfony\Component\CssSelector\Parser\Reader::getOffset()
Parameters
string $string:
Return value
int
File
- vendor/
symfony/ css-selector/ Parser/ Reader.php, line 88
Class
- Reader
- CSS selector reader.
Namespace
Symfony\Component\CssSelector\ParserCode
public function getOffset($string) {
$position = strpos($this->source, $string, $this->position);
return false === $position ? false : $position - $this->position;
}