elskwid-phone 0.9.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2010 Tomislav Car
2
+ Modifications copyright (c) 2010 Todd Eichel for Fooala, Inc.
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ this software and associated documentation files (the "Software"), to deal in
6
+ the Software without restriction, including without limitation the rights to
7
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ the Software, and to permit persons to whom the Software is furnished to do so,
9
+ subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Readme.rdoc ADDED
@@ -0,0 +1,104 @@
1
+ = Phone
2
+ Parsing, validating and creating phone numbers
3
+
4
+ == Install
5
+ You can install the phone library as a gem
6
+ gem sources -a http://gemcutter.org
7
+ gem install phone
8
+
9
+ Or as a Rails plugin
10
+ script/plugin install git://github.com/carr/phone.git
11
+
12
+ == Initializing
13
+ You can initialize a new phone object with the number, area code, country code and extension number
14
+
15
+ Phone.new('5125486', '91', '385')
16
+ or
17
+ Phone.new(:number => '5125486', :area_code => '91', :country_code => '385', :extension => '143')
18
+
19
+ == Parsing
20
+ You can create a new phone object by parsing from a string. Phone does it's best to detect the country and area codes:
21
+ Phone.parse '+385915125486'
22
+ Phone.parse '00385915125486'
23
+
24
+ If the country or area code isn't given in the string, you must set it, otherwise it doesn't work:
25
+ Phone.parse '091/512-5486', :country_code => '385'
26
+ Phone.parse '(091) 512 5486', :country_code => '385'
27
+
28
+ If you feel that it's tedious, set the default country code once (in your config/environment.rb):
29
+ Phone.default_country_code = '385'
30
+ Phone.parse '091/512-5486'
31
+ Phone.parse '(091) 512 5486'
32
+
33
+ Same goes for the area code:
34
+ Phone.parse '451-588', :country_code => '385', :area_code => '47'
35
+ or
36
+ Phone.default_country_code = '385'
37
+ Phone.default_area_code = '47'
38
+
39
+ Phone.parse '451-588'
40
+
41
+ === Automatic country and area code detection
42
+ Like it's stated above, Phone does it's best to automatically detect the country and area code while parsing. Do do this,
43
+ phone uses data stored in <tt>data/countries.yml</tt>.
44
+
45
+ Each country code can have a regular expression named <tt>area_code</tt> that describes how the area code for that
46
+ particular country looks like.
47
+
48
+ If an <tt>area_code</tt> regular expression isn't specified, the default, <tt>Phone::DEFAULT_AREA_CODE</tt> (correct for
49
+ the US) is used.
50
+
51
+ == Validating
52
+ Validating is very relaxed, basically it strips out everything that's not a number or '+' character:
53
+ Phone.valid? 'blabla 091/512-5486 blabla'
54
+
55
+ == Formatting
56
+ Formating is done via the <tt>format</tt> method. The method accepts a <tt>Symbol</tt> or a <tt>String</tt>.
57
+
58
+ When given a string, it interpolates the string with the following fields:
59
+
60
+ * %c - country_code (385)
61
+ * %a - area_code (91)
62
+ * %A - area_code with leading zero (091)
63
+ * %n - number (5125486)
64
+ * %f - first @@n1_length characters of number (configured through Phone.n1_length), default is 3 (512)
65
+ * %l - last characters of number (5486)
66
+ * %x - the extension number
67
+
68
+ pn = Phone.parse('+385915125486')
69
+ pn.to_s # => "+385915125486"
70
+ pn.format("%A/%f-%l") # => "091/512-5486"
71
+ pn.format("+ %c (%a) %n") # => "+ 385 (91) 5125486"
72
+
73
+ When given a symbol it is used as a lookup for the format in the <tt>Phone.named_formats</tt> hash.
74
+ pn.format(:europe) # => "+385 (0) 91 512 5486"
75
+ pn.format(:us) # => "(234) 123 4567"
76
+ pn.format(:default_with_extension) # => "+3851234567x143"
77
+
78
+ You can add your own custom named formats like so:
79
+ Phone.named_formats[:short] = '%A/%n1-%n2'
80
+ pn.format(:short) # => 091/512-5486
81
+
82
+ = TODO
83
+ Parse testing for different countries.
84
+
85
+ Currently tested on:
86
+ [BA] Bosnia and Herzegovina
87
+ [DE] Germany
88
+ [FR] France
89
+ [GB] United Kingdom
90
+ [HR] Croatia
91
+ [HU] Hungary
92
+ [RS] Serbia
93
+ [SE] Sweden
94
+ [SI] Slovenia
95
+ [UA] Ukraine
96
+ [US] United States
97
+ [ZA] South Africa
98
+
99
+ = Author
100
+ Copyright © 2010 Tomislav Car, Infinum
101
+
102
+ = Contributors
103
+ Michael Squires, Todd Eichel (Fooala, Inc.), chipiga, Etienne Samson, Luke Randall
104
+
@@ -0,0 +1,1440 @@
1
+ ---
2
+ "676":
3
+ :country_code: "676"
4
+ :national_dialing_prefix: None
5
+ :char_2_code: None
6
+ :char_3_code: TO
7
+ :name: Tonga
8
+ :international_dialing_prefix: "0"
9
+ "54":
10
+ :country_code: "54"
11
+ :national_dialing_prefix: "0"
12
+ :char_2_code: "0"
13
+ :char_3_code: AR
14
+ :name: Argentina
15
+ :international_dialing_prefix: "0"
16
+ "506":
17
+ :country_code: "506"
18
+ :national_dialing_prefix: None
19
+ :char_2_code: None
20
+ :char_3_code: CR
21
+ :name: Costa Rica
22
+ :international_dialing_prefix: "0"
23
+ "251":
24
+ :country_code: "251"
25
+ :national_dialing_prefix: "0"
26
+ :char_2_code: "0"
27
+ :char_3_code: ET
28
+ :name: Ethiopia
29
+ :international_dialing_prefix: "0"
30
+ "590":
31
+ :country_code: "590"
32
+ :national_dialing_prefix: None
33
+ :char_2_code: None
34
+ :char_3_code: GP
35
+ :name: Guadeloupe
36
+ :international_dialing_prefix: "0"
37
+ "82":
38
+ :country_code: "82"
39
+ :national_dialing_prefix: "0"
40
+ :char_2_code: "0"
41
+ :char_3_code: KR
42
+ :name: Korea, Republic of
43
+ :international_dialing_prefix: "1"
44
+ "223":
45
+ :country_code: "223"
46
+ :national_dialing_prefix: "0"
47
+ :char_2_code: "0"
48
+ :char_3_code: ML
49
+ :name: Mali
50
+ :international_dialing_prefix: "0"
51
+ "420":
52
+ :country_code: "420"
53
+ :national_dialing_prefix: None
54
+ :char_2_code: None
55
+ :char_3_code: CZ
56
+ :name: Czech Republic
57
+ :international_dialing_prefix: "0"
58
+ "252":
59
+ :country_code: "252"
60
+ :national_dialing_prefix: None
61
+ :char_2_code: None
62
+ :char_3_code: SO
63
+ :name: Somalia
64
+ :international_dialing_prefix: "0"
65
+ "677":
66
+ :country_code: "677"
67
+ :national_dialing_prefix: None
68
+ :char_2_code: None
69
+ :char_3_code: SB
70
+ :name: Solomon Islands
71
+ :international_dialing_prefix: "0"
72
+ "421":
73
+ :country_code: "421"
74
+ :national_dialing_prefix: "0"
75
+ :char_2_code: "0"
76
+ :char_3_code: SK
77
+ :name: Slovakia
78
+ :international_dialing_prefix: "0"
79
+ "507":
80
+ :country_code: "507"
81
+ :national_dialing_prefix: None
82
+ :char_2_code: None
83
+ :char_3_code: PA
84
+ :name: Panama
85
+ :international_dialing_prefix: "0"
86
+ "591":
87
+ :country_code: "591"
88
+ :national_dialing_prefix: "10"
89
+ :char_2_code: "10"
90
+ :char_3_code: BO
91
+ :name: Bolivia
92
+ :international_dialing_prefix: "10"
93
+ "224":
94
+ :country_code: "224"
95
+ :national_dialing_prefix: None
96
+ :char_2_code: None
97
+ :char_3_code: GN
98
+ :name: Guinea
99
+ :international_dialing_prefix: "0"
100
+ "84":
101
+ :country_code: "84"
102
+ :national_dialing_prefix: "0"
103
+ :char_2_code: "0"
104
+ :char_3_code: VN
105
+ :name: Viet Nam
106
+ :international_dialing_prefix: "0"
107
+ "678":
108
+ :country_code: "678"
109
+ :national_dialing_prefix: None
110
+ :char_2_code: None
111
+ :char_3_code: VU
112
+ :name: Vanuatu
113
+ :international_dialing_prefix: "0"
114
+ "27":
115
+ :country_code: "27"
116
+ :national_dialing_prefix: "0"
117
+ :char_2_code: "0"
118
+ :char_3_code: ZA
119
+ :name: South Africa
120
+ :international_dialing_prefix: "0"
121
+ :area_code: "800|860|861|[1-5,7-8][0-9]"
122
+ "508":
123
+ :country_code: "508"
124
+ :national_dialing_prefix: "0"
125
+ :char_2_code: "0"
126
+ :char_3_code: PM
127
+ :name: Saint Pierre And Miquelon
128
+ :international_dialing_prefix: "0"
129
+ "55":
130
+ :country_code: "55"
131
+ :national_dialing_prefix: "14"
132
+ :char_2_code: "14"
133
+ :char_3_code: BR
134
+ :name: Brazil
135
+ :international_dialing_prefix: "14"
136
+ "253":
137
+ :country_code: "253"
138
+ :national_dialing_prefix: None
139
+ :char_2_code: None
140
+ :char_3_code: DJ
141
+ :name: Djibouti
142
+ :international_dialing_prefix: "0"
143
+ "592":
144
+ :country_code: "592"
145
+ :national_dialing_prefix: None
146
+ :char_2_code: None
147
+ :char_3_code: GY
148
+ :name: Guyana
149
+ :international_dialing_prefix: "0"
150
+ "225":
151
+ :country_code: "225"
152
+ :national_dialing_prefix: "0"
153
+ :char_2_code: "0"
154
+ :char_3_code: CI
155
+ :name: "C\xC3\xB4te D'Ivoire"
156
+ :international_dialing_prefix: "0"
157
+ "56":
158
+ :country_code: "56"
159
+ :national_dialing_prefix: "0"
160
+ :char_2_code: "0"
161
+ :char_3_code: CL
162
+ :name: Chile
163
+ :international_dialing_prefix: "0"
164
+ "679":
165
+ :country_code: "679"
166
+ :national_dialing_prefix: None
167
+ :char_2_code: None
168
+ :char_3_code: FJ
169
+ :name: Fiji
170
+ :international_dialing_prefix: "0"
171
+ "509":
172
+ :country_code: "509"
173
+ :national_dialing_prefix: None
174
+ :char_2_code: None
175
+ :char_3_code: HT
176
+ :name: Haiti
177
+ :international_dialing_prefix: "0"
178
+ "593":
179
+ :country_code: "593"
180
+ :national_dialing_prefix: "0"
181
+ :char_2_code: "0"
182
+ :char_3_code: EC
183
+ :name: Ecuador
184
+ :international_dialing_prefix: "0"
185
+ "254":
186
+ :country_code: "254"
187
+ :national_dialing_prefix: "0"
188
+ :char_2_code: "0"
189
+ :char_3_code: KE
190
+ :name: Kenya
191
+ :international_dialing_prefix: "0"
192
+ "226":
193
+ :country_code: "226"
194
+ :national_dialing_prefix: None
195
+ :char_2_code: None
196
+ :char_3_code: BF
197
+ :name: Burkina Faso
198
+ :international_dialing_prefix: "0"
199
+ "423":
200
+ :country_code: "423"
201
+ :national_dialing_prefix: None
202
+ :char_2_code: None
203
+ :char_3_code: LI
204
+ :name: Liechtenstein
205
+ :international_dialing_prefix: "0"
206
+ "255":
207
+ :country_code: "255"
208
+ :national_dialing_prefix: "0"
209
+ :char_2_code: "0"
210
+ :char_3_code: TZ
211
+ :name: Tanzania, United Republic of
212
+ :international_dialing_prefix: "0"
213
+ "227":
214
+ :country_code: "227"
215
+ :national_dialing_prefix: "0"
216
+ :char_2_code: "0"
217
+ :char_3_code: NE
218
+ :name: Niger
219
+ :international_dialing_prefix: "0"
220
+ "594":
221
+ :country_code: "594"
222
+ :national_dialing_prefix: None
223
+ :char_2_code: None
224
+ :char_3_code: GF
225
+ :name: French Guiana
226
+ :international_dialing_prefix: "0"
227
+ "86":
228
+ :country_code: "86"
229
+ :national_dialing_prefix: "0"
230
+ :char_2_code: "0"
231
+ :char_3_code: CN
232
+ :name: China
233
+ :international_dialing_prefix: "0"
234
+ "960":
235
+ :country_code: "960"
236
+ :national_dialing_prefix: None
237
+ :char_2_code: None
238
+ :char_3_code: MV
239
+ :name: Maldives
240
+ :international_dialing_prefix: "0"
241
+ "57":
242
+ :country_code: "57"
243
+ :national_dialing_prefix: "5"
244
+ :char_2_code: "5"
245
+ :char_3_code: CO
246
+ :name: Colombia
247
+ :international_dialing_prefix: "5"
248
+ "58":
249
+ :country_code: "58"
250
+ :national_dialing_prefix: "0"
251
+ :char_2_code: "0"
252
+ :char_3_code: VE
253
+ :name: Venezuela, Bolivarian Republic of
254
+ :international_dialing_prefix: "0"
255
+ "256":
256
+ :country_code: "256"
257
+ :national_dialing_prefix: "0"
258
+ :char_2_code: "0"
259
+ :char_3_code: UG
260
+ :name: Uganda
261
+ :international_dialing_prefix: "0"
262
+ "228":
263
+ :country_code: "228"
264
+ :national_dialing_prefix: None
265
+ :char_2_code: None
266
+ :char_3_code: TG
267
+ :name: Togo
268
+ :international_dialing_prefix: "0"
269
+ "595":
270
+ :country_code: "595"
271
+ :national_dialing_prefix: "0"
272
+ :char_2_code: "0"
273
+ :char_3_code: PY
274
+ :name: Paraguay
275
+ :international_dialing_prefix: "2"
276
+ "961":
277
+ :country_code: "961"
278
+ :national_dialing_prefix: "0"
279
+ :char_2_code: "0"
280
+ :char_3_code: LB
281
+ :name: Lebanon
282
+ :international_dialing_prefix: "0"
283
+ "596":
284
+ :country_code: "596"
285
+ :national_dialing_prefix: None
286
+ :char_2_code: None
287
+ :char_3_code: MQ
288
+ :name: Martinique
289
+ :international_dialing_prefix: "0"
290
+ "257":
291
+ :country_code: "257"
292
+ :national_dialing_prefix: None
293
+ :char_2_code: None
294
+ :char_3_code: BI
295
+ :name: Burundi
296
+ :international_dialing_prefix: "0"
297
+ "229":
298
+ :country_code: "229"
299
+ :national_dialing_prefix: None
300
+ :char_2_code: None
301
+ :char_3_code: BJ
302
+ :name: Benin
303
+ :international_dialing_prefix: "0"
304
+ "962":
305
+ :country_code: "962"
306
+ :national_dialing_prefix: "0"
307
+ :char_2_code: "0"
308
+ :char_3_code: JO
309
+ :name: Jordan
310
+ :international_dialing_prefix: "0"
311
+ "963":
312
+ :country_code: "963"
313
+ :national_dialing_prefix: "0"
314
+ :char_2_code: "0"
315
+ :char_3_code: SY
316
+ :name: Syrian Arab Republic
317
+ :international_dialing_prefix: "0"
318
+ "597":
319
+ :country_code: "597"
320
+ :national_dialing_prefix: "0"
321
+ :char_2_code: "0"
322
+ :char_3_code: SR
323
+ :name: Suriname
324
+ :international_dialing_prefix: "0"
325
+ "680":
326
+ :country_code: "680"
327
+ :national_dialing_prefix: None
328
+ :char_2_code: None
329
+ :char_3_code: PW
330
+ :name: Palau
331
+ :international_dialing_prefix: "0"
332
+ "258":
333
+ :country_code: "258"
334
+ :national_dialing_prefix: "0"
335
+ :char_2_code: "0"
336
+ :char_3_code: MZ
337
+ :name: Mozambique
338
+ :international_dialing_prefix: "0"
339
+ "30":
340
+ :country_code: "30"
341
+ :national_dialing_prefix: None
342
+ :char_2_code: None
343
+ :char_3_code: GR
344
+ :name: Greece
345
+ :international_dialing_prefix: "0"
346
+ "681":
347
+ :country_code: "681"
348
+ :national_dialing_prefix: None
349
+ :char_2_code: None
350
+ :char_3_code: WF
351
+ :name: Wallis and Futuna
352
+ :international_dialing_prefix: "19"
353
+ "598":
354
+ :country_code: "598"
355
+ :national_dialing_prefix: "0"
356
+ :char_2_code: "0"
357
+ :char_3_code: UY
358
+ :name: Uruguay
359
+ :international_dialing_prefix: "0"
360
+ "992":
361
+ :country_code: "992"
362
+ :national_dialing_prefix: "8"
363
+ :char_2_code: "8"
364
+ :char_3_code: TJ
365
+ :name: Tajikistan
366
+ :international_dialing_prefix: "810"
367
+ "31":
368
+ :country_code: "31"
369
+ :national_dialing_prefix: "0"
370
+ :char_2_code: "0"
371
+ :char_3_code: NL
372
+ :name: Netherlands
373
+ :international_dialing_prefix: "0"
374
+ "850":
375
+ :country_code: "850"
376
+ :national_dialing_prefix: "0"
377
+ :char_2_code: "0"
378
+ :char_3_code: KP
379
+ :name: Korea, Democratic People's Republic Of
380
+ :international_dialing_prefix: "0"
381
+ "964":
382
+ :country_code: "964"
383
+ :national_dialing_prefix: None
384
+ :char_2_code: None
385
+ :char_3_code: IQ
386
+ :name: Iraq
387
+ :international_dialing_prefix: "0"
388
+ "370":
389
+ :country_code: "370"
390
+ :national_dialing_prefix: "8"
391
+ :char_2_code: "8"
392
+ :char_3_code: LT
393
+ :name: Lithuania
394
+ :international_dialing_prefix: "0"
395
+ "993":
396
+ :country_code: "993"
397
+ :national_dialing_prefix: "8"
398
+ :char_2_code: "8"
399
+ :char_3_code: TM
400
+ :name: Turkmenistan
401
+ :international_dialing_prefix: "810"
402
+ "599":
403
+ :country_code: "599"
404
+ :national_dialing_prefix: "0"
405
+ :char_2_code: "0"
406
+ :char_3_code: AN
407
+ :name: Netherlands Antilles
408
+ :international_dialing_prefix: "0"
409
+ "32":
410
+ :country_code: "32"
411
+ :national_dialing_prefix: "0"
412
+ :char_2_code: "0"
413
+ :char_3_code: BE
414
+ :name: Belgium
415
+ :international_dialing_prefix: "0"
416
+ "965":
417
+ :country_code: "965"
418
+ :national_dialing_prefix: None
419
+ :char_2_code: None
420
+ :char_3_code: KW
421
+ :name: Kuwait
422
+ :international_dialing_prefix: "0"
423
+ "371":
424
+ :country_code: "371"
425
+ :national_dialing_prefix: "8"
426
+ :char_2_code: "8"
427
+ :char_3_code: LV
428
+ :name: Latvia
429
+ :international_dialing_prefix: "0"
430
+ "682":
431
+ :country_code: "682"
432
+ :national_dialing_prefix: "0"
433
+ :char_2_code: "0"
434
+ :char_3_code: CK
435
+ :name: Cook Islands
436
+ :international_dialing_prefix: "0"
437
+ "60":
438
+ :country_code: "60"
439
+ :national_dialing_prefix: "0"
440
+ :char_2_code: "0"
441
+ :char_3_code: MY
442
+ :name: Malaysia
443
+ :international_dialing_prefix: "0"
444
+ "966":
445
+ :country_code: "966"
446
+ :national_dialing_prefix: "0"
447
+ :char_2_code: "0"
448
+ :char_3_code: SA
449
+ :name: Saudi Arabia
450
+ :international_dialing_prefix: "0"
451
+ "683":
452
+ :country_code: "683"
453
+ :national_dialing_prefix: None
454
+ :char_2_code: None
455
+ :char_3_code: NU
456
+ :name: Niue
457
+ :international_dialing_prefix: "0"
458
+ "230":
459
+ :country_code: "230"
460
+ :national_dialing_prefix: None
461
+ :char_2_code: None
462
+ :char_3_code: MU
463
+ :name: Mauritius
464
+ :international_dialing_prefix: "20"
465
+ "994":
466
+ :country_code: "994"
467
+ :national_dialing_prefix: "8"
468
+ :char_2_code: "8"
469
+ :char_3_code: AZ
470
+ :name: Azerbaijan
471
+ :international_dialing_prefix: "810"
472
+ "852":
473
+ :country_code: "852"
474
+ :national_dialing_prefix: None
475
+ :char_2_code: None
476
+ :char_3_code: HK
477
+ :name: Hong Kong
478
+ :international_dialing_prefix: "1"
479
+ "372":
480
+ :country_code: "372"
481
+ :national_dialing_prefix: None
482
+ :char_2_code: None
483
+ :char_3_code: EE
484
+ :name: Estonia
485
+ :international_dialing_prefix: "0"
486
+ "61":
487
+ :country_code: "61"
488
+ :national_dialing_prefix: "0"
489
+ :char_2_code: "0"
490
+ :char_3_code: CC
491
+ :name: Cocos (Keeling) Islands
492
+ :international_dialing_prefix: "11"
493
+ "880":
494
+ :country_code: "880"
495
+ :national_dialing_prefix: "0"
496
+ :char_2_code: "0"
497
+ :char_3_code: BD
498
+ :name: Bangladesh
499
+ :international_dialing_prefix: "0"
500
+ "967":
501
+ :country_code: "967"
502
+ :national_dialing_prefix: "0"
503
+ :char_2_code: "0"
504
+ :char_3_code: YE
505
+ :name: Yemen
506
+ :international_dialing_prefix: "0"
507
+ "90":
508
+ :country_code: "90"
509
+ :national_dialing_prefix: "0"
510
+ :char_2_code: "0"
511
+ :char_3_code: TR
512
+ :name: Turkey
513
+ :international_dialing_prefix: "0"
514
+ "373":
515
+ :country_code: "373"
516
+ :national_dialing_prefix: "0"
517
+ :char_2_code: "0"
518
+ :char_3_code: MD
519
+ :name: Moldova, Republic of
520
+ :international_dialing_prefix: "0"
521
+ "33":
522
+ :country_code: "33"
523
+ :national_dialing_prefix: "0"
524
+ :char_2_code: "0"
525
+ :char_3_code: FR
526
+ :name: France
527
+ :international_dialing_prefix: "0"
528
+ :area_code: "[1-6,8-9]"
529
+ "995":
530
+ :country_code: "995"
531
+ :national_dialing_prefix: 8*
532
+ :char_2_code: 8*
533
+ :char_3_code: GE
534
+ :name: Georgia
535
+ :international_dialing_prefix: "810"
536
+ "853":
537
+ :country_code: "853"
538
+ :national_dialing_prefix: "0"
539
+ :char_2_code: "0"
540
+ :char_3_code: MO
541
+ :name: Macao
542
+ :international_dialing_prefix: "0"
543
+ "231":
544
+ :country_code: "231"
545
+ :national_dialing_prefix: "22"
546
+ :char_2_code: "22"
547
+ :char_3_code: LR
548
+ :name: Liberia
549
+ :international_dialing_prefix: "0"
550
+ "62":
551
+ :country_code: "62"
552
+ :national_dialing_prefix: "0"
553
+ :char_2_code: "0"
554
+ :char_3_code: ID
555
+ :name: Indonesia
556
+ :international_dialing_prefix: "1"
557
+ "260":
558
+ :country_code: "260"
559
+ :national_dialing_prefix: "0"
560
+ :char_2_code: "0"
561
+ :char_3_code: ZM
562
+ :name: Zambia
563
+ :international_dialing_prefix: "0"
564
+ "34":
565
+ :country_code: "34"
566
+ :national_dialing_prefix: None
567
+ :char_2_code: None
568
+ :char_3_code: ES
569
+ :name: Spain
570
+ :international_dialing_prefix: "0"
571
+ "232":
572
+ :country_code: "232"
573
+ :national_dialing_prefix: "0"
574
+ :char_2_code: "0"
575
+ :char_3_code: SL
576
+ :name: Sierra Leone
577
+ :international_dialing_prefix: "0"
578
+ "685":
579
+ :country_code: "685"
580
+ :national_dialing_prefix: None
581
+ :char_2_code: None
582
+ :char_3_code: WS
583
+ :name: Samoa
584
+ :international_dialing_prefix: "0"
585
+ "63":
586
+ :country_code: "63"
587
+ :national_dialing_prefix: "0"
588
+ :char_2_code: "0"
589
+ :char_3_code: PH
590
+ :name: Philippines
591
+ :international_dialing_prefix: "0"
592
+ "968":
593
+ :country_code: "968"
594
+ :national_dialing_prefix: None
595
+ :char_2_code: None
596
+ :char_3_code: OM
597
+ :name: Oman
598
+ :international_dialing_prefix: "0"
599
+ "996":
600
+ :country_code: "996"
601
+ :national_dialing_prefix: "0"
602
+ :char_2_code: "0"
603
+ :char_3_code: KG
604
+ :name: Kyrgyzstan
605
+ :international_dialing_prefix: "0"
606
+ "374":
607
+ :country_code: "374"
608
+ :national_dialing_prefix: "8"
609
+ :char_2_code: "8"
610
+ :char_3_code: AM
611
+ :name: Armenia
612
+ :international_dialing_prefix: "0"
613
+ "91":
614
+ :country_code: "91"
615
+ :national_dialing_prefix: "0"
616
+ :char_2_code: "0"
617
+ :char_3_code: IN
618
+ :name: India
619
+ :international_dialing_prefix: "0"
620
+ "92":
621
+ :country_code: "92"
622
+ :national_dialing_prefix: "0"
623
+ :char_2_code: "0"
624
+ :char_3_code: PK
625
+ :name: Pakistan
626
+ :international_dialing_prefix: "0"
627
+ "64":
628
+ :country_code: "64"
629
+ :national_dialing_prefix: 0 (None fo
630
+ :char_2_code: 0 (None fo
631
+ :char_3_code: NZ
632
+ :name: New Zealand
633
+ :international_dialing_prefix: "0"
634
+ "855":
635
+ :country_code: "855"
636
+ :national_dialing_prefix: "0"
637
+ :char_2_code: "0"
638
+ :char_3_code: KH
639
+ :name: Cambodia
640
+ :international_dialing_prefix: "0"
641
+ "261":
642
+ :country_code: "261"
643
+ :national_dialing_prefix: None
644
+ :char_2_code: None
645
+ :char_3_code: MG
646
+ :name: Madagascar
647
+ :international_dialing_prefix: "0"
648
+ "1":
649
+ :country_code: "1"
650
+ :national_dialing_prefix: "1"
651
+ :char_2_code: "1"
652
+ :char_3_code: US
653
+ :name: United States
654
+ :international_dialing_prefix: "11"
655
+ "375":
656
+ :country_code: "375"
657
+ :national_dialing_prefix: "8"
658
+ :char_2_code: "8"
659
+ :char_3_code: BY
660
+ :name: Belarus
661
+ :international_dialing_prefix: "810"
662
+ "233":
663
+ :country_code: "233"
664
+ :national_dialing_prefix: None
665
+ :char_2_code: None
666
+ :char_3_code: GH
667
+ :name: Ghana
668
+ :international_dialing_prefix: "0"
669
+ "686":
670
+ :country_code: "686"
671
+ :national_dialing_prefix: None
672
+ :char_2_code: None
673
+ :char_3_code: KI
674
+ :name: Kiribati
675
+ :international_dialing_prefix: "0"
676
+ "998":
677
+ :country_code: "998"
678
+ :national_dialing_prefix: "8"
679
+ :char_2_code: "8"
680
+ :char_3_code: UZ
681
+ :name: Uzbekistan
682
+ :international_dialing_prefix: "810"
683
+ "65":
684
+ :country_code: "65"
685
+ :national_dialing_prefix: None
686
+ :char_2_code: None
687
+ :char_3_code: SG
688
+ :name: Singapore
689
+ :international_dialing_prefix: "1"
690
+ "290":
691
+ :country_code: "290"
692
+ :national_dialing_prefix: None
693
+ :char_2_code: None
694
+ :char_3_code: SH
695
+ :name: Saint Helena
696
+ :international_dialing_prefix: "0"
697
+ "262":
698
+ :country_code: "262"
699
+ :national_dialing_prefix: None
700
+ :char_2_code: None
701
+ :char_3_code: RE
702
+ :name: "R\xC3\xA9union"
703
+ :international_dialing_prefix: "0"
704
+ "234":
705
+ :country_code: "234"
706
+ :national_dialing_prefix: "0"
707
+ :char_2_code: "0"
708
+ :char_3_code: NG
709
+ :name: Nigeria
710
+ :international_dialing_prefix: "9"
711
+ "687":
712
+ :country_code: "687"
713
+ :national_dialing_prefix: None
714
+ :char_2_code: None
715
+ :char_3_code: NC
716
+ :name: New Caledonia
717
+ :international_dialing_prefix: "0"
718
+ "856":
719
+ :country_code: "856"
720
+ :national_dialing_prefix: "0"
721
+ :char_2_code: "0"
722
+ :char_3_code: LA
723
+ :name: Lao People's Democratic Republic
724
+ :international_dialing_prefix: "0"
725
+ "93":
726
+ :country_code: "93"
727
+ :national_dialing_prefix: "0"
728
+ :char_2_code: "0"
729
+ :char_3_code: AF
730
+ :name: Afghanistan
731
+ :international_dialing_prefix: "0"
732
+ "376":
733
+ :country_code: "376"
734
+ :national_dialing_prefix: None
735
+ :char_2_code: None
736
+ :char_3_code: AD
737
+ :name: Andorra
738
+ :international_dialing_prefix: "0"
739
+ "36":
740
+ :country_code: "36"
741
+ :national_dialing_prefix: "6"
742
+ :char_2_code: "6"
743
+ :char_3_code: HU
744
+ :name: Hungary
745
+ :international_dialing_prefix: "0"
746
+ :area_code: "1|[2-9][0-9]"
747
+ "263":
748
+ :country_code: "263"
749
+ :national_dialing_prefix: "0"
750
+ :char_2_code: "0"
751
+ :char_3_code: ZW
752
+ :name: Zimbabwe
753
+ :international_dialing_prefix: "0"
754
+ "688":
755
+ :country_code: "688"
756
+ :national_dialing_prefix: None
757
+ :char_2_code: None
758
+ :char_3_code: TV
759
+ :name: Tuvalu
760
+ :international_dialing_prefix: "0"
761
+ "94":
762
+ :country_code: "94"
763
+ :national_dialing_prefix: "0"
764
+ :char_2_code: "0"
765
+ :char_3_code: LK
766
+ :name: Sri Lanka
767
+ :international_dialing_prefix: "0"
768
+ "377":
769
+ :country_code: "377"
770
+ :national_dialing_prefix: "0"
771
+ :char_2_code: "0"
772
+ :char_3_code: MC
773
+ :name: Monaco
774
+ :international_dialing_prefix: "0"
775
+ "235":
776
+ :country_code: "235"
777
+ :national_dialing_prefix: None
778
+ :char_2_code: None
779
+ :char_3_code: TD
780
+ :name: Chad
781
+ :international_dialing_prefix: "15"
782
+ "291":
783
+ :country_code: "291"
784
+ :national_dialing_prefix: "0"
785
+ :char_2_code: "0"
786
+ :char_3_code: ER
787
+ :name: Eritrea
788
+ :international_dialing_prefix: "0"
789
+ "66":
790
+ :country_code: "66"
791
+ :national_dialing_prefix: "0"
792
+ :char_2_code: "0"
793
+ :char_3_code: TH
794
+ :name: Thailand
795
+ :international_dialing_prefix: "1"
796
+ "886":
797
+ :country_code: "886"
798
+ :national_dialing_prefix: None
799
+ :char_2_code: None
800
+ :char_3_code: TW
801
+ :name: Taiwan, Province Of China
802
+ :international_dialing_prefix: "2"
803
+ "378":
804
+ :country_code: "378"
805
+ :national_dialing_prefix: None
806
+ :char_2_code: None
807
+ :char_3_code: SM
808
+ :name: San Marino
809
+ :international_dialing_prefix: "0"
810
+ "264":
811
+ :country_code: "264"
812
+ :national_dialing_prefix: "0"
813
+ :char_2_code: "0"
814
+ :char_3_code: NA
815
+ :name: Namibia
816
+ :international_dialing_prefix: "0"
817
+ "95":
818
+ :country_code: "95"
819
+ :national_dialing_prefix: None
820
+ :char_2_code: None
821
+ :char_3_code: MM
822
+ :name: Myanmar
823
+ :international_dialing_prefix: "0"
824
+ "236":
825
+ :country_code: "236"
826
+ :national_dialing_prefix: None
827
+ :char_2_code: None
828
+ :char_3_code: CF
829
+ :name: Central African Republic
830
+ :international_dialing_prefix: "0"
831
+ "689":
832
+ :country_code: "689"
833
+ :national_dialing_prefix: None
834
+ :char_2_code: None
835
+ :char_3_code: PF
836
+ :name: French Polynesia
837
+ :international_dialing_prefix: "0"
838
+ "970":
839
+ :country_code: "970"
840
+ :national_dialing_prefix: "0"
841
+ :char_2_code: "0"
842
+ :char_3_code: PS
843
+ :name: Palestinian Territory, Occupied
844
+ :international_dialing_prefix: "0"
845
+ "237":
846
+ :country_code: "237"
847
+ :national_dialing_prefix: None
848
+ :char_2_code: None
849
+ :char_3_code: CM
850
+ :name: Cameroon
851
+ :international_dialing_prefix: "0"
852
+ "39":
853
+ :country_code: "39"
854
+ :national_dialing_prefix: None
855
+ :char_2_code: None
856
+ :char_3_code: IT
857
+ :name: Italy
858
+ :international_dialing_prefix: "0"
859
+ "265":
860
+ :country_code: "265"
861
+ :national_dialing_prefix: None
862
+ :char_2_code: None
863
+ :char_3_code: MW
864
+ :name: Malawi
865
+ :international_dialing_prefix: "0"
866
+ "971":
867
+ :country_code: "971"
868
+ :national_dialing_prefix: "0"
869
+ :char_2_code: "0"
870
+ :char_3_code: AE
871
+ :name: United Arab Emirates
872
+ :international_dialing_prefix: "0"
873
+ "238":
874
+ :country_code: "238"
875
+ :national_dialing_prefix: None
876
+ :char_2_code: None
877
+ :char_3_code: CV
878
+ :name: Cape Verde
879
+ :international_dialing_prefix: "0"
880
+ "266":
881
+ :country_code: "266"
882
+ :national_dialing_prefix: None
883
+ :char_2_code: None
884
+ :char_3_code: LS
885
+ :name: Lesotho
886
+ :international_dialing_prefix: "0"
887
+ "239":
888
+ :country_code: "239"
889
+ :national_dialing_prefix: "0"
890
+ :char_2_code: "0"
891
+ :char_3_code: ST
892
+ :name: Sao Tome and Principe
893
+ :international_dialing_prefix: "0"
894
+ "7":
895
+ :country_code: "7"
896
+ :national_dialing_prefix: "8"
897
+ :char_2_code: "8"
898
+ :char_3_code: RU
899
+ :name: Russian Federation
900
+ :international_dialing_prefix: "810"
901
+ "98":
902
+ :country_code: "98"
903
+ :national_dialing_prefix: "0"
904
+ :char_2_code: "0"
905
+ :char_3_code: IR
906
+ :name: Iran, Islamic Republic Of
907
+ :international_dialing_prefix: "0"
908
+ "972":
909
+ :country_code: "972"
910
+ :national_dialing_prefix: "0"
911
+ :char_2_code: "0"
912
+ :char_3_code: IL
913
+ :name: Israel
914
+ :international_dialing_prefix: "0"
915
+ "350":
916
+ :country_code: "350"
917
+ :national_dialing_prefix: None
918
+ :char_2_code: None
919
+ :char_3_code: GI
920
+ :name: Gibraltar
921
+ :international_dialing_prefix: "0"
922
+ "267":
923
+ :country_code: "267"
924
+ :national_dialing_prefix: None
925
+ :char_2_code: None
926
+ :char_3_code: BW
927
+ :name: Botswana
928
+ :international_dialing_prefix: "0"
929
+ "690":
930
+ :country_code: "690"
931
+ :national_dialing_prefix: None
932
+ :char_2_code: None
933
+ :char_3_code: TK
934
+ :name: Tokelau
935
+ :international_dialing_prefix: "0"
936
+ "268":
937
+ :country_code: "268"
938
+ :national_dialing_prefix: None
939
+ :char_2_code: None
940
+ :char_3_code: SZ
941
+ :name: Swaziland
942
+ :international_dialing_prefix: "0"
943
+ "40":
944
+ :country_code: "40"
945
+ :national_dialing_prefix: "0"
946
+ :char_2_code: "0"
947
+ :char_3_code: RO
948
+ :name: Romania
949
+ :international_dialing_prefix: "0"
950
+ "351":
951
+ :country_code: "351"
952
+ :national_dialing_prefix: None
953
+ :char_2_code: None
954
+ :char_3_code: PT
955
+ :name: Portugal
956
+ :international_dialing_prefix: "0"
957
+ "973":
958
+ :country_code: "973"
959
+ :national_dialing_prefix: None
960
+ :char_2_code: None
961
+ :char_3_code: BH
962
+ :name: Bahrain
963
+ :international_dialing_prefix: "0"
964
+ "380":
965
+ :country_code: "380"
966
+ :national_dialing_prefix: "0"
967
+ :char_2_code: "0"
968
+ :char_3_code: UA
969
+ :name: Ukraine
970
+ :international_dialing_prefix: "00"
971
+ :area_code: "[1-9][0-9]"
972
+ "41":
973
+ :country_code: "41"
974
+ :national_dialing_prefix: "0"
975
+ :char_2_code: "0"
976
+ :char_3_code: CH
977
+ :name: Switzerland
978
+ :international_dialing_prefix: "0"
979
+ "974":
980
+ :country_code: "974"
981
+ :national_dialing_prefix: None
982
+ :char_2_code: None
983
+ :char_3_code: QA
984
+ :name: Qatar
985
+ :international_dialing_prefix: "0"
986
+ "691":
987
+ :country_code: "691"
988
+ :national_dialing_prefix: "1"
989
+ :char_2_code: "1"
990
+ :char_3_code: FM
991
+ :name: Micronesia, Federated States Of
992
+ :international_dialing_prefix: "11"
993
+ "297":
994
+ :country_code: "297"
995
+ :national_dialing_prefix: None
996
+ :char_2_code: None
997
+ :char_3_code: AW
998
+ :name: Aruba
999
+ :international_dialing_prefix: "0"
1000
+ "352":
1001
+ :country_code: "352"
1002
+ :national_dialing_prefix: None
1003
+ :char_2_code: None
1004
+ :char_3_code: LU
1005
+ :name: Luxembourg
1006
+ :international_dialing_prefix: "0"
1007
+ "269":
1008
+ :country_code: "269"
1009
+ :national_dialing_prefix: None
1010
+ :char_2_code: None
1011
+ :char_3_code: YT
1012
+ :name: Mayotte
1013
+ :international_dialing_prefix: "0"
1014
+ "381":
1015
+ :country_code: "381"
1016
+ :national_dialing_prefix: "0"
1017
+ :char_2_code: "0"
1018
+ :char_3_code: RS
1019
+ :name: Serbia
1020
+ :international_dialing_prefix: "99"
1021
+ :area_code: "[1-9][0-9]"
1022
+ "975":
1023
+ :country_code: "975"
1024
+ :national_dialing_prefix: None
1025
+ :char_2_code: None
1026
+ :char_3_code: BT
1027
+ :name: Bhutan
1028
+ :international_dialing_prefix: "0"
1029
+ "298":
1030
+ :country_code: "298"
1031
+ :national_dialing_prefix: None
1032
+ :char_2_code: None
1033
+ :char_3_code: FO
1034
+ :name: Faroe Islands
1035
+ :international_dialing_prefix: "0"
1036
+ "353":
1037
+ :country_code: "353"
1038
+ :national_dialing_prefix: "0"
1039
+ :char_2_code: "0"
1040
+ :char_3_code: IE
1041
+ :name: Ireland
1042
+ :international_dialing_prefix: "0"
1043
+ "692":
1044
+ :country_code: "692"
1045
+ :national_dialing_prefix: "1"
1046
+ :char_2_code: "1"
1047
+ :char_3_code: MH
1048
+ :name: Marshall Islands
1049
+ :international_dialing_prefix: "0"
1050
+ "212":
1051
+ :country_code: "212"
1052
+ :national_dialing_prefix: "0"
1053
+ :char_2_code: "0"
1054
+ :char_3_code: MA
1055
+ :name: Morocco
1056
+ :international_dialing_prefix: "0"
1057
+ "382":
1058
+ :country_code: "382"
1059
+ :national_dialing_prefix: "0"
1060
+ :char_2_code: "0"
1061
+ :char_3_code: ME
1062
+ :name: Montenegro
1063
+ :international_dialing_prefix: "99"
1064
+ "976":
1065
+ :country_code: "976"
1066
+ :national_dialing_prefix: "0"
1067
+ :char_2_code: "0"
1068
+ :char_3_code: MN
1069
+ :name: Mongolia
1070
+ :international_dialing_prefix: "1"
1071
+ "240":
1072
+ :country_code: "240"
1073
+ :national_dialing_prefix: None
1074
+ :char_2_code: None
1075
+ :char_3_code: GQ
1076
+ :name: Equatorial Guinea
1077
+ :international_dialing_prefix: "0"
1078
+ "299":
1079
+ :country_code: "299"
1080
+ :national_dialing_prefix: None
1081
+ :char_2_code: None
1082
+ :char_3_code: GL
1083
+ :name: Greenland
1084
+ :international_dialing_prefix: "9"
1085
+ "354":
1086
+ :country_code: "354"
1087
+ :national_dialing_prefix: "0"
1088
+ :char_2_code: "0"
1089
+ :char_3_code: IS
1090
+ :name: Iceland
1091
+ :international_dialing_prefix: "0"
1092
+ "43":
1093
+ :country_code: "43"
1094
+ :national_dialing_prefix: "0"
1095
+ :char_2_code: "0"
1096
+ :char_3_code: AT
1097
+ :name: Austria
1098
+ :international_dialing_prefix: "0"
1099
+ "977":
1100
+ :country_code: "977"
1101
+ :national_dialing_prefix: "0"
1102
+ :char_2_code: "0"
1103
+ :char_3_code: NP
1104
+ :name: Nepal
1105
+ :international_dialing_prefix: "0"
1106
+ "241":
1107
+ :country_code: "241"
1108
+ :national_dialing_prefix: None
1109
+ :char_2_code: None
1110
+ :char_3_code: GA
1111
+ :name: Gabon
1112
+ :international_dialing_prefix: "0"
1113
+ "355":
1114
+ :country_code: "355"
1115
+ :national_dialing_prefix: "0"
1116
+ :char_2_code: "0"
1117
+ :char_3_code: AL
1118
+ :name: Albania
1119
+ :international_dialing_prefix: "0"
1120
+ "213":
1121
+ :country_code: "213"
1122
+ :national_dialing_prefix: "7"
1123
+ :char_2_code: "7"
1124
+ :char_3_code: DZ
1125
+ :name: Algeria
1126
+ :international_dialing_prefix: "0"
1127
+ "44":
1128
+ :country_code: "44"
1129
+ :national_dialing_prefix: "0"
1130
+ :char_2_code: "0"
1131
+ :char_3_code: GB
1132
+ :name: United Kingdom
1133
+ :international_dialing_prefix: "0"
1134
+ :area_code: "2[03489]|11[3-8]|1[2-69]1|1[2-9][0-9]{2}|70|7[0-9]{3}|[8|9][0-9]{2}|3[0-9]{2}"
1135
+ "242":
1136
+ :country_code: "242"
1137
+ :national_dialing_prefix: None
1138
+ :char_2_code: None
1139
+ :char_3_code: CG
1140
+ :name: Congo
1141
+ :international_dialing_prefix: "0"
1142
+ "356":
1143
+ :country_code: "356"
1144
+ :national_dialing_prefix: "21"
1145
+ :char_2_code: "21"
1146
+ :char_3_code: MT
1147
+ :name: Malta
1148
+ :international_dialing_prefix: "0"
1149
+ "357":
1150
+ :country_code: "357"
1151
+ :national_dialing_prefix: None
1152
+ :char_2_code: None
1153
+ :char_3_code: CY
1154
+ :name: Cyprus
1155
+ :international_dialing_prefix: "0"
1156
+ "45":
1157
+ :country_code: "45"
1158
+ :national_dialing_prefix: None
1159
+ :char_2_code: None
1160
+ :char_3_code: DK
1161
+ :name: Denmark
1162
+ :international_dialing_prefix: "0"
1163
+ "385":
1164
+ :country_code: "385"
1165
+ :national_dialing_prefix: "0"
1166
+ :char_2_code: "0"
1167
+ :char_3_code: HR
1168
+ :name: Croatia
1169
+ :international_dialing_prefix: "0"
1170
+ :area_code: "1|[2-9][0-9]"
1171
+ "243":
1172
+ :country_code: "243"
1173
+ :national_dialing_prefix: None
1174
+ :char_2_code: None
1175
+ :char_3_code: CD
1176
+ :name: Congo, The Democratic Republic Of The
1177
+ :international_dialing_prefix: "0"
1178
+ "216":
1179
+ :country_code: "216"
1180
+ :national_dialing_prefix: None
1181
+ :char_2_code: None
1182
+ :char_3_code: TN
1183
+ :name: Tunisia
1184
+ :international_dialing_prefix: "0"
1185
+ "46":
1186
+ :country_code: "46"
1187
+ :national_dialing_prefix: "0"
1188
+ :char_2_code: "0"
1189
+ :char_3_code: SE
1190
+ :name: Sweden
1191
+ :international_dialing_prefix: "0"
1192
+ :area_code: "900|1[013689]|2[0136]|3[1356]|4[0246]|54|6[03]|7[01236]|8|9[09]|1[2457][0-9]|2[2457-9][0-9]|3[0247-9][0-9]|4[1357-9][0-9]|5[0-35-9][0-9]|6[124-9][0-9]|74[0-9]|9[1-8][0-9]"
1193
+ "386":
1194
+ :country_code: "386"
1195
+ :national_dialing_prefix: "0"
1196
+ :char_2_code: "0"
1197
+ :char_3_code: SI
1198
+ :name: Slovenia
1199
+ :international_dialing_prefix: "0"
1200
+ :area_code: "30|40|31|41|51|71|70|64|59|1|2|3|4|5|6|7"
1201
+ "358":
1202
+ :country_code: "358"
1203
+ :national_dialing_prefix: "0"
1204
+ :char_2_code: "0"
1205
+ :char_3_code: FI
1206
+ :name: Finland
1207
+ :international_dialing_prefix: "0"
1208
+ "244":
1209
+ :country_code: "244"
1210
+ :national_dialing_prefix: "0"
1211
+ :char_2_code: "0"
1212
+ :char_3_code: AO
1213
+ :name: Angola
1214
+ :international_dialing_prefix: "0"
1215
+ "47":
1216
+ :country_code: "47"
1217
+ :national_dialing_prefix: None
1218
+ :char_2_code: None
1219
+ :char_3_code: SJ
1220
+ :name: Svalbard And Jan Mayen
1221
+ :international_dialing_prefix: "0"
1222
+ "359":
1223
+ :country_code: "359"
1224
+ :national_dialing_prefix: "0"
1225
+ :char_2_code: "0"
1226
+ :char_3_code: BG
1227
+ :name: Bulgaria
1228
+ :international_dialing_prefix: "0"
1229
+ "387":
1230
+ :country_code: "387"
1231
+ :national_dialing_prefix: "0"
1232
+ :char_2_code: "0"
1233
+ :char_3_code: BA
1234
+ :name: Bosnia and Herzegovina
1235
+ :international_dialing_prefix: "0"
1236
+ :area_code: "[0-9][0-9]"
1237
+ "245":
1238
+ :country_code: "245"
1239
+ :national_dialing_prefix: None
1240
+ :char_2_code: None
1241
+ :char_3_code: GW
1242
+ :name: Guinea-Bissau
1243
+ :international_dialing_prefix: "0"
1244
+ "48":
1245
+ :country_code: "48"
1246
+ :national_dialing_prefix: "0"
1247
+ :char_2_code: "0"
1248
+ :char_3_code: PL
1249
+ :name: Poland
1250
+ :international_dialing_prefix: "0"
1251
+ "218":
1252
+ :country_code: "218"
1253
+ :national_dialing_prefix: "0"
1254
+ :char_2_code: "0"
1255
+ :char_3_code: LY
1256
+ :name: Libyan Arab Jamahiriya
1257
+ :international_dialing_prefix: "0"
1258
+ "49":
1259
+ :country_code: "49"
1260
+ :national_dialing_prefix: "0"
1261
+ :char_2_code: "0"
1262
+ :char_3_code: DE
1263
+ :name: Germany
1264
+ :international_dialing_prefix: "0"
1265
+ :area_code: "[0-9]{3}"
1266
+ "389":
1267
+ :country_code: "389"
1268
+ :national_dialing_prefix: "0"
1269
+ :char_2_code: "0"
1270
+ :char_3_code: MK
1271
+ :name: Macedonia, the Former Yugoslav Republic Of
1272
+ :international_dialing_prefix: "0"
1273
+ "670":
1274
+ :country_code: "670"
1275
+ :national_dialing_prefix: None
1276
+ :char_2_code: None
1277
+ :char_3_code: TL
1278
+ :name: Timor-Leste
1279
+ :international_dialing_prefix: None
1280
+ "248":
1281
+ :country_code: "248"
1282
+ :national_dialing_prefix: None
1283
+ :char_2_code: None
1284
+ :char_3_code: SC
1285
+ :name: Seychelles
1286
+ :international_dialing_prefix: "0"
1287
+ "20":
1288
+ :country_code: "20"
1289
+ :national_dialing_prefix: "0"
1290
+ :char_2_code: "0"
1291
+ :char_3_code: EG
1292
+ :name: Egypt
1293
+ :international_dialing_prefix: "0"
1294
+ "500":
1295
+ :country_code: "500"
1296
+ :national_dialing_prefix: None
1297
+ :char_2_code: None
1298
+ :char_3_code: FK
1299
+ :name: Falkland Islands (Malvinas)
1300
+ :international_dialing_prefix: "0"
1301
+ "249":
1302
+ :country_code: "249"
1303
+ :national_dialing_prefix: "0"
1304
+ :char_2_code: "0"
1305
+ :char_3_code: SD
1306
+ :name: Sudan
1307
+ :international_dialing_prefix: "0"
1308
+ "501":
1309
+ :country_code: "501"
1310
+ :national_dialing_prefix: "0"
1311
+ :char_2_code: "0"
1312
+ :char_3_code: BZ
1313
+ :name: Belize
1314
+ :international_dialing_prefix: "0"
1315
+ "672":
1316
+ :country_code: "672"
1317
+ :national_dialing_prefix: None
1318
+ :char_2_code: None
1319
+ :char_3_code: NF
1320
+ :name: Norfolk Island
1321
+ :international_dialing_prefix: "0"
1322
+ "502":
1323
+ :country_code: "502"
1324
+ :national_dialing_prefix: None
1325
+ :char_2_code: None
1326
+ :char_3_code: GT
1327
+ :name: Guatemala
1328
+ :international_dialing_prefix: "0"
1329
+ "51":
1330
+ :country_code: "51"
1331
+ :national_dialing_prefix: "0"
1332
+ :char_2_code: "0"
1333
+ :char_3_code: PE
1334
+ :name: Peru
1335
+ :international_dialing_prefix: "0"
1336
+ "220":
1337
+ :country_code: "220"
1338
+ :national_dialing_prefix: None
1339
+ :char_2_code: None
1340
+ :char_3_code: GM
1341
+ :name: Gambia
1342
+ :international_dialing_prefix: "0"
1343
+ "673":
1344
+ :country_code: "673"
1345
+ :national_dialing_prefix: "0"
1346
+ :char_2_code: "0"
1347
+ :char_3_code: BN
1348
+ :name: Brunei Darussalam
1349
+ :international_dialing_prefix: "0"
1350
+ "503":
1351
+ :country_code: "503"
1352
+ :national_dialing_prefix: None
1353
+ :char_2_code: None
1354
+ :char_3_code: SV
1355
+ :name: El Salvador
1356
+ :international_dialing_prefix: "0"
1357
+ "221":
1358
+ :country_code: "221"
1359
+ :national_dialing_prefix: None
1360
+ :char_2_code: None
1361
+ :char_3_code: SN
1362
+ :name: Senegal
1363
+ :international_dialing_prefix: "0"
1364
+ "674":
1365
+ :country_code: "674"
1366
+ :national_dialing_prefix: "0"
1367
+ :char_2_code: "0"
1368
+ :char_3_code: NR
1369
+ :name: Nauru
1370
+ :international_dialing_prefix: "0"
1371
+ "52":
1372
+ :country_code: "52"
1373
+ :national_dialing_prefix: "1"
1374
+ :char_2_code: "1"
1375
+ :char_3_code: MX
1376
+ :name: Mexico
1377
+ :international_dialing_prefix: "0"
1378
+ "504":
1379
+ :country_code: "504"
1380
+ :national_dialing_prefix: None
1381
+ :char_2_code: None
1382
+ :char_3_code: HN
1383
+ :name: Honduras
1384
+ :international_dialing_prefix: "0"
1385
+ "618":
1386
+ :country_code: "618"
1387
+ :national_dialing_prefix: "0"
1388
+ :char_2_code: "0"
1389
+ :char_3_code: CX
1390
+ :name: Christmas Island
1391
+ :international_dialing_prefix: "11"
1392
+ "250":
1393
+ :country_code: "250"
1394
+ :national_dialing_prefix: "0"
1395
+ :char_2_code: "0"
1396
+ :char_3_code: RW
1397
+ :name: Rwanda
1398
+ :international_dialing_prefix: "0"
1399
+ "872":
1400
+ :country_code: "872"
1401
+ :national_dialing_prefix: "0"
1402
+ :char_2_code: "0"
1403
+ :char_3_code: PN
1404
+ :name: Pitcairn
1405
+ :international_dialing_prefix: "0"
1406
+ "675":
1407
+ :country_code: "675"
1408
+ :national_dialing_prefix: None
1409
+ :char_2_code: None
1410
+ :char_3_code: PG
1411
+ :name: Papua New Guinea
1412
+ :international_dialing_prefix: "5"
1413
+ "505":
1414
+ :country_code: "505"
1415
+ :national_dialing_prefix: None
1416
+ :char_2_code: None
1417
+ :char_3_code: NI
1418
+ :name: Nicaragua
1419
+ :international_dialing_prefix: "0"
1420
+ "222":
1421
+ :country_code: "222"
1422
+ :national_dialing_prefix: "0"
1423
+ :char_2_code: "0"
1424
+ :char_3_code: MR
1425
+ :name: Mauritania
1426
+ :international_dialing_prefix: "0"
1427
+ "53":
1428
+ :country_code: "53"
1429
+ :national_dialing_prefix: "0"
1430
+ :char_2_code: "0"
1431
+ :char_3_code: CU
1432
+ :name: Cuba
1433
+ :international_dialing_prefix: "119"
1434
+ "81":
1435
+ :country_code: "81"
1436
+ :national_dialing_prefix: "0"
1437
+ :char_2_code: "0"
1438
+ :char_3_code: JP
1439
+ :name: Japan
1440
+ :international_dialing_prefix: "10"