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

Breadcrumb

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

function Regex::checkOffsetCapture

3 calls to Regex::checkOffsetCapture()
Regex::match in vendor/composer/pcre/src/Regex.php
Regex::matchAll in vendor/composer/pcre/src/Regex.php
Regex::matchAllStrictGroups in vendor/composer/pcre/src/Regex.php
Variant of `matchAll()` which returns non-null matches (or throws)

File

vendor/composer/pcre/src/Regex.php, line 163

Class

Regex

Namespace

Composer\Pcre

Code

private static function checkOffsetCapture(int $flags, string $useFunctionName) : void {
    if (($flags & PREG_OFFSET_CAPTURE) !== 0) {
        throw new \InvalidArgumentException('PREG_OFFSET_CAPTURE is not supported as it changes the return type, use ' . $useFunctionName . '() instead');
    }
}
RSS feed
Powered by Drupal