12 echo
"File $file does not exist.\n";
23 foreach ($lines as $line) {
25 if (
false !== $hashPos =
strpos($line,
'#')) {
26 $line =
substr($line, 0, $hashPos);
42 foreach (
explode(
' ', $strCodes) as $strCode) {
43 $codes[] =
intval($strCode, 16);
49 $origChar =
mb_chr($origCode);
51 foreach ($newCodes as $newCode) {
52 $newStr .=
mb_chr($newCode);
56 if ($mbNewStr !== $newStr) {
57 echo
"$type: $mbNewStr != $newStr\n";
76 $code =
intval($fields[0], 16);
77 $upperCase =
intval($fields[12], 16);
78 $lowerCase =
intval($fields[13], 16);
79 $titleCase =
intval($fields[14], 16);
91 $uppers[$upper][] = $chr;
93 $folds[$fold][] = $chr;
101 $code =
intval($fields[0], 16);
102 $status = $fields[1];
103 if ($status ==
'C' || $status ==
'S') {
104 $foldCode =
intval($fields[2], 16);
106 }
else if ($status ==
'F') {
117 $code =
intval($fields[0], 16);
trim(string $string, string $characters=" \n\r\t\v\0")
file_exists(string $filename)
file_get_contents(string $filename, bool $use_include_path=false, $context=null, int $offset=0, ?int $length=null)
explode(string $separator, string $string, int $limit=PHP_INT_MAX)
intval(mixed $value, int $base=10)
strpos(string $haystack, string $needle, int $offset=0)
array_map(?callable $callback, array $array, array ... $arrays)
count(Countable|array $value, int $mode=COUNT_NORMAL)
assert(mixed $assertion, Throwable|string|null $description=null)
substr(string $string, int $offset, ?int $length=null)
mb_strtoupper(string $string, ?string $encoding=null)
mb_convert_case(string $string, int $mode, ?string $encoding=null)
const MB_CASE_FOLD_SIMPLE
mb_chr(int $codepoint, ?string $encoding=null)
const MB_CASE_UPPER_SIMPLE
const MB_CASE_LOWER_SIMPLE
testSpecialCasing(string $input)
testSimpleCaseMap($type, int $origCode, int $newCode)
parseCodes(string $strCodes)
testUnicodeData(string $input)
testCaseFolding(string $input)
testCaseMap($type, int $origCode, array $newCodes)
parseDataFile(string $input)
error_reporting(?int $error_level=null)