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
|
|
1213
|
use base qw(Number::Phone::StubCountry); |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
218
|
|
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
2
|
|
19
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
54
|
|
23
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
64
|
|
24
|
2
|
|
|
2
|
|
15
|
use utf8; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
15
|
|
25
|
|
|
|
|
|
|
our $VERSION = 1.20230614174403; |
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} = {"68685", "Kanton", |
139
|
|
|
|
|
|
|
"68648", "Tamana", |
140
|
|
|
|
|
|
|
"68683", "Fanning", |
141
|
|
|
|
|
|
|
"68647", "Nikunau", |
142
|
|
|
|
|
|
|
"68634", "Marakei", |
143
|
|
|
|
|
|
|
"68637", "Banaba", |
144
|
|
|
|
|
|
|
"68644", "Tabiteuea\ South", |
145
|
|
|
|
|
|
|
"68626", "Betio", |
146
|
|
|
|
|
|
|
"68623", "Bairiki", |
147
|
|
|
|
|
|
|
"68625", "Betio", |
148
|
|
|
|
|
|
|
"68675400", "Phoenix\ Islands", |
149
|
|
|
|
|
|
|
"68675500", "Phoenix\ Islands", |
150
|
|
|
|
|
|
|
"686651", "Betio", |
151
|
|
|
|
|
|
|
"68638", "Maiana", |
152
|
|
|
|
|
|
|
"686650", "Bairiki", |
153
|
|
|
|
|
|
|
"686652", "Bikenibeu", |
154
|
|
|
|
|
|
|
"68649", "Arorae", |
155
|
|
|
|
|
|
|
"68675021", "Bairiki", |
156
|
|
|
|
|
|
|
"68632", "North\ Tarawa", |
157
|
|
|
|
|
|
|
"68681", "Kiritimati", |
158
|
|
|
|
|
|
|
"68642", "Nonouti", |
159
|
|
|
|
|
|
|
"68675300", "Gilbert\ Islands", |
160
|
|
|
|
|
|
|
"68672700", "Gilbert\ Islands", |
161
|
|
|
|
|
|
|
"68621", "Bairiki", |
162
|
|
|
|
|
|
|
"68639", "Kuria", |
163
|
|
|
|
|
|
|
"68635", "Butaritari", |
164
|
|
|
|
|
|
|
"68633", "Abaiang", |
165
|
|
|
|
|
|
|
"68640", "Aranuka", |
166
|
|
|
|
|
|
|
"68636", "Makin", |
167
|
|
|
|
|
|
|
"68627", "Tarawa", |
168
|
|
|
|
|
|
|
"68684", "Washington", |
169
|
|
|
|
|
|
|
"68675228", "Bikenibeu", |
170
|
|
|
|
|
|
|
"68628", "Bikenibeu", |
171
|
|
|
|
|
|
|
"686655", "Phoenix\ Islands", |
172
|
|
|
|
|
|
|
"68675381", "Line\ Islands", |
173
|
|
|
|
|
|
|
"686654", "Gilbert\ Islands", |
174
|
|
|
|
|
|
|
"68675229", "Bikenibeu", |
175
|
|
|
|
|
|
|
"68645", "Onotoa", |
176
|
|
|
|
|
|
|
"68643", "Tabiteuea\ North", |
177
|
|
|
|
|
|
|
"68646", "Beru", |
178
|
|
|
|
|
|
|
"68624", "Bairiki", |
179
|
|
|
|
|
|
|
"68675125", "Betio", |
180
|
|
|
|
|
|
|
"68675126", "Betio", |
181
|
|
|
|
|
|
|
"68682", "Kiritimati", |
182
|
|
|
|
|
|
|
"68629", "Bikenibeu", |
183
|
|
|
|
|
|
|
"68631", "North\ Tarawa", |
184
|
|
|
|
|
|
|
"68641", "Abemama", |
185
|
|
|
|
|
|
|
"68675022", "Bairiki", |
186
|
|
|
|
|
|
|
"68675481", "Line\ Islands", |
187
|
|
|
|
|
|
|
"686653", "Gilbert\ Islands", |
188
|
|
|
|
|
|
|
"68622", "Bairiki",}; |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
sub new { |
191
|
10
|
|
|
10
|
1
|
25
|
my $class = shift; |
192
|
10
|
|
|
|
|
20
|
my $number = shift; |
193
|
10
|
|
|
|
|
66
|
$number =~ s/(^\+686|\D)//g; |
194
|
10
|
|
|
|
|
65
|
my $self = bless({ country_code => '686', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class); |
195
|
10
|
100
|
|
|
|
52
|
return $self if ($self->is_valid()); |
196
|
1
|
|
|
|
|
6
|
$number =~ s/^(?:0)//; |
197
|
1
|
|
|
|
|
13
|
$self = bless({ country_code => '686', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class); |
198
|
1
|
50
|
|
|
|
3
|
return $self->is_valid() ? $self : undef; |
199
|
|
|
|
|
|
|
} |
200
|
|
|
|
|
|
|
1; |