function Preg::isMatchAllWithOffsets
Variant of matchAllWithOffsets() which returns a bool instead of int
Runs preg_match_all with PREG_OFFSET_CAPTURE
@param-out array<int|string, list<array{string|null, int<-1, max>}>> $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::isMatchAllWithOffsets()
- VersionBumper::bumpRequirement in vendor/
composer/ composer/ src/ Composer/ Package/ Version/ VersionBumper.php - Given a constraint, this returns a new constraint with the lower bound bumped to match the given package's version.
File
-
vendor/
composer/ pcre/ src/ Preg.php, line 374
Class
Namespace
Composer\PcreCode
public static function isMatchAllWithOffsets(string $pattern, string $subject, ?array &$matches, int $flags = 0, int $offset = 0) : bool {
return (bool) static::matchAllWithOffsets($pattern, $subject, $matches, $flags, $offset);
}