| 1 | # Copyright 2004 by Audrey Tang <cpan@audreyt.org> | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | package Win32::Exe::Resource; | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 5 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | 5 | ▶ | use base 'Win32::Exe::Base'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 16 | ▶ | sub object { | ||||||||||||||||||
|
Subroutine
object: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 9 | 16 | my ($self) = @_; | |||||||||||||||||||
| 10 | 16 | return $self; | |||||||||||||||||||
| 11 | } | ||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 0 | ▶ | sub path { | ||||||||||||||||||
|
Subroutine
path: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 14 | 0 | my ($self) = @_; | |||||||||||||||||||
| 15 | 0 | return $self->parent->path; | |||||||||||||||||||
| 16 | } | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | 13 | ▶ | sub CodePage { | ||||||||||||||||||
|
Subroutine
CodePage: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 19 | 13 | return 1252; | |||||||||||||||||||
| 20 | } | ||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | 25 | ▶ | sub PathName { | ||||||||||||||||||
|
Subroutine
PathName: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||||||||||||
| 23 | 25 | my ($self) = @_; | |||||||||||||||||||
| 24 | 25 | ▶ | return $self->{pathname} || $self->first_parent('ResourceEntry')->PathName; | ||||||||||||||||||
|
Condition66%2/3
$self->{'pathname'} || $self->first_parent('ResourceEntry')->PathName
MC/DC0%0/2
$self->{'pathname'} || $self->first_parent('ResourceEntry')->PathName
$self->{'pathname'}
$self->first_parent('ResourceEntry')->PathName
Truth table66%2/3
A || B
A= $self->{'pathname'}B= $self->first_parent('ResourceEntry')->PathName
| |||||||||||||||||||||
| 25 | } | ||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | 5 | ▶ | sub SetPathName { | ||||||||||||||||||
|
Subroutine
SetPathName: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 28 | 5 | my ($self, $value) = @_; | |||||||||||||||||||
| 29 | 5 | $self->{pathname} = $value; | |||||||||||||||||||
| 30 | } | ||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | 8 | ▶ | sub Data { | ||||||||||||||||||
|
Subroutine
Data: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 33 | 8 | my ($self) = @_; | |||||||||||||||||||
| 34 | 8 | return $self->dump; | |||||||||||||||||||
| 35 | } | ||||||||||||||||||||
| 36 | |||||||||||||||||||||
| 37 | 5 | 1; | |||||||||||||||||||