line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::Domain; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1162
|
use Locale::gettext; |
|
1
|
|
|
|
|
17065
|
|
|
1
|
|
|
|
|
197
|
|
4
|
1
|
|
|
1
|
|
14
|
use Exporter; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
43
|
|
5
|
1
|
|
|
1
|
|
6
|
use vars qw: $VERSION @ISA @EXPORT_OK :; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
308
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
$VERSION = '0.9'; |
8
|
|
|
|
|
|
|
# $Id: Domain.pm,v 1.1 2001/12/13 21:46:17 jgsmith Exp $ |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
@ISA = qw: Exporter :; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
@EXPORT_OK = qw: pushtextdomain poptextdomain :; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
my @textdomainstack; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub pushtextdomain($) { |
18
|
0
|
|
|
0
|
0
|
|
push @textdomainstack, textdomain(shift); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub poptextdomain() { |
22
|
0
|
|
|
0
|
0
|
|
return textdomain(pop @textdomainstack); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub new { |
27
|
0
|
0
|
|
0
|
0
|
|
bless textdomain $_[1], ref $_[0] ? ref $_[0] : $_[0]; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
|
|
sub DESTROY { textdomain $_[0]; } |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
__END__ |