blib/lib/Number/Phone/StubCountry/KI.pm

filter: Statementstmt 100% 27 / 27 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 97.3% 36 / 37 CC 3 SCAR 6.2
CC
3
Cov
97%
new
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« blib/lib/Number/Phone/StubCountry/KG.pm ↑ Summary blib/lib/Number/Phone/StubCountry/KP.pm »
1 # automatically generated file, don't edit
2  
3  
4  
5 # Copyright 2026 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 ▶use base qw(Number::Phone::StubCountry);
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 2 our $VERSION = 1.20260904101550;
26  
27 2 my $formatters = [];
28  
29 2 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 2 my %areanames = ();
138 2 $areanames{en} = {"686654", "Gilbert\ Islands",
139 "68621", "Bairiki",
140 "68675229", "Bikenibeu",
141 "68672700", "Gilbert\ Islands",
142 "68675126", "Betio",
143 "68639", "Kuria",
144 "68627", "Tarawa",
145 "68685", "Kanton",
146 "68631", "North\ Tarawa",
147 "68646", "Beru",
148 "68675500", "Phoenix\ Islands",
149 "68629", "Bikenibeu",
150 "68637", "Banaba",
151 "68675228", "Bikenibeu",
152 "68682", "Kiritimati",
153 "68683", "Fanning",
154 "68649", "Arorae",
155 "68626", "Betio",
156 "68640", "Aranuka",
157 "68684", "Washington",
158 "68647", "Nikunau",
159 "686653", "Gilbert\ Islands",
160 "68641", "Abemama",
161 "68636", "Makin",
162 "686652", "Bikenibeu",
163 "68632", "North\ Tarawa",
164 "68633", "Abaiang",
165 "68675021", "Bairiki",
166 "68634", "Marakei",
167 "68648", "Tamana",
168 "68675300", "Gilbert\ Islands",
169 "68675381", "Line\ Islands",
170 "68622", "Bairiki",
171 "68623", "Bairiki",
172 "686650", "Bairiki",
173 "68645", "Onotoa",
174 "68624", "Bairiki",
175 "68625", "Betio",
176 "68675125", "Betio",
177 "68638", "Maiana",
178 "68644", "Tabiteuea\ South",
179 "68675481", "Line\ Islands",
180 "68642", "Nonouti",
181 "68643", "Tabiteuea\ North",
182 "686655", "Phoenix\ Islands",
183 "68635", "Butaritari",
184 "68681", "Kiritimati",
185 "68628", "Bikenibeu",
186 "68675400", "Phoenix\ Islands",
187 "68675022", "Bairiki",
188 "686651", "Betio",};
189 2 my $timezones = {
190 '' => [
191 'Pacific/Enderbury',
192 'Pacific/Kiritimati',
193 'Pacific/Tarawa'
194 ]
195 };
196  
197 10 ▶ sub new {
Subroutine new: called CC=3 SCAR=11.0
Pod documented
198 10 my $class = shift;
199 10 my $number = shift;
200 10 $number =~ s/(^\+686|\D)//g;
201 10 my $self = bless({ country_code => '686', number => $number, formatters => $formatters, validators => $validators, timezones => $timezones, areanames => \%areanames}, $class);
202 10 ▶ return $self if ($self->is_valid());
Branch: 1 branch
BranchTrueFalseTotal
if $self->is_valid 9 1 10
203 1 $number =~ s/^(?:0)//;
204 1 $self = bless({ country_code => '686', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class);
205 1 ▶ return $self->is_valid() ? $self : undef;
Branch: 1 branch
BranchTrueFalseTotal
$self->is_valid ? : 0 1 1
206 }
207 2 1;
« blib/lib/Number/Phone/StubCountry/KG.pm ↑ Summary blib/lib/Number/Phone/StubCountry/KP.pm »