line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# automatically generated file, don't edit |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# Copyright 2023 David Cantrell, derived from data from libphonenumber |
6
|
|
|
|
|
|
|
# http://code.google.com/p/libphonenumber/ |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); |
9
|
|
|
|
|
|
|
# you may not use this file except in compliance with the License. |
10
|
|
|
|
|
|
|
# You may obtain a copy of the License at |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0 |
13
|
|
|
|
|
|
|
# |
14
|
|
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software |
15
|
|
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, |
16
|
|
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
17
|
|
|
|
|
|
|
# See the License for the specific language governing permissions and |
18
|
|
|
|
|
|
|
# limitations under the License. |
19
|
|
|
|
|
|
|
package Number::Phone::StubCountry::KI; |
20
|
2
|
|
|
2
|
|
1219
|
use base qw(Number::Phone::StubCountry); |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
209
|
|
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
2
|
|
23
|
use strict; |
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
44
|
|
23
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
49
|
|
24
|
2
|
|
|
2
|
|
15
|
use utf8; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
12
|
|
25
|
|
|
|
|
|
|
our $VERSION = 1.20230903131447; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my $formatters = []; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
my $validators = { |
30
|
|
|
|
|
|
|
'fixed_line' => ' |
31
|
|
|
|
|
|
|
(?: |
32
|
|
|
|
|
|
|
[24]\\d| |
33
|
|
|
|
|
|
|
3[1-9]| |
34
|
|
|
|
|
|
|
50| |
35
|
|
|
|
|
|
|
65(?: |
36
|
|
|
|
|
|
|
02[12]| |
37
|
|
|
|
|
|
|
12[56]| |
38
|
|
|
|
|
|
|
22[89]| |
39
|
|
|
|
|
|
|
[3-5]00 |
40
|
|
|
|
|
|
|
)| |
41
|
|
|
|
|
|
|
7(?: |
42
|
|
|
|
|
|
|
27\\d\\d| |
43
|
|
|
|
|
|
|
3100| |
44
|
|
|
|
|
|
|
5(?: |
45
|
|
|
|
|
|
|
02[12]| |
46
|
|
|
|
|
|
|
12[56]| |
47
|
|
|
|
|
|
|
22[89]| |
48
|
|
|
|
|
|
|
[34](?: |
49
|
|
|
|
|
|
|
00| |
50
|
|
|
|
|
|
|
81 |
51
|
|
|
|
|
|
|
)| |
52
|
|
|
|
|
|
|
500 |
53
|
|
|
|
|
|
|
) |
54
|
|
|
|
|
|
|
)| |
55
|
|
|
|
|
|
|
8[0-5] |
56
|
|
|
|
|
|
|
)\\d{3} |
57
|
|
|
|
|
|
|
', |
58
|
|
|
|
|
|
|
'geographic' => ' |
59
|
|
|
|
|
|
|
(?: |
60
|
|
|
|
|
|
|
[24]\\d| |
61
|
|
|
|
|
|
|
3[1-9]| |
62
|
|
|
|
|
|
|
50| |
63
|
|
|
|
|
|
|
65(?: |
64
|
|
|
|
|
|
|
02[12]| |
65
|
|
|
|
|
|
|
12[56]| |
66
|
|
|
|
|
|
|
22[89]| |
67
|
|
|
|
|
|
|
[3-5]00 |
68
|
|
|
|
|
|
|
)| |
69
|
|
|
|
|
|
|
7(?: |
70
|
|
|
|
|
|
|
27\\d\\d| |
71
|
|
|
|
|
|
|
3100| |
72
|
|
|
|
|
|
|
5(?: |
73
|
|
|
|
|
|
|
02[12]| |
74
|
|
|
|
|
|
|
12[56]| |
75
|
|
|
|
|
|
|
22[89]| |
76
|
|
|
|
|
|
|
[34](?: |
77
|
|
|
|
|
|
|
00| |
78
|
|
|
|
|
|
|
81 |
79
|
|
|
|
|
|
|
)| |
80
|
|
|
|
|
|
|
500 |
81
|
|
|
|
|
|
|
) |
82
|
|
|
|
|
|
|
)| |
83
|
|
|
|
|
|
|
8[0-5] |
84
|
|
|
|
|
|
|
)\\d{3} |
85
|
|
|
|
|
|
|
', |
86
|
|
|
|
|
|
|
'mobile' => ' |
87
|
|
|
|
|
|
|
(?: |
88
|
|
|
|
|
|
|
6200[01]| |
89
|
|
|
|
|
|
|
7(?: |
90
|
|
|
|
|
|
|
310[1-9]| |
91
|
|
|
|
|
|
|
5(?: |
92
|
|
|
|
|
|
|
02[03-9]| |
93
|
|
|
|
|
|
|
12[0-47-9]| |
94
|
|
|
|
|
|
|
22[0-7]| |
95
|
|
|
|
|
|
|
[34](?: |
96
|
|
|
|
|
|
|
0[1-9]| |
97
|
|
|
|
|
|
|
8[02-9] |
98
|
|
|
|
|
|
|
)| |
99
|
|
|
|
|
|
|
50[1-9] |
100
|
|
|
|
|
|
|
) |
101
|
|
|
|
|
|
|
) |
102
|
|
|
|
|
|
|
)\\d{3}| |
103
|
|
|
|
|
|
|
(?: |
104
|
|
|
|
|
|
|
63\\d\\d| |
105
|
|
|
|
|
|
|
7(?: |
106
|
|
|
|
|
|
|
(?: |
107
|
|
|
|
|
|
|
[0146-9]\\d| |
108
|
|
|
|
|
|
|
2[0-689] |
109
|
|
|
|
|
|
|
)\\d| |
110
|
|
|
|
|
|
|
3(?: |
111
|
|
|
|
|
|
|
[02-9]\\d| |
112
|
|
|
|
|
|
|
1[1-9] |
113
|
|
|
|
|
|
|
)| |
114
|
|
|
|
|
|
|
5(?: |
115
|
|
|
|
|
|
|
[0-2][013-9]| |
116
|
|
|
|
|
|
|
[34][1-79]| |
117
|
|
|
|
|
|
|
5[1-9]| |
118
|
|
|
|
|
|
|
[6-9]\\d |
119
|
|
|
|
|
|
|
) |
120
|
|
|
|
|
|
|
) |
121
|
|
|
|
|
|
|
)\\d{4} |
122
|
|
|
|
|
|
|
', |
123
|
|
|
|
|
|
|
'pager' => '', |
124
|
|
|
|
|
|
|
'personal_number' => '', |
125
|
|
|
|
|
|
|
'specialrate' => '', |
126
|
|
|
|
|
|
|
'toll_free' => '', |
127
|
|
|
|
|
|
|
'voip' => ' |
128
|
|
|
|
|
|
|
30(?: |
129
|
|
|
|
|
|
|
0[01]\\d\\d| |
130
|
|
|
|
|
|
|
12(?: |
131
|
|
|
|
|
|
|
11| |
132
|
|
|
|
|
|
|
20 |
133
|
|
|
|
|
|
|
) |
134
|
|
|
|
|
|
|
)\\d\\d |
135
|
|
|
|
|
|
|
' |
136
|
|
|
|
|
|
|
}; |
137
|
|
|
|
|
|
|
my %areanames = (); |
138
|
|
|
|
|
|
|
$areanames{en} = {"68625", "Betio", |
139
|
|
|
|
|
|
|
"68645", "Onotoa", |
140
|
|
|
|
|
|
|
"686652", "Bikenibeu", |
141
|
|
|
|
|
|
|
"68675126", "Betio", |
142
|
|
|
|
|
|
|
"68634", "Marakei", |
143
|
|
|
|
|
|
|
"68638", "Maiana", |
144
|
|
|
|
|
|
|
"68633", "Abaiang", |
145
|
|
|
|
|
|
|
"686651", "Betio", |
146
|
|
|
|
|
|
|
"68672700", "Gilbert\ Islands", |
147
|
|
|
|
|
|
|
"68627", "Tarawa", |
148
|
|
|
|
|
|
|
"68647", "Nikunau", |
149
|
|
|
|
|
|
|
"68675500", "Phoenix\ Islands", |
150
|
|
|
|
|
|
|
"68675228", "Bikenibeu", |
151
|
|
|
|
|
|
|
"686654", "Gilbert\ Islands", |
152
|
|
|
|
|
|
|
"68675400", "Phoenix\ Islands", |
153
|
|
|
|
|
|
|
"686655", "Phoenix\ Islands", |
154
|
|
|
|
|
|
|
"68675229", "Bikenibeu", |
155
|
|
|
|
|
|
|
"68683", "Fanning", |
156
|
|
|
|
|
|
|
"68626", "Betio", |
157
|
|
|
|
|
|
|
"686653", "Gilbert\ Islands", |
158
|
|
|
|
|
|
|
"68646", "Beru", |
159
|
|
|
|
|
|
|
"68621", "Bairiki", |
160
|
|
|
|
|
|
|
"68675300", "Gilbert\ Islands", |
161
|
|
|
|
|
|
|
"68639", "Kuria", |
162
|
|
|
|
|
|
|
"68641", "Abemama", |
163
|
|
|
|
|
|
|
"68684", "Washington", |
164
|
|
|
|
|
|
|
"686650", "Bairiki", |
165
|
|
|
|
|
|
|
"68622", "Bairiki", |
166
|
|
|
|
|
|
|
"68675021", "Bairiki", |
167
|
|
|
|
|
|
|
"68642", "Nonouti", |
168
|
|
|
|
|
|
|
"68637", "Banaba", |
169
|
|
|
|
|
|
|
"68675022", "Bairiki", |
170
|
|
|
|
|
|
|
"68636", "Makin", |
171
|
|
|
|
|
|
|
"68685", "Kanton", |
172
|
|
|
|
|
|
|
"68631", "North\ Tarawa", |
173
|
|
|
|
|
|
|
"68629", "Bikenibeu", |
174
|
|
|
|
|
|
|
"68649", "Arorae", |
175
|
|
|
|
|
|
|
"68632", "North\ Tarawa", |
176
|
|
|
|
|
|
|
"68640", "Aranuka", |
177
|
|
|
|
|
|
|
"68635", "Butaritari", |
178
|
|
|
|
|
|
|
"68675481", "Line\ Islands", |
179
|
|
|
|
|
|
|
"68681", "Kiritimati", |
180
|
|
|
|
|
|
|
"68675125", "Betio", |
181
|
|
|
|
|
|
|
"68644", "Tabiteuea\ South", |
182
|
|
|
|
|
|
|
"68682", "Kiritimati", |
183
|
|
|
|
|
|
|
"68624", "Bairiki", |
184
|
|
|
|
|
|
|
"68648", "Tamana", |
185
|
|
|
|
|
|
|
"68628", "Bikenibeu", |
186
|
|
|
|
|
|
|
"68675381", "Line\ Islands", |
187
|
|
|
|
|
|
|
"68623", "Bairiki", |
188
|
|
|
|
|
|
|
"68643", "Tabiteuea\ North",}; |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
sub new { |
191
|
10
|
|
|
10
|
1
|
35
|
my $class = shift; |
192
|
10
|
|
|
|
|
23
|
my $number = shift; |
193
|
10
|
|
|
|
|
60
|
$number =~ s/(^\+686|\D)//g; |
194
|
10
|
|
|
|
|
63
|
my $self = bless({ country_code => '686', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class); |
195
|
10
|
100
|
|
|
|
51
|
return $self if ($self->is_valid()); |
196
|
1
|
|
|
|
|
17
|
$number =~ s/^(?:0)//; |
197
|
1
|
|
|
|
|
11
|
$self = bless({ country_code => '686', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class); |
198
|
1
|
50
|
|
|
|
5
|
return $self->is_valid() ? $self : undef; |
199
|
|
|
|
|
|
|
} |
200
|
|
|
|
|
|
|
1; |