$match =
((\PREG_PATTERN_ORDER | \PREG_SET_ORDER
) &
$flags) ? 'preg_match_all' : 'preg_match';
if ($this->ignoreCase
) { $regexp .= 'i';
} set_error_handler(static function D
$t,
$m) { throw new InvalidArgumentException($m);
});
try { if (false ===
$match($regexp.'u',
$this->string,
$matches,
$flags | \PREG_UNMATCHED_AS_NULL,
$offset)) { throw new RuntimeException('Matching failed with error: '.
preg_last_error_msg());
} } finally { restore_error_handler();
} return $matches;
} public function normalize(int
$form = self::NFC
):
static { if (!\
in_array($form,
[self::NFC, self::NFD, self::NFKC, self::NFKD
])) {