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::KG; |
20
|
2
|
|
|
2
|
|
1212
|
use base qw(Number::Phone::StubCountry); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
237
|
|
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
2
|
|
18
|
use strict; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
49
|
|
23
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
49
|
|
24
|
2
|
|
|
2
|
|
12
|
use utf8; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
15
|
|
25
|
|
|
|
|
|
|
our $VERSION = 1.20230903131447; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my $formatters = [ |
28
|
|
|
|
|
|
|
{ |
29
|
|
|
|
|
|
|
'format' => '$1 $2', |
30
|
|
|
|
|
|
|
'leading_digits' => ' |
31
|
|
|
|
|
|
|
3(?: |
32
|
|
|
|
|
|
|
1[346]| |
33
|
|
|
|
|
|
|
[24-79] |
34
|
|
|
|
|
|
|
) |
35
|
|
|
|
|
|
|
', |
36
|
|
|
|
|
|
|
'national_rule' => '0$1', |
37
|
|
|
|
|
|
|
'pattern' => '(\\d{4})(\\d{5})' |
38
|
|
|
|
|
|
|
}, |
39
|
|
|
|
|
|
|
{ |
40
|
|
|
|
|
|
|
'format' => '$1 $2 $3', |
41
|
|
|
|
|
|
|
'leading_digits' => ' |
42
|
|
|
|
|
|
|
[235-79]| |
43
|
|
|
|
|
|
|
88 |
44
|
|
|
|
|
|
|
', |
45
|
|
|
|
|
|
|
'national_rule' => '0$1', |
46
|
|
|
|
|
|
|
'pattern' => '(\\d{3})(\\d{3})(\\d{3})' |
47
|
|
|
|
|
|
|
}, |
48
|
|
|
|
|
|
|
{ |
49
|
|
|
|
|
|
|
'format' => '$1 $2 $3 $4', |
50
|
|
|
|
|
|
|
'leading_digits' => '8', |
51
|
|
|
|
|
|
|
'national_rule' => '0$1', |
52
|
|
|
|
|
|
|
'pattern' => '(\\d{3})(\\d{3})(\\d)(\\d{2,3})' |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
]; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
my $validators = { |
57
|
|
|
|
|
|
|
'fixed_line' => ' |
58
|
|
|
|
|
|
|
312(?: |
59
|
|
|
|
|
|
|
5[0-79]\\d| |
60
|
|
|
|
|
|
|
9(?: |
61
|
|
|
|
|
|
|
[0-689]\\d| |
62
|
|
|
|
|
|
|
7[0-24-9] |
63
|
|
|
|
|
|
|
) |
64
|
|
|
|
|
|
|
)\\d{3}| |
65
|
|
|
|
|
|
|
(?: |
66
|
|
|
|
|
|
|
3(?: |
67
|
|
|
|
|
|
|
1(?: |
68
|
|
|
|
|
|
|
2[0-46-8]| |
69
|
|
|
|
|
|
|
3[1-9]| |
70
|
|
|
|
|
|
|
47| |
71
|
|
|
|
|
|
|
[56]\\d |
72
|
|
|
|
|
|
|
)| |
73
|
|
|
|
|
|
|
2(?: |
74
|
|
|
|
|
|
|
22| |
75
|
|
|
|
|
|
|
3[0-479]| |
76
|
|
|
|
|
|
|
6[0-7] |
77
|
|
|
|
|
|
|
)| |
78
|
|
|
|
|
|
|
4(?: |
79
|
|
|
|
|
|
|
22| |
80
|
|
|
|
|
|
|
5[6-9]| |
81
|
|
|
|
|
|
|
6\\d |
82
|
|
|
|
|
|
|
)| |
83
|
|
|
|
|
|
|
5(?: |
84
|
|
|
|
|
|
|
22| |
85
|
|
|
|
|
|
|
3[4-7]| |
86
|
|
|
|
|
|
|
59| |
87
|
|
|
|
|
|
|
6\\d |
88
|
|
|
|
|
|
|
)| |
89
|
|
|
|
|
|
|
6(?: |
90
|
|
|
|
|
|
|
22| |
91
|
|
|
|
|
|
|
5[35-7]| |
92
|
|
|
|
|
|
|
6\\d |
93
|
|
|
|
|
|
|
)| |
94
|
|
|
|
|
|
|
7(?: |
95
|
|
|
|
|
|
|
22| |
96
|
|
|
|
|
|
|
3[468]| |
97
|
|
|
|
|
|
|
4[1-9]| |
98
|
|
|
|
|
|
|
59| |
99
|
|
|
|
|
|
|
[67]\\d |
100
|
|
|
|
|
|
|
)| |
101
|
|
|
|
|
|
|
9(?: |
102
|
|
|
|
|
|
|
22| |
103
|
|
|
|
|
|
|
4[1-8]| |
104
|
|
|
|
|
|
|
6\\d |
105
|
|
|
|
|
|
|
) |
106
|
|
|
|
|
|
|
)| |
107
|
|
|
|
|
|
|
6(?: |
108
|
|
|
|
|
|
|
09| |
109
|
|
|
|
|
|
|
12| |
110
|
|
|
|
|
|
|
2[2-4] |
111
|
|
|
|
|
|
|
)\\d |
112
|
|
|
|
|
|
|
)\\d{5} |
113
|
|
|
|
|
|
|
', |
114
|
|
|
|
|
|
|
'geographic' => ' |
115
|
|
|
|
|
|
|
312(?: |
116
|
|
|
|
|
|
|
5[0-79]\\d| |
117
|
|
|
|
|
|
|
9(?: |
118
|
|
|
|
|
|
|
[0-689]\\d| |
119
|
|
|
|
|
|
|
7[0-24-9] |
120
|
|
|
|
|
|
|
) |
121
|
|
|
|
|
|
|
)\\d{3}| |
122
|
|
|
|
|
|
|
(?: |
123
|
|
|
|
|
|
|
3(?: |
124
|
|
|
|
|
|
|
1(?: |
125
|
|
|
|
|
|
|
2[0-46-8]| |
126
|
|
|
|
|
|
|
3[1-9]| |
127
|
|
|
|
|
|
|
47| |
128
|
|
|
|
|
|
|
[56]\\d |
129
|
|
|
|
|
|
|
)| |
130
|
|
|
|
|
|
|
2(?: |
131
|
|
|
|
|
|
|
22| |
132
|
|
|
|
|
|
|
3[0-479]| |
133
|
|
|
|
|
|
|
6[0-7] |
134
|
|
|
|
|
|
|
)| |
135
|
|
|
|
|
|
|
4(?: |
136
|
|
|
|
|
|
|
22| |
137
|
|
|
|
|
|
|
5[6-9]| |
138
|
|
|
|
|
|
|
6\\d |
139
|
|
|
|
|
|
|
)| |
140
|
|
|
|
|
|
|
5(?: |
141
|
|
|
|
|
|
|
22| |
142
|
|
|
|
|
|
|
3[4-7]| |
143
|
|
|
|
|
|
|
59| |
144
|
|
|
|
|
|
|
6\\d |
145
|
|
|
|
|
|
|
)| |
146
|
|
|
|
|
|
|
6(?: |
147
|
|
|
|
|
|
|
22| |
148
|
|
|
|
|
|
|
5[35-7]| |
149
|
|
|
|
|
|
|
6\\d |
150
|
|
|
|
|
|
|
)| |
151
|
|
|
|
|
|
|
7(?: |
152
|
|
|
|
|
|
|
22| |
153
|
|
|
|
|
|
|
3[468]| |
154
|
|
|
|
|
|
|
4[1-9]| |
155
|
|
|
|
|
|
|
59| |
156
|
|
|
|
|
|
|
[67]\\d |
157
|
|
|
|
|
|
|
)| |
158
|
|
|
|
|
|
|
9(?: |
159
|
|
|
|
|
|
|
22| |
160
|
|
|
|
|
|
|
4[1-8]| |
161
|
|
|
|
|
|
|
6\\d |
162
|
|
|
|
|
|
|
) |
163
|
|
|
|
|
|
|
)| |
164
|
|
|
|
|
|
|
6(?: |
165
|
|
|
|
|
|
|
09| |
166
|
|
|
|
|
|
|
12| |
167
|
|
|
|
|
|
|
2[2-4] |
168
|
|
|
|
|
|
|
)\\d |
169
|
|
|
|
|
|
|
)\\d{5} |
170
|
|
|
|
|
|
|
', |
171
|
|
|
|
|
|
|
'mobile' => ' |
172
|
|
|
|
|
|
|
312(?: |
173
|
|
|
|
|
|
|
58\\d| |
174
|
|
|
|
|
|
|
973 |
175
|
|
|
|
|
|
|
)\\d{3}| |
176
|
|
|
|
|
|
|
(?: |
177
|
|
|
|
|
|
|
2(?: |
178
|
|
|
|
|
|
|
0[0-35]| |
179
|
|
|
|
|
|
|
2\\d |
180
|
|
|
|
|
|
|
)| |
181
|
|
|
|
|
|
|
5[0-24-7]\\d| |
182
|
|
|
|
|
|
|
600| |
183
|
|
|
|
|
|
|
7(?: |
184
|
|
|
|
|
|
|
[07]\\d| |
185
|
|
|
|
|
|
|
55 |
186
|
|
|
|
|
|
|
)| |
187
|
|
|
|
|
|
|
88[08]| |
188
|
|
|
|
|
|
|
9(?: |
189
|
|
|
|
|
|
|
12| |
190
|
|
|
|
|
|
|
9[05-9] |
191
|
|
|
|
|
|
|
) |
192
|
|
|
|
|
|
|
)\\d{6} |
193
|
|
|
|
|
|
|
', |
194
|
|
|
|
|
|
|
'pager' => '', |
195
|
|
|
|
|
|
|
'personal_number' => '', |
196
|
|
|
|
|
|
|
'specialrate' => '', |
197
|
|
|
|
|
|
|
'toll_free' => '800\\d{6,7}', |
198
|
|
|
|
|
|
|
'voip' => '' |
199
|
|
|
|
|
|
|
}; |
200
|
|
|
|
|
|
|
my %areanames = (); |
201
|
|
|
|
|
|
|
$areanames{en} = {"9963456", "Kyzyl\-Adyr\,\ Talas\ region", |
202
|
|
|
|
|
|
|
"99631257", "Bishkek\,\ Chuy\ region", |
203
|
|
|
|
|
|
|
"99631292", "Bishkek\,\ Chuy\ region", |
204
|
|
|
|
|
|
|
"9963948", "Ak\-Suu\,\ Issyk\-Ko\ region", |
205
|
|
|
|
|
|
|
"9963657", "Kyzylkia\,\ Naryn\ region", |
206
|
|
|
|
|
|
|
"9963742", "Kerben\,\ Jalal\-Abat\ region", |
207
|
|
|
|
|
|
|
"996312978", "Bishkek\,\ Chuy\ region", |
208
|
|
|
|
|
|
|
"9963120", "Bishkek\,\ Chuy\ region", |
209
|
|
|
|
|
|
|
"996392", "Karakol\,\ Issyk\-Ko\ region", |
210
|
|
|
|
|
|
|
"9963132", "Kant\,\ Chuy\ region", |
211
|
|
|
|
|
|
|
"9963232", "Kara\-Suu\,\ Osh\ region", |
212
|
|
|
|
|
|
|
"9963458", "Kokoy\,\ Talas\ region", |
213
|
|
|
|
|
|
|
"99631250", "Bishkek\,\ Chuy\ region", |
214
|
|
|
|
|
|
|
"9963946", "Kyzyl\-Suu\,\ Issyk\-Ko\ region", |
215
|
|
|
|
|
|
|
"99631256", "Bishkek\,\ Chuy\ region", |
216
|
|
|
|
|
|
|
"9963537", "Baetov\,\ Naryn\ region", |
217
|
|
|
|
|
|
|
"99631259", "Bishkek\,\ Chuy\ region", |
218
|
|
|
|
|
|
|
"9963749", "Kanysh\-Kya\ \(Chatkal\)\,\ Jalal\-Abat\ region", |
219
|
|
|
|
|
|
|
"996312972", "Bishkek\,\ Chuy\ region", |
220
|
|
|
|
|
|
|
"9963239", "Kara\-Kulja\,\ Osh\ region", |
221
|
|
|
|
|
|
|
"9963127", "Bishkek\,\ Chuy\ region", |
222
|
|
|
|
|
|
|
"9963139", "Lebedinovka\,\ Chuy\ region", |
223
|
|
|
|
|
|
|
"9963121", "Bishkek\,\ Chuy\ region", |
224
|
|
|
|
|
|
|
"996322", "Osh", |
225
|
|
|
|
|
|
|
"996312977", "Bishkek\,\ Chuy\ region", |
226
|
|
|
|
|
|
|
"9963457", "Bakay\-Ata\,\ Talas\ region", |
227
|
|
|
|
|
|
|
"99631298", "Bishkek\,\ Chuy\ region", |
228
|
|
|
|
|
|
|
"9963135", "Kemin\,\ Chuy\ region", |
229
|
|
|
|
|
|
|
"9963744", "Mailuu\-Suu\,\ Jalal\-Abat\ region", |
230
|
|
|
|
|
|
|
"99631296", "Bishkek\,\ Chuy\ region", |
231
|
|
|
|
|
|
|
"9963234", "Gulcha\,\ Osh\ region", |
232
|
|
|
|
|
|
|
"99631299", "Bishkek\,\ Chuy\ region", |
233
|
|
|
|
|
|
|
"9963745", "Tash\-Kumyr\,\ Jalal\-Abat\ region", |
234
|
|
|
|
|
|
|
"9963134", "Sokuluk\,\ Chuy\ region", |
235
|
|
|
|
|
|
|
"9963656", "Isfana\,\ Naryn\ region", |
236
|
|
|
|
|
|
|
"9963133", "Kara\-Balta\,\ Chuy\ region", |
237
|
|
|
|
|
|
|
"9963233", "Uzgen\,\ Osh\ region", |
238
|
|
|
|
|
|
|
"99631290", "Bishkek\,\ Chuy\ region", |
239
|
|
|
|
|
|
|
"9963128", "Bishkek\,\ Chuy\ region", |
240
|
|
|
|
|
|
|
"9963736", "Bazarkorgon\,\ Jalal\-Abat\ region", |
241
|
|
|
|
|
|
|
"99631252", "Bishkek\,\ Chuy\ region", |
242
|
|
|
|
|
|
|
"9963126", "Bishkek\,\ Chuy\ region", |
243
|
|
|
|
|
|
|
"996312970", "Bishkek\,\ Chuy\ region", |
244
|
|
|
|
|
|
|
"996312971", "Bishkek\,\ Chuy\ region", |
245
|
|
|
|
|
|
|
"9963536", "Chaek\/Minkush\,\ Naryn\ region", |
246
|
|
|
|
|
|
|
"9963738", "Kazarman\,\ Jalal\-Abat\ region", |
247
|
|
|
|
|
|
|
"9963947", "Bokombaevo\/Kadji\-Say\,\ Issyk\-Ko\ region", |
248
|
|
|
|
|
|
|
"996312974", "Bishkek\,\ Chuy\ region", |
249
|
|
|
|
|
|
|
"9963747", "Toktogul\,\ Jalal\-Abat\ region", |
250
|
|
|
|
|
|
|
"9963237", "Daroot\-Korgon\,\ Osh\ region", |
251
|
|
|
|
|
|
|
"9963137", "Kayndy\,\ Chuy\ region", |
252
|
|
|
|
|
|
|
"996342", "Talas", |
253
|
|
|
|
|
|
|
"9963230", "Eski\-Nookat\,\ Osh\ region", |
254
|
|
|
|
|
|
|
"9963122", "Bishkek\,\ Chuy\ region", |
255
|
|
|
|
|
|
|
"99631251", "Bishkek\,\ Chuy\ region", |
256
|
|
|
|
|
|
|
"9963943", "Cholpon\-Ata\,\ Issyk\-Ko\ region", |
257
|
|
|
|
|
|
|
"996312979", "Bishkek\,\ Chuy\ region", |
258
|
|
|
|
|
|
|
"99631295", "Bishkek\,\ Chuy\ region", |
259
|
|
|
|
|
|
|
"9963945", "Tup\,\ Issyk\-Ko\ region", |
260
|
|
|
|
|
|
|
"99631253", "Bishkek\,\ Chuy\ region", |
261
|
|
|
|
|
|
|
"99631254", "Bishkek\,\ Chuy\ region", |
262
|
|
|
|
|
|
|
"9963944", "Balykchy\,\ Issyk\-Ko\ region", |
263
|
|
|
|
|
|
|
"9963653", "Sulukta\,\ Naryn\ region", |
264
|
|
|
|
|
|
|
"99631293", "Bishkek\,\ Chuy\ region", |
265
|
|
|
|
|
|
|
"99631294", "Bishkek\,\ Chuy\ region", |
266
|
|
|
|
|
|
|
"9963746", "Kara\-Kul\,\ Jalal\-Abat\ region", |
267
|
|
|
|
|
|
|
"996362", "Batken\,\ Naryn\ region", |
268
|
|
|
|
|
|
|
"99631255", "Bishkek\,\ Chuy\ region", |
269
|
|
|
|
|
|
|
"996312976", "Bishkek\,\ Chuy\ region", |
270
|
|
|
|
|
|
|
"996312975", "Bishkek\,\ Chuy\ region", |
271
|
|
|
|
|
|
|
"9963734", "Massy\/Kochkor\-Ata\,\ Jalal\-Abat\ region", |
272
|
|
|
|
|
|
|
"9963655", "Pulgon\,\ Naryn\ region", |
273
|
|
|
|
|
|
|
"9963942", "Ananyevo\,\ Issyk\-Ko\ region", |
274
|
|
|
|
|
|
|
"996372", "Jalal\-Abat", |
275
|
|
|
|
|
|
|
"9963123", "Bishkek\,\ Chuy\ region", |
276
|
|
|
|
|
|
|
"99631291", "Bishkek\,\ Chuy\ region", |
277
|
|
|
|
|
|
|
"9963138", "Tokmok\,\ Chuy\ region", |
278
|
|
|
|
|
|
|
"9963748", "Kok\-Jangak\/Suzak\,\ Jalal\-Abat\ region", |
279
|
|
|
|
|
|
|
"9963534", "At\-Bashy\,\ Naryn\ region", |
280
|
|
|
|
|
|
|
"9963131", "Belovodskoe\,\ Chuy\ region", |
281
|
|
|
|
|
|
|
"9963459", "Pokrovka\,\ Talas\ region", |
282
|
|
|
|
|
|
|
"9963231", "Aravan\,\ Osh\ region", |
283
|
|
|
|
|
|
|
"9963535", "Kochkor\,\ Naryn\ region", |
284
|
|
|
|
|
|
|
"996352", "Naryn", |
285
|
|
|
|
|
|
|
"9963741", "Ala\-Buka\,\ Jalal\-Abat\ region", |
286
|
|
|
|
|
|
|
"9963124", "Bishkek\,\ Chuy\ region",}; |
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
sub new { |
289
|
10
|
|
|
10
|
1
|
26
|
my $class = shift; |
290
|
10
|
|
|
|
|
21
|
my $number = shift; |
291
|
10
|
|
|
|
|
70
|
$number =~ s/(^\+996|\D)//g; |
292
|
10
|
|
|
|
|
77
|
my $self = bless({ country_code => '996', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class); |
293
|
10
|
100
|
|
|
|
53
|
return $self if ($self->is_valid()); |
294
|
1
|
|
|
|
|
3
|
$number =~ s/^(?:0)//; |
295
|
1
|
|
|
|
|
17
|
$self = bless({ country_code => '996', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class); |
296
|
1
|
50
|
|
|
|
8
|
return $self->is_valid() ? $self : undef; |
297
|
|
|
|
|
|
|
} |
298
|
|
|
|
|
|
|
1; |