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

Breadcrumb

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

function PhpFileCleaner::skipString

1 call to PhpFileCleaner::skipString()
PhpFileCleaner::clean in vendor/composer/class-map-generator/src/PhpFileCleaner.php

File

vendor/composer/class-map-generator/src/PhpFileCleaner.php, line 156

Class

PhpFileCleaner
@author Jordi Boggiano <j.boggiano@seld.be> @internal

Namespace

Composer\ClassMapGenerator

Code

private function skipString(string $delimiter) : void {
    $this->index += 1;
    while ($this->index < $this->len) {
        if ($this->contents[$this->index] === '\\' && ($this->peek('\\') || $this->peek($delimiter))) {
            $this->index += 2;
            continue;
        }
        if ($this->contents[$this->index] === $delimiter) {
            $this->index += 1;
            break;
        }
        $this->index += 1;
    }
}

API Navigation

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