GIF87a;
# NOTE: Derived from blib/lib/NetAddr/IP.pm. # Changes made here will be lost when autosplit is run again. # See AutoSplit.pm. package NetAddr::IP; #line 1485 "blib/lib/NetAddr/IP.pm (autosplit into blib/lib/auto/NetAddr/IP/re6.al)" sub re6($) { my @net = split('',sprintf("%04X%04X%04X%04X%04X%04X%04X%04X",unpack('n8',$_[0]->network->{addr}))); my @brd = split('',sprintf("%04X%04X%04X%04X%04X%04X%04X%04X",unpack('n8',$_[0]->broadcast->{addr}))); my @dig; foreach(0..$#net) { my $n = $net[$_]; my $b = $brd[$_]; my $m; if ($n.'' eq $b.'') { if ($n =~ /\d/) { push @dig, $n; } else { push @dig, '['.(lc $n).$n.']'; } } else { my $n = $net[$_]; my $b = $brd[$_]; if ($n.'' eq 0 && $b =~ /F/) { push @dig, 'x'; } elsif ($n =~ /\d/ && $b =~ /\d/) { push @dig, '['.$n.'-'.$b.']'; } elsif ($n =~ /[A-F]/ && $b =~ /[A-F]/) { $n .= '-'.$b; push @dig, '['.(lc $n).$n.']'; } elsif ($n =~ /\d/ && $b =~ /[A-F]/) { $m = ($n == 9) ? 9 : $n .'-9'; if ($b =~ /A/) { $m .= 'aA'; } else { $b = 'A-'. $b; $m .= (lc $b). $b; } push @dig, '['.$m.']'; } elsif ($n =~ /[A-F]/ && $b =~ /\d/) { if ($n =~ /A/) { $m = 'aA'; } else { $n .= '-F'; $m = (lc $n).$n; } if ($b == 9) { $m .= 9; } else { $m .= $b .'-9'; } push @dig, '['.$m.']'; } } } my @grp; do { my $grp = join('',splice(@dig,0,4)); if ($grp =~ /^(0+)/) { my $l = length($1); if ($l == 4) { $grp = '0{1,4}'; } else { $grp =~ s/^${1}/0\{0,$l\}/; } } if ($grp =~ /(x+)$/) { my $l = length($1); if ($l == 4) { $grp = '[0-9a-fA-F]{1,4}'; } else { $grp =~ s/x+/\[0\-9a\-fA\-F\]\{$l\}/; } } push @grp, $grp; } while @dig > 0; return '('. join(':',@grp) .')'; } # end of NetAddr::IP::re6 1;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
InetBase | Folder | 0755 |
|
|
Util | Folder | 0755 |
|
|
UtilPP | Folder | 0755 |
|
|
.packlist | File | 3.61 KB | 0644 |
|
_compV6.al | File | 1 KB | 0444 |
|
_compact_v6.al | File | 1.01 KB | 0444 |
|
_splitplan.al | File | 2.91 KB | 0444 |
|
_splitref.al | File | 936 B | 0444 |
|
autosplit.ix | File | 388 B | 0444 |
|
canon.al | File | 362 B | 0444 |
|
coalesce.al | File | 1.35 KB | 0444 |
|
compactref.al | File | 1.67 KB | 0444 |
|
do_prefix.al | File | 891 B | 0444 |
|
hostenum.al | File | 329 B | 0444 |
|
mod_version.al | File | 427 B | 0444 |
|
nprefix.al | File | 603 B | 0444 |
|
prefix.al | File | 605 B | 0444 |
|
re.al | File | 1.4 KB | 0444 |
|
re6.al | File | 1.83 KB | 0444 |
|
short.al | File | 500 B | 0444 |
|
wildcard.al | File | 485 B | 0444 |
|