function Parser::getChar
Returns the current character or null if the end have been reached
Return value
string|null
7 calls to Parser::getChar()
- Parser::consume in vendor/
mck89/ peast/ lib/ Peast/ Selector/ Parser.php - Consumes the current character if it is equal to the given one
- Parser::consumeAny in vendor/
mck89/ peast/ lib/ Peast/ Selector/ Parser.php - Consumes the given characters
- Parser::consumeRegex in vendor/
mck89/ peast/ lib/ Peast/ Selector/ Parser.php - Consumes the given regex
- Parser::consumeUntil in vendor/
mck89/ peast/ lib/ Peast/ Selector/ Parser.php - Consumes all the characters until the given one is reached
- Parser::consumeWord in vendor/
mck89/ peast/ lib/ Peast/ Selector/ Parser.php - Consumes a word composed by characters a-z
File
-
vendor/
mck89/ peast/ lib/ Peast/ Selector/ Parser.php, line 608
Class
- Parser
- Selector parser class
Namespace
Peast\SelectorCode
protected function getChar() {
if ($this->index < $this->length) {
return $this->selector[$this->index];
}
return null;
}