• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/punycode.php
  • Класс: CBXPunycode
  • Вызов: CBXPunycode::Combine
private function Combine($input)
{
	$inputLength = count($input);
	foreach (self::$rfc3454Table['ReplaceMap'] as $src => $target)
	{
		if ($target[0] != $input[0])
			continue;
		if (count($target) != $inputLength)
			continue;
		$hit = false;
		foreach ($input as $k => $v)
		{
			if ($v == $target[$k])
			{
				$hit = true;
			}
			else
			{
				$hit = false;
				break;
			}
		}
		if ($hit)
			return $src;
	}
	return false;
}