| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package I22r::Translate::Result; |
|
2
|
12
|
|
|
12
|
|
47652
|
use Moose; |
|
|
12
|
|
|
|
|
594090
|
|
|
|
12
|
|
|
|
|
121
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.96'; |
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has id => ( is => 'ro', isa => 'Str', required => 1 ); |
|
7
|
|
|
|
|
|
|
has olang => ( is => 'ro', isa => 'Str', required => 1, ); |
|
8
|
|
|
|
|
|
|
has otext => ( is => 'ro', isa => 'Str', required => 1 ); |
|
9
|
|
|
|
|
|
|
has lang => ( is => 'ro', isa => 'Str', required => 1, ); |
|
10
|
|
|
|
|
|
|
has text => ( is => 'ro', isa => 'Str', required => 1 ); |
|
11
|
|
|
|
|
|
|
has source => ( is => 'ro', isa => 'Str', required => 1, |
|
12
|
|
|
|
|
|
|
default => sub { |
|
13
|
|
|
|
|
|
|
my $name = caller(1); |
|
14
|
|
|
|
|
|
|
$name =~ s/.*:://; |
|
15
|
|
|
|
|
|
|
$name; |
|
16
|
|
|
|
|
|
|
} ); |
|
17
|
|
|
|
|
|
|
has length => ( is => 'ro', isa => 'Int' ); |
|
18
|
|
|
|
|
|
|
has time => ( is => 'ro', isa => 'Int' ); |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub to_hash { |
|
21
|
2
|
|
|
2
|
0
|
4
|
my $self = shift; |
|
22
|
2
|
|
|
|
|
4
|
my $h = { }; |
|
23
|
2
|
|
|
|
|
25
|
$h->{uc $_} = $self->{$_} for keys %$self; |
|
24
|
2
|
|
|
|
|
90
|
return $h; |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
28
|
|
|
|
|
|
|
1; |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
I22r::Translate::Result - translation result object |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Internal translation result object for the |
|
37
|
|
|
|
|
|
|
L<I22r::Translate> distribution. |
|
38
|
|
|
|
|
|
|
If you're not developing a backend for this distribution, |
|
39
|
|
|
|
|
|
|
you probably don't need to worry about what this class does. |
|
40
|
|
|
|
|
|
|
If you are developing a backend, you can just look at |
|
41
|
|
|
|
|
|
|
the source. |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
L<I22r::Translate> |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |