|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 27.58 GB of 70.42 GB (39.17%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
src/
courier-0.66.1/
unicode/
- drwxrwxrwx
|
Viewing file: mklinebreak.pl (1.59 KB) -rw-rw-rw-Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
#! /usr/bin/perl # # Compile LineBreak.txt into C array declarations. # # The array's structure is [firstchar, lastchar, class], giving the # linebreaking "class" for unicode character range firstchar-lastchar. # # The ranges are sorted in numerical order. # # An array gets generated for each block of 4096 unicode characters. # # Finally, two arrays get declared: a pointer to an array for each 4096 # unicode character block, and the number of elements in the array. # # The pointer is NULL for each block of 4096 unicode characters that is not # defined in LineBreak.txt # # By definition, a unicode character that is not listed in the array is # class XX.
use strict; use warnings; use mkcommon;
my %general_category;
open(UC, "<UnicodeData.txt") || die;
while (defined($_=<UC>)) { chomp;
my @f=split(/;/);
my $cp;
eval "\$cp=0x$f[0]";
$general_category{$cp}=$f[2]; }
my $obj=mkcommon->new;
open(F, "<LineBreak.txt") || die;
while (defined($_=<F>)) { chomp;
next unless /^([0-9A-F]+)(\.\.([0-9A-F]+))?\;([^\s][^\s])\s*/;
my $f=$1; my $l=$3; my $t=$4;
$l=$f unless $l;
eval "\$f=0x$f"; eval "\$l=0x$l";
next if $t eq "XX";
if ($t eq "SA") { while ($f <= $l) { die "Cannot find general_category for $f\n" unless exists $general_category{$f};
$obj->range($f, $f, $general_category{$f} eq "Mn" || $general_category{$f} eq "Mc" ? "UNICODE_LB_CM":"UNICODE_LB_AL"); # LB1 rule ++$f; } } else { $t="AL" if $t eq "AI" || $t eq "SG"; # LB1 rule
$obj->range($f, $l, "UNICODE_LB_$t"); } }
$obj->output;
|