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