diff -r 000000000000 -r 6474c204b198 intl/chardet/tools/gencyrillic.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/intl/chardet/tools/gencyrillic.pl Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,65 @@ +#!/usr/local/bin/perl + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +use StatKoi '.' ; + +open(FILE, "> ../src/nsCyrillicProb.h") or die "cannot open nsCyrillicDetector.h"; + +print FILE <{$key})) + { + $v = $table->{$key}; + } else { + $v = 0; + } + print FILE $v . ", \t"; + if( 7 == ( $j % 8) ) + { + print FILE "\n"; + } + } + print FILE "\n}, \n"; +} +print FILE "};\n"; +print FILE "#endif\n";