CodeExplorer getParentLocale example
$symbolsMap =
$this->symbolsMap;
array_unshift($transliterator,
static fn ($s) =>
$symbolsMap($s,
$locale));
} $unicodeString =
(new UnicodeString($string))->
ascii($transliterator);
if (\
is_array($this->symbolsMap
)) { $map = null;
if (isset($this->symbolsMap
[$locale])) { $map =
$this->symbolsMap
[$locale];
} else { $parent = self::
getParentLocale($locale);
if ($parent &&
isset($this->symbolsMap
[$parent])) { $map =
$this->symbolsMap
[$parent];
} } if ($map) { foreach ($map as $char =>
$replace) { $unicodeString =
$unicodeString->
replace($char, ' '.
$replace.' '
);
} } } $symbolsMap =
$this->symbolsMap;
array_unshift($transliterator,
static fn ($s) =>
$symbolsMap($s,
$locale));
} $unicodeString =
(new UnicodeString($string))->
ascii($transliterator);
if (\
is_array($this->symbolsMap
)) { $map = null;
if (isset($this->symbolsMap
[$locale])) { $map =
$this->symbolsMap
[$locale];
} else { $parent = self::
getParentLocale($locale);
if ($parent &&
isset($this->symbolsMap
[$parent])) { $map =
$this->symbolsMap
[$parent];
} } if ($map) { foreach ($map as $char =>
$replace) { $unicodeString =
$unicodeString->
replace($char, ' '.
$replace.' '
);
} } }