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

filter: Statementstmt 100% 22 / 22 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 30 / 30 CC 2 SCAR 2.9
CC
2
Cov
100%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Number/Phone/StubCountry/TelecomsForDisasterRelief.pm ↑ Summary blib/lib/Number/Phone/StubCountry/UniversalPersonalTelecoms.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::UZ;
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.20260904101551;
26  
27 2 my $formatters = [
28 {
29 'format' => '$1 $2 $3 $4',
30 'leading_digits' => '[235-9]',
31 'pattern' => '(\\d{2})(\\d{3})(\\d{2})(\\d{2})'
32 }
33 ];
34  
35 2 my $validators = {
36 'fixed_line' => '
37 (?:
38 55\\d\\d|
39 6(?:
40 1(?:
41 22|
42 3[124]|
43 4[1-4]|
44 5[1-3578]|
45 64
46 )|
47 2(?:
48 22|
49 3[0-57-9]|
50 41
51 )|
52 5(?:
53 22|
54 3[3-7]|
55 5[024-8]
56 )|
57 [69]\\d\\d|
58 7(?:
59 [23]\\d|
60 7[69]
61 )
62 )|
63 7(?:
64 [168]\\d\\d|
65 2(?:
66 22|
67 3[13-57-9]|
68 4[1-3579]|
69 5[14]
70 )|
71 3(?:
72 2\\d|
73 3[1578]|
74 4[1-35-7]|
75 5[1-57]|
76 61
77 )|
78 4(?:
79 2\\d|
80 3[1-579]|
81 7[1-79]
82 )|
83 5(?:
84 22|
85 5[1-9]|
86 6[1457]
87 )|
88 9(?:
89 22|
90 5[1-9]
91 )
92 )
93 )\\d{5}
94 ',
95 'geographic' => '
96 (?:
97 55\\d\\d|
98 6(?:
99 1(?:
100 22|
101 3[124]|
102 4[1-4]|
103 5[1-3578]|
104 64
105 )|
106 2(?:
107 22|
108 3[0-57-9]|
109 41
110 )|
111 5(?:
112 22|
113 3[3-7]|
114 5[024-8]
115 )|
116 [69]\\d\\d|
117 7(?:
118 [23]\\d|
119 7[69]
120 )
121 )|
122 7(?:
123 [168]\\d\\d|
124 2(?:
125 22|
126 3[13-57-9]|
127 4[1-3579]|
128 5[14]
129 )|
130 3(?:
131 2\\d|
132 3[1578]|
133 4[1-35-7]|
134 5[1-57]|
135 61
136 )|
137 4(?:
138 2\\d|
139 3[1-579]|
140 7[1-79]
141 )|
142 5(?:
143 22|
144 5[1-9]|
145 6[1457]
146 )|
147 9(?:
148 22|
149 5[1-9]
150 )
151 )
152 )\\d{5}
153 ',
154 'mobile' => '
155 (?:
156 (?:
157 [25]0|
158 33|
159 8[078]|
160 9[0-57-9]
161 )\\d{3}|
162 6(?:
163 1(?:
164 2(?:
165 2[01]|
166 98
167 )|
168 35[0-4]|
169 50\\d|
170 61[23]|
171 7(?:
172 [01][017]|
173 4\\d|
174 55|
175 9[5-9]
176 )
177 )|
178 2(?:
179 (?:
180 11|
181 7\\d
182 )\\d|
183 2(?:
184 [12]1|
185 9[01379]
186 )|
187 5(?:
188 [126]\\d|
189 3[0-4]
190 )
191 )|
192 5(?:
193 19[01]|
194 2(?:
195 27|
196 9[26]
197 )|
198 (?:
199 30|
200 59|
201 7\\d
202 )\\d
203 )|
204 6(?:
205 2(?:
206 1[5-9]|
207 2[0367]|
208 38|
209 41|
210 52|
211 60
212 )|
213 (?:
214 3[79]|
215 9[0-3]
216 )\\d|
217 4(?:
218 56|
219 83
220 )|
221 7(?:
222 [07]\\d|
223 1[017]|
224 3[07]|
225 4[047]|
226 5[057]|
227 67|
228 8[0178]|
229 9[79]
230 )
231 )|
232 7(?:
233 2(?:
234 24|
235 3[237]|
236 4[5-9]|
237 7[15-8]
238 )|
239 5(?:
240 7[12]|
241 8[0589]
242 )|
243 7(?:
244 0\\d|
245 [39][07]
246 )|
247 9(?:
248 0\\d|
249 7[079]
250 )
251 )
252 )|
253 7(?:
254 [07]\\d{3}|
255 2(?:
256 2(?:
257 2[79]|
258 95
259 )|
260 3(?:
261 2[5-9]|
262 6[0-6]
263 )|
264 57\\d|
265 7(?:
266 0\\d|
267 1[17]|
268 2[27]|
269 3[37]|
270 44|
271 5[057]|
272 66|
273 88
274 )
275 )|
276 3(?:
277 2(?:
278 1[0-6]|
279 21|
280 3[469]|
281 7[159]
282 )|
283 (?:
284 33|
285 9[4-6]
286 )\\d|
287 5(?:
288 0[0-4]|
289 5[579]|
290 9\\d
291 )|
292 7(?:
293 [0-3579]\\d|
294 4[0467]|
295 6[67]|
296 8[078]
297 )
298 )|
299 4(?:
300 2(?:
301 29|
302 5[0257]|
303 6[0-7]|
304 7[1-57]
305 )|
306 5(?:
307 1[0-4]|
308 8\\d|
309 9[5-9]
310 )|
311 7(?:
312 0\\d|
313 1[024589]|
314 2[0-27]|
315 3[0137]|
316 [46][07]|
317 5[01]|
318 7[5-9]|
319 9[079]
320 )|
321 9(?:
322 7[015-9]|
323 [89]\\d
324 )
325 )|
326 5(?:
327 112|
328 2(?:
329 0\\d|
330 2[29]|
331 [49]4
332 )|
333 3[1568]\\d|
334 52[6-9]|
335 7(?:
336 0[01578]|
337 1[017]|
338 [23]7|
339 4[047]|
340 [5-7]\\d|
341 8[78]|
342 9[079]
343 )
344 )|
345 9(?:
346 22[128]|
347 3(?:
348 2[0-4]|
349 7\\d
350 )|
351 57[02569]|
352 7(?:
353 2[05-9]|
354 3[37]|
355 4\\d|
356 60|
357 7[2579]|
358 87|
359 9[07]
360 )
361 )
362 )
363 )\\d{4}
364 ',
365 'pager' => '',
366 'personal_number' => '',
367 'specialrate' => '',
368 'toll_free' => '',
369 'voip' => ''
370 };
371 2 my $timezones = {
372 '' => [
373 'Asia/Tashkent'
374 ]
375 };
376  
377 7 ▶ sub new {
Subroutine new: called CC=2 SCAR=6.9
Pod documented
378 7 my $class = shift;
379 7 my $number = shift;
380 7 $number =~ s/(^\+998|\D)//g;
381 7 my $self = bless({ country_code => '998', number => $number, formatters => $formatters, validators => $validators, timezones => $timezones, }, $class);
382 7 ▶ return $self->is_valid() ? $self : undef;
Branch: 1 branch
BranchTrueFalseTotal
$self->is_valid ? : 6 1 7
383 }
384 2 1;
« blib/lib/Number/Phone/StubCountry/TelecomsForDisasterRelief.pm ↑ Summary blib/lib/Number/Phone/StubCountry/UniversalPersonalTelecoms.pm »