line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package URI::file::FAT; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
14
|
use strict; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
73
|
|
4
|
1
|
|
|
1
|
|
13
|
use warnings; |
|
1
|
|
|
|
|
12
|
|
|
1
|
|
|
|
|
79
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
19
|
use parent 'URI::file::Win32'; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
22
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '5.19'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub fix_path |
11
|
|
|
|
|
|
|
{ |
12
|
2
|
|
|
2
|
0
|
4
|
shift; # class |
13
|
2
|
|
|
|
|
5
|
for (@_) { |
14
|
|
|
|
|
|
|
# turn it into 8.3 names |
15
|
6
|
|
|
|
|
18
|
my @p = map uc, split(/\./, $_, -1); |
16
|
6
|
50
|
|
|
|
16
|
return if @p > 2; # more than 1 dot is not allowed |
17
|
6
|
100
|
|
|
|
13
|
@p = ("") unless @p; # split bug? (returns nothing when splitting "") |
18
|
6
|
|
|
|
|
10
|
$_ = substr($p[0], 0, 8); |
19
|
6
|
100
|
|
|
|
16
|
if (@p > 1) { |
20
|
1
|
|
|
|
|
2
|
my $ext = substr($p[1], 0, 3); |
21
|
1
|
50
|
|
|
|
6
|
$_ .= ".$ext" if length $ext; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
2
|
|
|
|
|
7
|
1; # ok |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |