line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Palm::Zetetic::Strip::Version; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
713
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
41
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use vars qw(@ISA $VERSION); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
274
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
require Exporter; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
@ISA = qw(Exporter); |
10
|
|
|
|
|
|
|
$VERSION = "1.02"; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new |
13
|
|
|
|
|
|
|
{ |
14
|
4
|
|
|
4
|
0
|
53
|
my $class = shift; |
15
|
4
|
|
|
|
|
3
|
my $hashed_key; |
16
|
4
|
|
|
|
|
7
|
my $self = {}; |
17
|
|
|
|
|
|
|
|
18
|
4
|
|
|
|
|
9
|
bless $self, $class; |
19
|
4
|
|
|
|
|
9
|
$self->set_version_string("0.5i"); |
20
|
4
|
|
|
|
|
10
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub set_version_string |
24
|
|
|
|
|
|
|
{ |
25
|
7
|
|
|
7
|
0
|
22
|
my ($self, $version) = @_; |
26
|
|
|
|
|
|
|
|
27
|
7
|
100
|
100
|
|
|
24
|
if (($version ne "0.5i") and ($version ne "1.0")) |
28
|
|
|
|
|
|
|
{ |
29
|
1
|
|
|
|
|
1
|
$version = "0.5i"; |
30
|
|
|
|
|
|
|
} |
31
|
7
|
|
|
|
|
19
|
$self->{version} = $version; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub get_version_string |
35
|
|
|
|
|
|
|
{ |
36
|
4
|
|
|
4
|
0
|
22
|
my ($self) = @_; |
37
|
4
|
|
|
|
|
17
|
return $self->{version}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub is_0_5i |
41
|
|
|
|
|
|
|
{ |
42
|
3
|
|
|
3
|
0
|
3
|
my ($self) = @_; |
43
|
3
|
|
|
|
|
12
|
return ($self->{version} eq "0.5i"); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub is_1_0 |
47
|
|
|
|
|
|
|
{ |
48
|
1
|
|
|
1
|
0
|
1
|
my ($self) = @_; |
49
|
1
|
|
|
|
|
4
|
return ($self->{version} eq "1.0"); |
50
|
|
|
|
|
|
|
} |