| 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::GY; | ||||||||||
| 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.20260904101550; | |||||||||
| 26 | |||||||||||
| 27 | 2 | my $formatters = [ | |||||||||
| 28 | { | ||||||||||
| 29 | 'format' => '$1 $2', | ||||||||||
| 30 | 'leading_digits' => '[2-9]', | ||||||||||
| 31 | 'pattern' => '(\\d{3})(\\d{4})' | ||||||||||
| 32 | } | ||||||||||
| 33 | ]; | ||||||||||
| 34 | |||||||||||
| 35 | 2 | my $validators = { | |||||||||
| 36 | 'fixed_line' => ' | ||||||||||
| 37 | (?: | ||||||||||
| 38 | 2(?: | ||||||||||
| 39 | 1[6-9]| | ||||||||||
| 40 | 2[0-35-9]| | ||||||||||
| 41 | 3[1-4]| | ||||||||||
| 42 | 5[3-9]| | ||||||||||
| 43 | 6\\d| | ||||||||||
| 44 | 7[0-79] | ||||||||||
| 45 | )| | ||||||||||
| 46 | 3(?: | ||||||||||
| 47 | 2[25-9]| | ||||||||||
| 48 | 3\\d | ||||||||||
| 49 | )| | ||||||||||
| 50 | 4(?: | ||||||||||
| 51 | 4[0-24]| | ||||||||||
| 52 | 5[56] | ||||||||||
| 53 | )| | ||||||||||
| 54 | 50[0-6]| | ||||||||||
| 55 | 77[1-57] | ||||||||||
| 56 | )\\d{4} | ||||||||||
| 57 | ', | ||||||||||
| 58 | 'geographic' => ' | ||||||||||
| 59 | (?: | ||||||||||
| 60 | 2(?: | ||||||||||
| 61 | 1[6-9]| | ||||||||||
| 62 | 2[0-35-9]| | ||||||||||
| 63 | 3[1-4]| | ||||||||||
| 64 | 5[3-9]| | ||||||||||
| 65 | 6\\d| | ||||||||||
| 66 | 7[0-79] | ||||||||||
| 67 | )| | ||||||||||
| 68 | 3(?: | ||||||||||
| 69 | 2[25-9]| | ||||||||||
| 70 | 3\\d | ||||||||||
| 71 | )| | ||||||||||
| 72 | 4(?: | ||||||||||
| 73 | 4[0-24]| | ||||||||||
| 74 | 5[56] | ||||||||||
| 75 | )| | ||||||||||
| 76 | 50[0-6]| | ||||||||||
| 77 | 77[1-57] | ||||||||||
| 78 | )\\d{4} | ||||||||||
| 79 | ', | ||||||||||
| 80 | 'mobile' => ' | ||||||||||
| 81 | (?: | ||||||||||
| 82 | 51[01]| | ||||||||||
| 83 | 6\\d\\d| | ||||||||||
| 84 | 7(?: | ||||||||||
| 85 | [0-5]\\d| | ||||||||||
| 86 | 6[0-79]| | ||||||||||
| 87 | 70| | ||||||||||
| 88 | 8[067] | ||||||||||
| 89 | ) | ||||||||||
| 90 | )\\d{4} | ||||||||||
| 91 | ', | ||||||||||
| 92 | 'pager' => '', | ||||||||||
| 93 | 'personal_number' => '', | ||||||||||
| 94 | 'specialrate' => '(9008\\d{3})', | ||||||||||
| 95 | 'toll_free' => ' | ||||||||||
| 96 | (?: | ||||||||||
| 97 | 289| | ||||||||||
| 98 | 8(?: | ||||||||||
| 99 | 00| | ||||||||||
| 100 | 6[28]| | ||||||||||
| 101 | 88| | ||||||||||
| 102 | 99 | ||||||||||
| 103 | ) | ||||||||||
| 104 | )\\d{4} | ||||||||||
| 105 | ', | ||||||||||
| 106 | 'voip' => '515\\d{4}' | ||||||||||
| 107 | }; | ||||||||||
| 108 | 2 | my %areanames = (); | |||||||||
| 109 | 2 | $areanames{en} = {"592217", "Mocha", | |||||||||
| 110 | "592218", "Georgetown\ \(S\/R\/Veldt\)", | ||||||||||
| 111 | "592272", "B\/V\ West", | ||||||||||
| 112 | "592777", "Mabaruma\/Port\ Kaituma", | ||||||||||
| 113 | "592334", "New\ Amsterdam", | ||||||||||
| 114 | "592266", "New\ Hope\/Friendship\/Grove\/Land\ of\ Canaan", | ||||||||||
| 115 | "592772", "Lethem", | ||||||||||
| 116 | "592277", "Zeeburg\/Uitvlugt", | ||||||||||
| 117 | "592265", "Diamond", | ||||||||||
| 118 | "592253", "La\ Grange\/Goed\ Fortuin", | ||||||||||
| 119 | "592269", "Windsor\ Forest", | ||||||||||
| 120 | "592270", "Melanie\/Non\ Pariel\/Enmore", | ||||||||||
| 121 | "592234", "B\/V\ Central", | ||||||||||
| 122 | "592261", "Timehri\/Long\ Creek\/Soesdyke", | ||||||||||
| 123 | "592233", "Agricola\/Houston\/Eccles\/Nandy\ Park", | ||||||||||
| 124 | "592262", "Parika", | ||||||||||
| 125 | "592216", "Diamond\/Grove", | ||||||||||
| 126 | "592775", "Matthews\ Ridge", | ||||||||||
| 127 | "592223", "Georgetown", | ||||||||||
| 128 | "592444", "Linden\/Canvas\ City\/Wisroc", | ||||||||||
| 129 | "592276", "Anna\ Catherina\/\ Cornelia\ Ida\/Hague\/Fellowship", | ||||||||||
| 130 | "592275", "Met\-en\-Meer\-Zorg", | ||||||||||
| 131 | "592254", "New\ Road\/Best", | ||||||||||
| 132 | "592267", "Wales", | ||||||||||
| 133 | "592268", "Leonora", | ||||||||||
| 134 | "592333", "New\ Amsterdam", | ||||||||||
| 135 | "592260", "Tuschen\/Parika", | ||||||||||
| 136 | "592279", "Good\ Hope\/Stanleytown", | ||||||||||
| 137 | "592219", "Georgetown\,Sophia", | ||||||||||
| 138 | "592271", "Canal\ No\.\ 1\/Canal\ No\.\ 2", | ||||||||||
| 139 | "592328", "Cottage\/Tempe\/Onverwagt\/Bath\/Waterloo", | ||||||||||
| 140 | "592327", "Blairmont\/Cumberland", | ||||||||||
| 141 | "592274", "Vigilance", | ||||||||||
| 142 | "592255", "Paradise\/Golden\ Grove\/Haslington", | ||||||||||
| 143 | "592256", "Victoria\/Hope\ West", | ||||||||||
| 144 | "592337", "Whim\/Bloomfield\/Liverpool\/Rose\ Hall", | ||||||||||
| 145 | "592338", "Benab\/No\.\ 65\ Village\/Massiah", | ||||||||||
| 146 | "592332", "Sheet\ Anchor\/Susannah", | ||||||||||
| 147 | "592220", "B\/V\ Central", | ||||||||||
| 148 | "592322", "Kilcoy\/Hampshire\/Nigg", | ||||||||||
| 149 | "592228", "Mahaica\/Belmont", | ||||||||||
| 150 | "592227", "Georgetown", | ||||||||||
| 151 | "592441", "Ituni", | ||||||||||
| 152 | "592232", "Novar\/Catherine\/Belladrum\/Bush\ Lot", | ||||||||||
| 153 | "592259", "Clonbrook\/Unity", | ||||||||||
| 154 | "592330", "Rosignol\/Shieldstown", | ||||||||||
| 155 | "592222", "B\/V\ West", | ||||||||||
| 156 | "592264", "Vreed\-en\-Hoop", | ||||||||||
| 157 | "592325", "Mibikuri\/No\:\ 34\/Joppa\/Brighton", | ||||||||||
| 158 | "592257", "Cane\ Grove\/Strangroen", | ||||||||||
| 159 | "592336", "Edinburg\/Port\ Mourant", | ||||||||||
| 160 | "592221", "Mahaicony", | ||||||||||
| 161 | "592258", "Planters\ Hall\/Mortice", | ||||||||||
| 162 | "592231", "Georgetown", | ||||||||||
| 163 | "592326", "Adelphi\/Fryish\/No\.\ 40", | ||||||||||
| 164 | "592335", "Crabwood\ Creek\/No\:\ 76\/Corentyne", | ||||||||||
| 165 | "592442", "Christianburg\/Amelia\’s\ Ward", | ||||||||||
| 166 | "592229", "Enterprise\/Cove\ \&\ John", | ||||||||||
| 167 | "592225", "Georgetown", | ||||||||||
| 168 | "592773", "Aishalton", | ||||||||||
| 169 | "592331", "Adventure\/Joanna", | ||||||||||
| 170 | "592226", "Georgetown", | ||||||||||
| 171 | "592329", "Willemstad\/Fort\ Wellington\/Ithaca", | ||||||||||
| 172 | "592455", "Bartica", | ||||||||||
| 173 | "592440", "Kwakwani", | ||||||||||
| 174 | "592339", "No\:\ 52\/Skeldon", | ||||||||||
| 175 | "592456", "Mahdia",}; | ||||||||||
| 176 | 2 | my $timezones = { | |||||||||
| 177 | '' => [ | ||||||||||
| 178 | 'America/Guyana' | ||||||||||
| 179 | ] | ||||||||||
| 180 | }; | ||||||||||
| 181 | |||||||||||
| 182 | 16 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 183 | 16 | my $class = shift; | |||||||||
| 184 | 16 | my $number = shift; | |||||||||
| 185 | 16 | $number =~ s/(^\+592|\D)//g; | |||||||||
| 186 | 16 | my $self = bless({ country_code => '592', number => $number, formatters => $formatters, validators => $validators, timezones => $timezones, areanames => \%areanames}, $class); | |||||||||
| 187 | 16 | ▶ | return $self->is_valid() ? $self : undef; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 188 | } | ||||||||||
| 189 | 2 | 1; | |||||||||