require __DIR__.'/vendor/autoload.php';
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
use Symfony\Component\VarExporter\VarExporter;
Builder::
cleanTarget();
$emojisCodePoints = Builder::
getEmojisCodePoints();
Builder::
saveRules(Builder::
buildRules($emojisCodePoints));
Builder::
saveRules(Builder::
buildStripRules($emojisCodePoints));
Builder::
saveRules(Builder::
buildGitHubRules($emojisCodePoints));
Builder::
saveRules(Builder::
buildSlackRules($emojisCodePoints));
final class Builder{ private const TARGET_DIR = __DIR__.'/../data/transliterator/emoji/';
public static function getEmojisCodePoints(): array
{ $lines =
file(__DIR__.'/vendor/emoji-test.txt'
);
$emojisCodePoints =
[];