-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDictionaryInfo.pm6
127 lines (74 loc) · 2 KB
/
DictionaryInfo.pm6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
use v6;
unit class MeCab::DictionaryInfo:auth<zef:titsuki>:ver<0.0.19> is repr('CStruct');
enum DictionaryInfoType is export (
:MECAB_SYS_DIC(0),
:MECAB_USR_DIC(1),
:MECAB_UNK_DIC(2)
);
has Str $.filename;
has Str $.charset;
has uint32 $.size;
has int32 $!type;
has uint32 $.lsize;
has uint32 $.rsize;
has uint16 $.version;
has MeCab::DictionaryInfo $.next;
method type {
DictionaryInfoType($!type);
}
=begin pod
=head1 NAME
MeCab::DictionaryInfo - A Raku MeCab::DictionaryInfo class
=head1 SYNOPSIS
use MeCab;
use MeCab::DictionaryInfo;
use MeCab::Tagger;
my MeCab::Tagger $tagger .= new("-C");
my MeCab::DictionaryInfo $dictionary-info = $tagger.dictionary-info;
say $dictionary-info.filename;
=head1 DESCRIPTION
MeCab::DictionaryInfo is a Raku MeCab::DictionaryInfo class.
=head2 METHODS
=head3 filename
Defined as:
method filename() returns Str
Returns the filename.
=head3 charset
Defined as:
method charset() returns Str
Returns the charset.
=head3 size
Defined as:
method size() returns Int
Returns the size.
=head3 type
Defined as:
method type() returns DictionaryInfoType
Returns the C<DictionaryInfoType> constant.
=head3 lsize
Defined as:
method lsize() returns Int
Returns the lsize.
=head3 rsize
Defined as:
method rsize() returns Int
Returns the rsize.
=head3 version
Defined as:
method rsize() returns Int
Returns the version.
=head3 next
Defined as:
method next() returns MeCab::DictionaryInfo
Returns the next C<MeCab::DictionaryInfo> object.
=head2 CONSTANTS
=item1 C<:MECAB_SYS_DIC(0)>
=item1 C<:MECAB_USR_DIC(1)>
=item1 C<:MECAB_UNK_DIC(2)>
=head1 AUTHOR
titsuki <titsuki@cpan.org>
=head1 COPYRIGHT AND LICENSE
Copyright 2016 titsuki
libmecab ( http://taku910.github.io/mecab/ ) by Taku Kudo is licensed under the GPL, LGPL or BSD Licenses.
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.
=end pod