| 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::GE; | ||||||||||
| 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.20260904101549; | |||||||||
| 26 | |||||||||||
| 27 | 2 | 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 | 2 | 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 | 0(?: | ||||||||||
| 107 | 0(?: | ||||||||||
| 108 | 1[09]| | ||||||||||
| 109 | 70 | ||||||||||
| 110 | )| | ||||||||||
| 111 | 505 | ||||||||||
| 112 | )| | ||||||||||
| 113 | 1(?: | ||||||||||
| 114 | 0[01]0| | ||||||||||
| 115 | 1(?: | ||||||||||
| 116 | 07| | ||||||||||
| 117 | 33| | ||||||||||
| 118 | 51 | ||||||||||
| 119 | ) | ||||||||||
| 120 | )| | ||||||||||
| 121 | 2(?: | ||||||||||
| 122 | 0[02]0| | ||||||||||
| 123 | 2[25]2 | ||||||||||
| 124 | )| | ||||||||||
| 125 | 3(?: | ||||||||||
| 126 | 0[03]0| | ||||||||||
| 127 | 3[35]3 | ||||||||||
| 128 | )| | ||||||||||
| 129 | 4(?: | ||||||||||
| 130 | 0[04]0| | ||||||||||
| 131 | 411 | ||||||||||
| 132 | )| | ||||||||||
| 133 | 5222| | ||||||||||
| 134 | 9000 | ||||||||||
| 135 | )[0-4]\\d{3}| | ||||||||||
| 136 | (?: | ||||||||||
| 137 | 5(?: | ||||||||||
| 138 | 0(?: | ||||||||||
| 139 | 0(?: | ||||||||||
| 140 | 0\\d| | ||||||||||
| 141 | 1[12]| | ||||||||||
| 142 | 2[02]| | ||||||||||
| 143 | 3[0-6]| | ||||||||||
| 144 | 4[04]| | ||||||||||
| 145 | 5[05]| | ||||||||||
| 146 | 77| | ||||||||||
| 147 | 88| | ||||||||||
| 148 | 9[09] | ||||||||||
| 149 | )| | ||||||||||
| 150 | (?: | ||||||||||
| 151 | [14]\\d| | ||||||||||
| 152 | 77 | ||||||||||
| 153 | )\\d| | ||||||||||
| 154 | 22[02] | ||||||||||
| 155 | )| | ||||||||||
| 156 | 1(?: | ||||||||||
| 157 | 1(?: | ||||||||||
| 158 | [03][01]| | ||||||||||
| 159 | [124]\\d| | ||||||||||
| 160 | 5[02-6]| | ||||||||||
| 161 | 7[0-6] | ||||||||||
| 162 | )| | ||||||||||
| 163 | 4\\d\\d | ||||||||||
| 164 | )| | ||||||||||
| 165 | 2(?: | ||||||||||
| 166 | 228| | ||||||||||
| 167 | 555 | ||||||||||
| 168 | )| | ||||||||||
| 169 | 3555| | ||||||||||
| 170 | 4(?: | ||||||||||
| 171 | 4(?: | ||||||||||
| 172 | [02-9]\\d| | ||||||||||
| 173 | 14 | ||||||||||
| 174 | )| | ||||||||||
| 175 | 555 | ||||||||||
| 176 | )| | ||||||||||
| 177 | 5(?: | ||||||||||
| 178 | [0157-9]\\d\\d| | ||||||||||
| 179 | 200| | ||||||||||
| 180 | 333| | ||||||||||
| 181 | 4(?: | ||||||||||
| 182 | 44| | ||||||||||
| 183 | 55 | ||||||||||
| 184 | ) | ||||||||||
| 185 | )| | ||||||||||
| 186 | 6[89]\\d\\d| | ||||||||||
| 187 | 7(?: | ||||||||||
| 188 | (?: | ||||||||||
| 189 | [0147-9]\\d| | ||||||||||
| 190 | 22 | ||||||||||
| 191 | )\\d| | ||||||||||
| 192 | 5(?: | ||||||||||
| 193 | 00| | ||||||||||
| 194 | [57]5 | ||||||||||
| 195 | ) | ||||||||||
| 196 | )| | ||||||||||
| 197 | 8(?: | ||||||||||
| 198 | 0(?: | ||||||||||
| 199 | [018]\\d| | ||||||||||
| 200 | 2[0-4] | ||||||||||
| 201 | )| | ||||||||||
| 202 | 5(?: | ||||||||||
| 203 | 55| | ||||||||||
| 204 | 8[89] | ||||||||||
| 205 | )| | ||||||||||
| 206 | 8(?: | ||||||||||
| 207 | 55| | ||||||||||
| 208 | 88 | ||||||||||
| 209 | ) | ||||||||||
| 210 | )| | ||||||||||
| 211 | 9(?: | ||||||||||
| 212 | 090| | ||||||||||
| 213 | [1-35-9]\\d\\d | ||||||||||
| 214 | ) | ||||||||||
| 215 | )| | ||||||||||
| 216 | 790\\d\\d | ||||||||||
| 217 | )\\d{4} | ||||||||||
| 218 | ', | ||||||||||
| 219 | 'pager' => '', | ||||||||||
| 220 | 'personal_number' => '', | ||||||||||
| 221 | 'specialrate' => '', | ||||||||||
| 222 | 'toll_free' => '800\\d{6}', | ||||||||||
| 223 | 'voip' => '70[67]\\d{6}' | ||||||||||
| 224 | }; | ||||||||||
| 225 | 2 | my %areanames = (); | |||||||||
| 226 | 2 | $areanames{en} = {"995362", "Akhalkalaki", | |||||||||
| 227 | "995412", "Abasha", | ||||||||||
| 228 | "995417", "Chkhorotskhu", | ||||||||||
| 229 | "995418", "Martvili", | ||||||||||
| 230 | "995472", "Tsageri", | ||||||||||
| 231 | "995354", "Lagodekhi", | ||||||||||
| 232 | "995367", "Bordjomi", | ||||||||||
| 233 | "995368", "Khashuri", | ||||||||||
| 234 | "995434", "Bagdati", | ||||||||||
| 235 | "995410", "Mestia", | ||||||||||
| 236 | "99532", "Tbilisi", | ||||||||||
| 237 | "995497", "Tkibuli", | ||||||||||
| 238 | "995360", "Dmanisi", | ||||||||||
| 239 | "995424", "Shuaxevi", | ||||||||||
| 240 | "995444", "Gudauta", | ||||||||||
| 241 | "995492", "Zestafoni", | ||||||||||
| 242 | "995371", "Kaspi", | ||||||||||
| 243 | "995443", "Gagra", | ||||||||||
| 244 | "995372", "Gardabani", | ||||||||||
| 245 | "995491", "Terdjola", | ||||||||||
| 246 | "995433", "Kharagauli", | ||||||||||
| 247 | "995415", "Zugdidi", | ||||||||||
| 248 | "995366", "Adigeni", | ||||||||||
| 249 | "995416", "Tsalendjikha", | ||||||||||
| 250 | "995365", "Akhaltsikhe", | ||||||||||
| 251 | "995423", "Xulo", | ||||||||||
| 252 | "995344", "Tskhinvali", | ||||||||||
| 253 | "995496", "Ozurgeti", | ||||||||||
| 254 | "995419", "Choxatauri", | ||||||||||
| 255 | "995495", "Khoni", | ||||||||||
| 256 | "995353", "Gurdjaani", | ||||||||||
| 257 | "995369", "Kareli", | ||||||||||
| 258 | "995370", "Gori", | ||||||||||
| 259 | "995411", "Samtredia", | ||||||||||
| 260 | "995361", "Ninotsminda", | ||||||||||
| 261 | "995479", "Chiatura", | ||||||||||
| 262 | "995364", "Aspindza", | ||||||||||
| 263 | "995357", "Marneuli", | ||||||||||
| 264 | "995358", "Bolnisi", | ||||||||||
| 265 | "995349", "Akhmeta", | ||||||||||
| 266 | "995414", "Xobi", | ||||||||||
| 267 | "995352", "Kvareli", | ||||||||||
| 268 | "995341", "Rustavi", | ||||||||||
| 269 | "995432", "Vani", | ||||||||||
| 270 | "995448", "Gulripshi", | ||||||||||
| 271 | "995447", "Gali", | ||||||||||
| 272 | "995422", "Batumi", | ||||||||||
| 273 | "995350", "Telavi", | ||||||||||
| 274 | "995442", "Sukhumi", | ||||||||||
| 275 | "995427", "Xelvachauri", | ||||||||||
| 276 | "995494", "lanchxuti", | ||||||||||
| 277 | "995346", "Dusheti", | ||||||||||
| 278 | "995373", "Mtskheta", | ||||||||||
| 279 | "995437", "Lentekhi", | ||||||||||
| 280 | "995345", "Stefanstminda\/Kazbegi", | ||||||||||
| 281 | "995374", "Tigvi", | ||||||||||
| 282 | "995493", "Poti", | ||||||||||
| 283 | "995355", "Signagi", | ||||||||||
| 284 | "995439", "Ambrolauri", | ||||||||||
| 285 | "995356", "DedoplisTskaro", | ||||||||||
| 286 | "995431", "Kutaisi", | ||||||||||
| 287 | "995351", "Sagaredjo", | ||||||||||
| 288 | "995342", "Akhalgori", | ||||||||||
| 289 | "995473", "Oni", | ||||||||||
| 290 | "995446", "Tkvarcheli", | ||||||||||
| 291 | "995445", "Ochamchire", | ||||||||||
| 292 | "995363", "Tsalka", | ||||||||||
| 293 | "995359", "TetriTskaro", | ||||||||||
| 294 | "995425", "Qeda", | ||||||||||
| 295 | "995436", "Tskaltubo", | ||||||||||
| 296 | "995426", "Kobuleti", | ||||||||||
| 297 | "995348", "Tianeti", | ||||||||||
| 298 | "995435", "Sachkhere", | ||||||||||
| 299 | "995413", "Senaki", | ||||||||||
| 300 | "995347", "Djava",}; | ||||||||||
| 301 | 2 | my $timezones = { | |||||||||
| 302 | '' => [ | ||||||||||
| 303 | 'Asia/Tbilisi' | ||||||||||
| 304 | ] | ||||||||||
| 305 | }; | ||||||||||
| 306 | |||||||||||
| 307 | 13 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 308 | 13 | my $class = shift; | |||||||||
| 309 | 13 | my $number = shift; | |||||||||
| 310 | 13 | $number =~ s/(^\+995|\D)//g; | |||||||||
| 311 | 13 | my $self = bless({ country_code => '995', number => $number, formatters => $formatters, validators => $validators, timezones => $timezones, areanames => \%areanames}, $class); | |||||||||
| 312 | 13 | ▶ | return $self if ($self->is_valid()); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 313 | 1 | $number =~ s/^(?:0)//; | |||||||||
| 314 | 1 | $self = bless({ country_code => '995', number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class); | |||||||||
| 315 | 1 | ▶ | return $self->is_valid() ? $self : undef; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 316 | } | ||||||||||
| 317 | 2 | 1; | |||||||||