mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
2fb2e75ae0
1998-04-26 18:44 Ulrich Drepper <drepper@cygnus.com> * iconvdata/Makefile: Correct rules to generate gap table. * iconvdata/gap.pl: Simplify.
17 lines
373 B
Raku
17 lines
373 B
Raku
$first=$last=$idx=0;
|
|
while (<>) {
|
|
local($ucs,$rest) = split;
|
|
local($u)=hex($ucs);
|
|
if ($u - $last > 6) {
|
|
if ($last != 0) {
|
|
printf (" { start: 0x%04x, end: 0x%04x, idx: %5d },\n",
|
|
$first, $last, $idx);
|
|
$idx -= $u - $last - 1;
|
|
}
|
|
$first=$u;
|
|
}
|
|
$last=$u;
|
|
}
|
|
printf (" { start: 0x%04x, end: 0x%04x, idx: %5d },\n",
|
|
$first, $last, $idx);
|