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
|
|
1143
|
use base qw(Number::Phone::StubCountry); |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
203
|
|
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
2
|
|
13
|
use strict; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
64
|
|
23
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
55
|
|
24
|
2
|
|
|
2
|
|
12
|
use utf8; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
13
|
|
25
|
|
|
|
|
|
|
our $VERSION = 1.20230307181421; |
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
|
|
|
|
|
|
|
63\\d{3}| |
89
|
|
|
|
|
|
|
73(?: |
90
|
|
|
|
|
|
|
0[0-5]\\d| |
91
|
|
|
|
|
|
|
140 |
92
|
|
|
|
|
|
|
) |
93
|
|
|
|
|
|
|
)\\d{3}| |
94
|
|
|
|
|
|
|
[67]200[01]\\d{3} |
95
|
|
|
|
|
|
|
', |
96
|
|
|
|
|
|
|
'pager' => '', |
97
|
|
|
|
|
|
|
'personal_number' => '', |
98
|
|
|
|
|
|
|
'specialrate' => '', |
99
|
|
|
|
|
|
|
'toll_free' => '', |
100
|
|
|
|
|
|
|
'voip' => ' |
101
|
|
|
|
|
|
|
30(?: |
102
|
|
|
|
|
|
|
0[01]\\d\\d| |
103
|
|
|
|
|
|
|
12(?: |
104
|
|
|
|
|
|
|
11| |
105
|
|
|
|
|
|
|
20 |
106
|
|
|
|
|
|
|
) |
107
|
|
|
|
|
|
|
)\\d\\d |
108
|
|
|
|
|
|
|
' |
109
|
|
|
|
|
|
|
}; |
110
|
|
|
|
|
|
|
my %areanames = (); |
111
|
|
|
|
|
|
|
$areanames{en} = {"68681", "Kiritimati", |
112
|
|
|
|
|
|
|
"686654", "Gilbert\ Islands", |
113
|
|
|
|
|
|
|
"68642", "Nonouti", |
114
|
|
|
|
|
|
|
"68685", "Kanton", |
115
|
|
|
|
|
|
|
"6867538", "Line\ Islands", |
116
|
|
|
|
|
|
|
"68626", "Betio", |
117
|
|
|
|
|
|
|
"68647", "Nikunau", |
118
|
|
|
|
|
|
|
"68624", "Bairiki", |
119
|
|
|
|
|
|
|
"68633", "Abaiang", |
120
|
|
|
|
|
|
|
"68629", "Bikenibeu", |
121
|
|
|
|
|
|
|
"686751", "Betio", |
122
|
|
|
|
|
|
|
"68644", "Tabiteuea\ South", |
123
|
|
|
|
|
|
|
"68627", "Tarawa", |
124
|
|
|
|
|
|
|
"68631", "North\ Tarawa", |
125
|
|
|
|
|
|
|
"68649", "Arorae", |
126
|
|
|
|
|
|
|
"68635", "Butaritari", |
127
|
|
|
|
|
|
|
"68638", "Maiana", |
128
|
|
|
|
|
|
|
"68683", "Fanning", |
129
|
|
|
|
|
|
|
"6867540", "Phoenix\ Islands", |
130
|
|
|
|
|
|
|
"68622", "Bairiki", |
131
|
|
|
|
|
|
|
"686655", "Phoenix\ Islands", |
132
|
|
|
|
|
|
|
"68672700", "Gilbert\ Islands", |
133
|
|
|
|
|
|
|
"68646", "Beru", |
134
|
|
|
|
|
|
|
"686750", "Bairiki", |
135
|
|
|
|
|
|
|
"686652", "Bikenibeu", |
136
|
|
|
|
|
|
|
"686752", "Bikenibeu", |
137
|
|
|
|
|
|
|
"68623", "Bairiki", |
138
|
|
|
|
|
|
|
"68645", "Onotoa", |
139
|
|
|
|
|
|
|
"686650", "Bairiki", |
140
|
|
|
|
|
|
|
"68682", "Kiritimati", |
141
|
|
|
|
|
|
|
"68639", "Kuria", |
142
|
|
|
|
|
|
|
"68641", "Abemama", |
143
|
|
|
|
|
|
|
"68634", "Marakei", |
144
|
|
|
|
|
|
|
"6867530", "Gilbert\ Islands", |
145
|
|
|
|
|
|
|
"68648", "Tamana", |
146
|
|
|
|
|
|
|
"686755", "Phoenix\ Islands", |
147
|
|
|
|
|
|
|
"68636", "Makin", |
148
|
|
|
|
|
|
|
"68640", "Aranuka", |
149
|
|
|
|
|
|
|
"68684", "Washington", |
150
|
|
|
|
|
|
|
"68632", "North\ Tarawa", |
151
|
|
|
|
|
|
|
"686651", "Betio", |
152
|
|
|
|
|
|
|
"68621", "Bairiki", |
153
|
|
|
|
|
|
|
"68625", "Betio", |
154
|
|
|
|
|
|
|
"68643", "Tabiteuea\ North", |
155
|
|
|
|
|
|
|
"68637", "Banaba", |
156
|
|
|
|
|
|
|
"68628", "Bikenibeu", |
157
|
|
|
|
|
|
|
"686653", "Gilbert\ Islands", |
158
|
|
|
|
|
|
|
"6867548", "Line\ Islands",}; |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
sub new { |
161
|
10
|
|
|
10
|
1
|
24
|
my $class = shift; |
162
|
10
|
|
|
|
|
19
|
my $number = shift; |
163
|
10
|
|
|
|
|
60
|
$number =~ s/(^\+686|\D)//g; |
164
|
10
|
|
|
|
|
56
|
my $self = bless({ country_code => '686', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class); |
165
|
10
|
100
|
|
|
|
53
|
return $self if ($self->is_valid()); |
166
|
1
|
|
|
|
|
4
|
$number =~ s/^(?:0)//; |
167
|
1
|
|
|
|
|
10
|
$self = bless({ country_code => '686', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class); |
168
|
1
|
50
|
|
|
|
4
|
return $self->is_valid() ? $self : undef; |
169
|
|
|
|
|
|
|
} |
170
|
|
|
|
|
|
|
1; |