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

Breadcrumb

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

function Preg::isMatchAllStrictGroups

Variant of `isMatchAll()` which outputs non-null matches (or throws)

@param-out array<int|string, list<string>> $matches

Parameters

non-empty-string $pattern:

array<mixed> $matches Set by method:

int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported:

1 call to Preg::isMatchAllStrictGroups()
GitDownloader::getUnpushedChanges in vendor/composer/composer/src/Composer/Downloader/GitDownloader.php
Checks for unpushed changes to a current branch

File

vendor/composer/pcre/src/Preg.php, line 342

Class

Preg

Namespace

Composer\Pcre

Code

public static function isMatchAllStrictGroups(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0) : bool {
    return (bool) self::matchAllStrictGroups($pattern, $subject, $matches, $flags, $offset);
}

API Navigation

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