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

Breadcrumb

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

function Standard::containsEndLabel

2 calls to Standard::containsEndLabel()
Standard::encapsedContainsEndLabel in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php
Standard::pScalar_String in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php

File

vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php, line 1111

Class

Standard

Namespace

PhpParser\PrettyPrinter

Code

protected function containsEndLabel(string $string, string $label, bool $atStart = true) : bool {
    $start = $atStart ? '(?:^|[\\r\\n])[ \\t]*' : '[\\r\\n][ \\t]*';
    return false !== strpos($string, $label) && preg_match('/' . $start . $label . '(?:$|[^_A-Za-z0-9\\x80-\\xff])/', $string);
}

API Navigation

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