summaryrefslogtreecommitdiff
path: root/iconvdata/gap.pl
diff options
context:
space:
mode:
Diffstat (limited to 'iconvdata/gap.pl')
-rw-r--r--iconvdata/gap.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/iconvdata/gap.pl b/iconvdata/gap.pl
new file mode 100644
index 0000000000..01ee9b2829
--- /dev/null
+++ b/iconvdata/gap.pl
@@ -0,0 +1,16 @@
+$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);