Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Parser.php

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

... See full list

File

vendor/mck89/peast/lib/Peast/Selector/Parser.php, line 608

Class

Parser
Selector parser class

Namespace

Peast\Selector

Code

protected function getChar() {
    if ($this->index < $this->length) {
        return $this->selector[$this->index];
    }
    return null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal