line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Gimei::Word; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
35
|
use warnings; |
|
5
|
|
|
|
|
7
|
|
|
5
|
|
|
|
|
155
|
|
4
|
5
|
|
|
5
|
|
57
|
use v5.22; |
|
5
|
|
|
|
|
14
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
|
|
25
|
use Class::Tiny qw ( |
7
|
|
|
|
|
|
|
kanji |
8
|
|
|
|
|
|
|
hiragana |
9
|
|
|
|
|
|
|
katakana |
10
|
|
|
|
|
|
|
romaji |
11
|
5
|
|
|
5
|
|
21
|
); |
|
5
|
|
|
|
|
8
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub BUILDARGS { |
14
|
44
|
|
|
44
|
0
|
1533
|
my ( $class, $aref ) = @_; |
15
|
|
|
|
|
|
|
|
16
|
44
|
|
|
|
|
130
|
my %args = ( |
17
|
|
|
|
|
|
|
kanji => $aref->[0], |
18
|
|
|
|
|
|
|
hiragana => $aref->[1], |
19
|
|
|
|
|
|
|
katakana => $aref->[2], |
20
|
|
|
|
|
|
|
); |
21
|
44
|
100
|
|
|
|
111
|
$args{romaji} = ucfirst( $aref->[3] ) if ( $aref->[3] ); |
22
|
|
|
|
|
|
|
|
23
|
44
|
|
|
|
|
99
|
return \%args; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub to_s { |
27
|
3
|
|
|
3
|
0
|
1005
|
my $self = shift; |
28
|
|
|
|
|
|
|
|
29
|
3
|
|
|
|
|
49
|
return sprintf( "%s, %s, %s, %s", |
30
|
|
|
|
|
|
|
$self->kanji, $self->hiragana, $self->katakana, $self->romaji ); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
1; |