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

Breadcrumb

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

function EmailLexer::moveNext

moveNext

Return value

boolean

Overrides AbstractLexer::moveNext

File

vendor/egulias/email-validator/src/EmailLexer.php, line 198

Class

EmailLexer
@extends AbstractLexer<int, string>

Namespace

Egulias\EmailValidator

Code

public function moveNext() : bool {
    if ($this->hasToRecord && $this->previous === $this->nullToken) {
        $this->accumulator .= $this->current->value;
    }
    $this->previous = $this->current;
    if ($this->lookahead === null) {
        $this->lookahead = $this->nullToken;
    }
    $hasNext = parent::moveNext();
    $this->current = $this->token ?? $this->nullToken;
    if ($this->hasToRecord) {
        $this->accumulator .= $this->current->value;
    }
    return $hasNext;
}

API Navigation

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