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

Breadcrumb

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

function UnicodeString::replaceMatches

Overrides AbstractUnicodeString::replaceMatches

File

vendor/symfony/string/UnicodeString.php, line 267

Class

UnicodeString
Represents a string of Unicode grapheme clusters encoded as UTF-8.

Namespace

Symfony\Component\String

Code

public function replaceMatches(string $fromRegexp, string|callable $to) : static {
    $str = parent::replaceMatches($fromRegexp, $to);
    normalizer_is_normalized($str->string) ?: ($str->string = normalizer_normalize($str->string));
    return $str;
}
RSS feed
Powered by Drupal