line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Locale::Msgfmt::Utils; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
61
|
use 5.008005; |
|
4
|
|
|
|
|
38
|
|
|
4
|
|
|
|
|
156
|
|
4
|
4
|
|
|
4
|
|
20
|
use strict; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
129
|
|
5
|
4
|
|
|
4
|
|
18
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
1692
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.15'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub character { |
10
|
1885
|
|
|
1885
|
0
|
2210
|
return map { pack "N*", $_ } @_; |
|
1885
|
|
|
|
|
5697
|
|
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub _from_character { |
14
|
0
|
|
|
0
|
|
0
|
return map { ord($_) } @_; |
|
0
|
|
|
|
|
0
|
|
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub from_character { |
18
|
0
|
|
|
0
|
0
|
0
|
return character( _from_character(@_) ); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub _from_hex { |
22
|
15
|
|
|
15
|
|
20
|
return map { hex($_) } @_; |
|
15
|
|
|
|
|
70
|
|
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub from_hex { |
26
|
15
|
|
|
15
|
0
|
35
|
return character( _from_hex(@_) ); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub _from_string { |
30
|
0
|
|
|
0
|
|
0
|
return split //, join '', @_; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub from_string { |
34
|
0
|
|
|
0
|
0
|
0
|
return join_string( from_character( _from_string(@_) ) ); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub join_string { |
38
|
0
|
|
|
0
|
0
|
0
|
return join '', @_; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub number_to_s { |
42
|
0
|
|
|
0
|
0
|
0
|
return sprintf "%d", shift; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub null_terminate { |
46
|
1344
|
|
|
1344
|
0
|
4623
|
return pack "Z*", shift; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub null { |
50
|
454
|
|
|
454
|
0
|
681
|
return null_terminate(""); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub eot { |
54
|
2
|
|
|
2
|
0
|
5
|
return chr(4); |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub mtime { |
58
|
30
|
|
|
30
|
0
|
38
|
return @{ [ stat(shift) ] }[9]; |
|
30
|
|
|
|
|
605
|
|
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__END__ |