line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::ClearSilver::Compat; |
2
|
1
|
|
|
1
|
|
29058
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
42
|
|
3
|
1
|
|
|
1
|
|
612
|
use Text::ClearSilver; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
41
|
|
4
|
1
|
|
|
1
|
|
1054
|
use Symbol (); |
|
1
|
|
|
|
|
1162
|
|
|
1
|
|
|
|
|
34
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
8
|
no warnings qw(once); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
418
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
$INC{'ClearSilver.pm'} = __FILE__; |
9
|
|
|
|
|
|
|
$INC{'Data/ClearSilver/HDF.pm'} = __FILE__; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
package Text::ClearSilver::HDF; |
12
|
|
|
|
|
|
|
# ClearSilver::HDF is a subclass of Text::ClearSilver::HDF |
13
|
|
|
|
|
|
|
@ClearSilver::HDF::ISA = (__PACKAGE__); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
*setValue = \&set_value; |
16
|
|
|
|
|
|
|
*getValue = \&get_value; |
17
|
|
|
|
|
|
|
*readFile = \&read_file; |
18
|
|
|
|
|
|
|
*readString= \&read_string; |
19
|
|
|
|
|
|
|
*writeFile = \&write_file; |
20
|
|
|
|
|
|
|
*getObj = \&get_obj; |
21
|
|
|
|
|
|
|
*objChild = \&obj_child; |
22
|
|
|
|
|
|
|
*getChild = \&get_child; |
23
|
|
|
|
|
|
|
*objValue = \&obj_value; |
24
|
|
|
|
|
|
|
*objName = \&obj_name; |
25
|
|
|
|
|
|
|
*objNext = \&obj_next; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub sortObj { |
28
|
4
|
|
|
4
|
|
22901
|
my($self, $func_name) = @_; |
29
|
4
|
|
|
|
|
20
|
my $func_sym = Symbol::qualify_to_ref($func_name, scalar caller); |
30
|
4
|
|
|
|
|
90
|
$self->sort_obj(*{$func_sym}{CODE}); |
|
4
|
|
|
|
|
44
|
|
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
*setSymlink = \&set_symlink; |
34
|
|
|
|
|
|
|
*removeTree = \&remove_tree; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
# Data::ClearSilver::HDF is a subclass of Text::ClearSilver::HDF |
37
|
|
|
|
|
|
|
@Data::ClearSilver::HDF::ISA = ('ClearSilver::HDF'); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
*hdf = \&new; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
package Text::ClearSilver::CS; |
42
|
|
|
|
|
|
|
# ClearSilver::CS is a subclass of Text::ClearSilver::CS |
43
|
|
|
|
|
|
|
@ClearSilver::CS::ISA = (__PACKAGE__); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub displayError{ |
46
|
0
|
|
|
0
|
|
|
return 'Text::ClearSilver::Compat: displayError() is not supported'; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
*parseFile = \&parse_file; |
50
|
|
|
|
|
|
|
*parseString = \&parse_string; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
__END__ |