__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php declare(strict_types=1);
namespace Algo26\IdnaConvert\NamePrep;
class CaseFolding
{
/** @var CaseFoldingData */
private $caseFoldingData;
public function __construct()
{
$this->caseFoldingData = new CaseFoldingData();
}
public function apply(array $inputArray, string $idnaVersion): array
{
if ($idnaVersion == 2003) {
return $inputArray;
}
$outputArray = [];
foreach ($inputArray as $codePoint) {
if (isset($this->caseFoldingData->foldingMap[$codePoint])) {
foreach ($this->caseFoldingData->foldingMap[$codePoint] as $folded) {
$outputArray[] = $folded;
}
} else {
$outputArray[] = $codePoint;
}
}
return $outputArray;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| CaseFolding.php | File | 840 B | 0664 |
|
| CaseFoldingData.php | File | 42.96 KB | 0664 |
|
| CaseFoldingDataInterface.php | File | 112 B | 0664 |
|
| NamePrep.php | File | 10.89 KB | 0664 |
|
| NamePrepData2003.php | File | 33.25 KB | 0664 |
|
| NamePrepData2008.php | File | 142.29 KB | 0664 |
|
| NamePrepDataInterface.php | File | 83 B | 0664 |
|
| NamePrepInterface.php | File | 204 B | 0664 |
|