elfloader3-linux/tools/keys.php
2024-10-03 14:17:00 +03:00

14 lines
347 B
PHP

<?php
$switch = [];
foreach (explode("\n", trim(file_get_contents("a"))) as $line) {
list ($qt_name) = preg_split("/\s+/", $line);
$name = str_replace("QT::", "IPC_", strtoupper(preg_replace("/([a-z])([A-Z])/", "$1_$2", $qt_name)));
echo $name.",\n";
$switch[] = "case $qt_name: return $name;";
}
// echo implode("\n", $switch)."\n\n";