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::GE; |
20
|
2
|
|
|
2
|
|
1448
|
use base qw(Number::Phone::StubCountry); |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
355
|
|
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
2
|
|
19
|
use strict; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
56
|
|
23
|
2
|
|
|
2
|
|
19
|
use warnings; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
62
|
|
24
|
2
|
|
|
2
|
|
15
|
use utf8; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
26
|
|
25
|
|
|
|
|
|
|
our $VERSION = 1.20230614174403; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my $formatters = [ |
28
|
|
|
|
|
|
|
{ |
29
|
|
|
|
|
|
|
'format' => '$1 $2 $3', |
30
|
|
|
|
|
|
|
'leading_digits' => '70', |
31
|
|
|
|
|
|
|
'national_rule' => '0$1', |
32
|
|
|
|
|
|
|
'pattern' => '(\\d{3})(\\d{3})(\\d{3})' |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
{ |
35
|
|
|
|
|
|
|
'format' => '$1 $2 $3 $4', |
36
|
|
|
|
|
|
|
'leading_digits' => '32', |
37
|
|
|
|
|
|
|
'national_rule' => '0$1', |
38
|
|
|
|
|
|
|
'pattern' => '(\\d{2})(\\d{3})(\\d{2})(\\d{2})' |
39
|
|
|
|
|
|
|
}, |
40
|
|
|
|
|
|
|
{ |
41
|
|
|
|
|
|
|
'format' => '$1 $2 $3 $4', |
42
|
|
|
|
|
|
|
'leading_digits' => '[57]', |
43
|
|
|
|
|
|
|
'pattern' => '(\\d{3})(\\d{2})(\\d{2})(\\d{2})' |
44
|
|
|
|
|
|
|
}, |
45
|
|
|
|
|
|
|
{ |
46
|
|
|
|
|
|
|
'format' => '$1 $2 $3 $4', |
47
|
|
|
|
|
|
|
'leading_digits' => '[348]', |
48
|
|
|
|
|
|
|
'national_rule' => '0$1', |
49
|
|
|
|
|
|
|
'pattern' => '(\\d{3})(\\d{2})(\\d{2})(\\d{2})' |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
]; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
my $validators = { |
54
|
|
|
|
|
|
|
'fixed_line' => ' |
55
|
|
|
|
|
|
|
(?: |
56
|
|
|
|
|
|
|
3(?: |
57
|
|
|
|
|
|
|
[256]\\d| |
58
|
|
|
|
|
|
|
4[124-9]| |
59
|
|
|
|
|
|
|
7[0-4] |
60
|
|
|
|
|
|
|
)| |
61
|
|
|
|
|
|
|
4(?: |
62
|
|
|
|
|
|
|
1\\d| |
63
|
|
|
|
|
|
|
2[2-7]| |
64
|
|
|
|
|
|
|
3[1-79]| |
65
|
|
|
|
|
|
|
4[2-8]| |
66
|
|
|
|
|
|
|
7[239]| |
67
|
|
|
|
|
|
|
9[1-7] |
68
|
|
|
|
|
|
|
) |
69
|
|
|
|
|
|
|
)\\d{6} |
70
|
|
|
|
|
|
|
', |
71
|
|
|
|
|
|
|
'geographic' => ' |
72
|
|
|
|
|
|
|
(?: |
73
|
|
|
|
|
|
|
3(?: |
74
|
|
|
|
|
|
|
[256]\\d| |
75
|
|
|
|
|
|
|
4[124-9]| |
76
|
|
|
|
|
|
|
7[0-4] |
77
|
|
|
|
|
|
|
)| |
78
|
|
|
|
|
|
|
4(?: |
79
|
|
|
|
|
|
|
1\\d| |
80
|
|
|
|
|
|
|
2[2-7]| |
81
|
|
|
|
|
|
|
3[1-79]| |
82
|
|
|
|
|
|
|
4[2-8]| |
83
|
|
|
|
|
|
|
7[239]| |
84
|
|
|
|
|
|
|
9[1-7] |
85
|
|
|
|
|
|
|
) |
86
|
|
|
|
|
|
|
)\\d{6} |
87
|
|
|
|
|
|
|
', |
88
|
|
|
|
|
|
|
'mobile' => ' |
89
|
|
|
|
|
|
|
5(?: |
90
|
|
|
|
|
|
|
(?: |
91
|
|
|
|
|
|
|
(?: |
92
|
|
|
|
|
|
|
0555| |
93
|
|
|
|
|
|
|
1(?: |
94
|
|
|
|
|
|
|
[17]77| |
95
|
|
|
|
|
|
|
555 |
96
|
|
|
|
|
|
|
) |
97
|
|
|
|
|
|
|
)[5-9]| |
98
|
|
|
|
|
|
|
757(?: |
99
|
|
|
|
|
|
|
7[7-9]| |
100
|
|
|
|
|
|
|
8[01] |
101
|
|
|
|
|
|
|
) |
102
|
|
|
|
|
|
|
)\\d| |
103
|
|
|
|
|
|
|
22252[0-4] |
104
|
|
|
|
|
|
|
)\\d\\d| |
105
|
|
|
|
|
|
|
(?: |
106
|
|
|
|
|
|
|
5(?: |
107
|
|
|
|
|
|
|
00(?: |
108
|
|
|
|
|
|
|
0\\d| |
109
|
|
|
|
|
|
|
44| |
110
|
|
|
|
|
|
|
5[05]| |
111
|
|
|
|
|
|
|
77| |
112
|
|
|
|
|
|
|
88| |
113
|
|
|
|
|
|
|
99 |
114
|
|
|
|
|
|
|
)| |
115
|
|
|
|
|
|
|
1(?: |
116
|
|
|
|
|
|
|
1(?: |
117
|
|
|
|
|
|
|
00| |
118
|
|
|
|
|
|
|
[124]\\d| |
119
|
|
|
|
|
|
|
3[01] |
120
|
|
|
|
|
|
|
)| |
121
|
|
|
|
|
|
|
4\\d\\d |
122
|
|
|
|
|
|
|
)| |
123
|
|
|
|
|
|
|
(?: |
124
|
|
|
|
|
|
|
44| |
125
|
|
|
|
|
|
|
68 |
126
|
|
|
|
|
|
|
)\\d\\d| |
127
|
|
|
|
|
|
|
5(?: |
128
|
|
|
|
|
|
|
[0157-9]\\d\\d| |
129
|
|
|
|
|
|
|
200 |
130
|
|
|
|
|
|
|
)| |
131
|
|
|
|
|
|
|
7(?: |
132
|
|
|
|
|
|
|
[0147-9]\\d\\d| |
133
|
|
|
|
|
|
|
5(?: |
134
|
|
|
|
|
|
|
00| |
135
|
|
|
|
|
|
|
[57]5 |
136
|
|
|
|
|
|
|
) |
137
|
|
|
|
|
|
|
)| |
138
|
|
|
|
|
|
|
8(?: |
139
|
|
|
|
|
|
|
0(?: |
140
|
|
|
|
|
|
|
[01]\\d| |
141
|
|
|
|
|
|
|
2[0-4] |
142
|
|
|
|
|
|
|
)| |
143
|
|
|
|
|
|
|
58[89]| |
144
|
|
|
|
|
|
|
8(?: |
145
|
|
|
|
|
|
|
55| |
146
|
|
|
|
|
|
|
88 |
147
|
|
|
|
|
|
|
) |
148
|
|
|
|
|
|
|
)| |
149
|
|
|
|
|
|
|
9(?: |
150
|
|
|
|
|
|
|
090| |
151
|
|
|
|
|
|
|
[1-35-9]\\d\\d |
152
|
|
|
|
|
|
|
) |
153
|
|
|
|
|
|
|
)| |
154
|
|
|
|
|
|
|
790\\d\\d |
155
|
|
|
|
|
|
|
)\\d{4}| |
156
|
|
|
|
|
|
|
5(?: |
157
|
|
|
|
|
|
|
0(?: |
158
|
|
|
|
|
|
|
070| |
159
|
|
|
|
|
|
|
505 |
160
|
|
|
|
|
|
|
)| |
161
|
|
|
|
|
|
|
1(?: |
162
|
|
|
|
|
|
|
0[01]0| |
163
|
|
|
|
|
|
|
1(?: |
164
|
|
|
|
|
|
|
07| |
165
|
|
|
|
|
|
|
33| |
166
|
|
|
|
|
|
|
51 |
167
|
|
|
|
|
|
|
) |
168
|
|
|
|
|
|
|
)| |
169
|
|
|
|
|
|
|
2(?: |
170
|
|
|
|
|
|
|
0[02]0| |
171
|
|
|
|
|
|
|
2[25]2 |
172
|
|
|
|
|
|
|
)| |
173
|
|
|
|
|
|
|
3(?: |
174
|
|
|
|
|
|
|
0[03]0| |
175
|
|
|
|
|
|
|
3[35]3 |
176
|
|
|
|
|
|
|
)| |
177
|
|
|
|
|
|
|
(?: |
178
|
|
|
|
|
|
|
40[04]| |
179
|
|
|
|
|
|
|
900 |
180
|
|
|
|
|
|
|
)0| |
181
|
|
|
|
|
|
|
5222 |
182
|
|
|
|
|
|
|
)[0-4]\\d{3} |
183
|
|
|
|
|
|
|
', |
184
|
|
|
|
|
|
|
'pager' => '', |
185
|
|
|
|
|
|
|
'personal_number' => '', |
186
|
|
|
|
|
|
|
'specialrate' => '', |
187
|
|
|
|
|
|
|
'toll_free' => '800\\d{6}', |
188
|
|
|
|
|
|
|
'voip' => '70[67]\\d{6}' |
189
|
|
|
|
|
|
|
}; |
190
|
|
|
|
|
|
|
my %areanames = (); |
191
|
|
|
|
|
|
|
$areanames{en} = {"995448", "Gulripshi", |
192
|
|
|
|
|
|
|
"995479", "Chiatura", |
193
|
|
|
|
|
|
|
"995349", "Akhmeta", |
194
|
|
|
|
|
|
|
"995426", "Kobuleti", |
195
|
|
|
|
|
|
|
"995364", "Aspindza", |
196
|
|
|
|
|
|
|
"995365", "Akhaltsikhe", |
197
|
|
|
|
|
|
|
"995341", "Rustavi", |
198
|
|
|
|
|
|
|
"995354", "Lagodekhi", |
199
|
|
|
|
|
|
|
"995355", "Signagi", |
200
|
|
|
|
|
|
|
"995472", "Tsageri", |
201
|
|
|
|
|
|
|
"995347", "Djava", |
202
|
|
|
|
|
|
|
"995342", "Akhalgori", |
203
|
|
|
|
|
|
|
"995371", "Kaspi", |
204
|
|
|
|
|
|
|
"995496", "Ozurgeti", |
205
|
|
|
|
|
|
|
"995370", "Gori", |
206
|
|
|
|
|
|
|
"995372", "Gardabani", |
207
|
|
|
|
|
|
|
"995447", "Gali", |
208
|
|
|
|
|
|
|
"995435", "Sachkhere", |
209
|
|
|
|
|
|
|
"995442", "Sukhumi", |
210
|
|
|
|
|
|
|
"995434", "Bagdati", |
211
|
|
|
|
|
|
|
"995413", "Senaki", |
212
|
|
|
|
|
|
|
"995348", "Tianeti", |
213
|
|
|
|
|
|
|
"995492", "Zestafoni", |
214
|
|
|
|
|
|
|
"995353", "Gurdjaani", |
215
|
|
|
|
|
|
|
"995497", "Tkibuli", |
216
|
|
|
|
|
|
|
"995491", "Terdjola", |
217
|
|
|
|
|
|
|
"995446", "Tkvarcheli", |
218
|
|
|
|
|
|
|
"995363", "Tsalka", |
219
|
|
|
|
|
|
|
"995427", "Xelvachauri", |
220
|
|
|
|
|
|
|
"995422", "Batumi", |
221
|
|
|
|
|
|
|
"995415", "Zugdidi", |
222
|
|
|
|
|
|
|
"995414", "Xobi", |
223
|
|
|
|
|
|
|
"995433", "Kharagauli", |
224
|
|
|
|
|
|
|
"995346", "Dusheti", |
225
|
|
|
|
|
|
|
"995351", "Sagaredjo", |
226
|
|
|
|
|
|
|
"995416", "Tsalendjikha", |
227
|
|
|
|
|
|
|
"995362", "Akhalkalaki", |
228
|
|
|
|
|
|
|
"995350", "Telavi", |
229
|
|
|
|
|
|
|
"995367", "Bordjomi", |
230
|
|
|
|
|
|
|
"995361", "Ninotsminda", |
231
|
|
|
|
|
|
|
"995352", "Kvareli", |
232
|
|
|
|
|
|
|
"995357", "Marneuli", |
233
|
|
|
|
|
|
|
"995493", "Poti", |
234
|
|
|
|
|
|
|
"995360", "Dmanisi", |
235
|
|
|
|
|
|
|
"995345", "Stefanstminda\/Kazbegi", |
236
|
|
|
|
|
|
|
"995344", "Tskhinvali", |
237
|
|
|
|
|
|
|
"995369", "Kareli", |
238
|
|
|
|
|
|
|
"995359", "TetriTskaro", |
239
|
|
|
|
|
|
|
"995423", "Xulo", |
240
|
|
|
|
|
|
|
"995358", "Bolnisi", |
241
|
|
|
|
|
|
|
"995439", "Ambrolauri", |
242
|
|
|
|
|
|
|
"995368", "Khashuri", |
243
|
|
|
|
|
|
|
"995431", "Kutaisi", |
244
|
|
|
|
|
|
|
"995374", "Tigvi", |
245
|
|
|
|
|
|
|
"995437", "Lentekhi", |
246
|
|
|
|
|
|
|
"995432", "Vani", |
247
|
|
|
|
|
|
|
"995445", "Ochamchire", |
248
|
|
|
|
|
|
|
"995444", "Gudauta", |
249
|
|
|
|
|
|
|
"995418", "Martvili", |
250
|
|
|
|
|
|
|
"995494", "lanchxuti", |
251
|
|
|
|
|
|
|
"995495", "Khoni", |
252
|
|
|
|
|
|
|
"995473", "Oni", |
253
|
|
|
|
|
|
|
"995436", "Tskaltubo", |
254
|
|
|
|
|
|
|
"995412", "Abasha", |
255
|
|
|
|
|
|
|
"995443", "Gagra", |
256
|
|
|
|
|
|
|
"995366", "Adigeni", |
257
|
|
|
|
|
|
|
"995373", "Mtskheta", |
258
|
|
|
|
|
|
|
"995417", "Chkhorotskhu", |
259
|
|
|
|
|
|
|
"995356", "DedoplisTskaro", |
260
|
|
|
|
|
|
|
"995411", "Samtredia", |
261
|
|
|
|
|
|
|
"995410", "Mestia", |
262
|
|
|
|
|
|
|
"995419", "Choxatauri", |
263
|
|
|
|
|
|
|
"99532", "Tbilisi", |
264
|
|
|
|
|
|
|
"995425", "Qeda", |
265
|
|
|
|
|
|
|
"995424", "Shuaxevi",}; |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
sub new { |
268
|
13
|
|
|
13
|
1
|
35
|
my $class = shift; |
269
|
13
|
|
|
|
|
25
|
my $number = shift; |
270
|
13
|
|
|
|
|
87
|
$number =~ s/(^\+995|\D)//g; |
271
|
13
|
|
|
|
|
93
|
my $self = bless({ country_code => '995', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class); |
272
|
13
|
100
|
|
|
|
73
|
return $self if ($self->is_valid()); |
273
|
1
|
|
|
|
|
13
|
$number =~ s/^(?:0)//; |
274
|
1
|
|
|
|
|
12
|
$self = bless({ country_code => '995', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class); |
275
|
1
|
50
|
|
|
|
6
|
return $self->is_valid() ? $self : undef; |
276
|
|
|
|
|
|
|
} |
277
|
|
|
|
|
|
|
1; |