mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
17 lines
391 B
Perl
17 lines
391 B
Perl
|
$first=$last=$idx=0;
|
||
|
while (<>) {
|
||
|
local($ucs,%rest) = split;
|
||
|
local($u)=hex($ucs);
|
||
|
if ($u - $last > 6) {
|
||
|
if ($last != 0) {
|
||
|
printf (" { start: %#06x, end: %#06x, idx: %5d },\n",
|
||
|
$first, $last, $idx - $first);
|
||
|
$idx += $last - $first + 1;
|
||
|
}
|
||
|
$first=$u;
|
||
|
}
|
||
|
$last=$u;
|
||
|
}
|
||
|
printf (" { start: %#06x, end: %#06x, idx: %5d },\n",
|
||
|
$first, $last, $idx - $first);
|