$name =
$result->textContent;
$parts =
preg_split('//u',
$emoji, -1, \PREG_SPLIT_NO_EMPTY
);
$emojiCodePoints =
implode(' ',
array_map('dechex',
array_map('mb_ord',
$parts)));
if (!
array_key_exists($emojiCodePoints,
$emojisCodePoints)) { $ignored[] =
[ 'locale' =>
$locale,
'emoji' =>
$emoji,
'name' =>
$name,
];
continue;
} self::
testEmoji($emoji,
$locale);
$codePointsCount =
mb_strlen($emoji);
$mapsByLocale[$locale][$codePointsCount][$emoji] =
$name;
} } ksort($mapsByLocale);
foreach ($mapsByLocale as $locale =>
$maps) { $parentLocale =
$locale;
while (false !==
$i =
strrpos($parentLocale, '_'
)) {