Lines Matching refs:RegionCode
45 var RegionCode = i18n.phonenumbers.RegionCode; variable
53 phoneUtil.parse('123456', RegionCode.FR), RegionCode.FR));
74 phoneUtil.parse('1010', RegionCode.FR), RegionCode.FR));
80 phoneUtil.parse('123456', RegionCode.FR), RegionCode.FR));
95 phoneUtil.parse('33669', RegionCode.US), RegionCode.US));
102 phoneUtil.parse('911', RegionCode.US), RegionCode.US));
109 carrierSpecificNumberForSomeRegion, RegionCode.US));
111 carrierSpecificNumberForSomeRegion, RegionCode.BB));
119 smsServiceNumberForSomeRegion, RegionCode.US));
121 smsServiceNumberForSomeRegion, RegionCode.BB));
126 RegionCode.FR,
131 phoneUtil.parse(premiumRateExample, RegionCode.FR), RegionCode.FR));
140 RegionCode.FR,
145 phoneUtil.parse(standardRateExample, RegionCode.FR), RegionCode.FR));
154 RegionCode.FR,
159 phoneUtil.parse(tollFreeExample, RegionCode.FR), RegionCode.FR));
170 phoneUtil.parse('12345', RegionCode.FR), RegionCode.FR));
181 phoneUtil.parse('116123', RegionCode.FR), RegionCode.FR));
185 phoneUtil.parse('116123', RegionCode.FR), RegionCode.FR));
198 phoneUtil.parse('911', RegionCode.US), RegionCode.ZZ));
228 phoneUtil.parse(ambiguousPremiumRateString, RegionCode.AU),
229 RegionCode.AU));
233 phoneUtil.parse(ambiguousPremiumRateString, RegionCode.AU),
234 RegionCode.AU));
236 phoneUtil.parse(ambiguousPremiumRateString, RegionCode.CX),
237 RegionCode.CX));
241 phoneUtil.parse(ambiguousPremiumRateString, RegionCode.CX),
242 RegionCode.CX));
248 phoneUtil.parse(ambiguousStandardRateString, RegionCode.AU),
249 RegionCode.AU));
253 phoneUtil.parse(ambiguousStandardRateString, RegionCode.AU),
254 RegionCode.AU));
256 phoneUtil.parse(ambiguousStandardRateString, RegionCode.CX),
257 RegionCode.CX));
261 phoneUtil.parse(ambiguousStandardRateString, RegionCode.CX),
262 RegionCode.CX));
267 phoneUtil.parse(ambiguousTollFreeString, RegionCode.AU), RegionCode.AU));
271 phoneUtil.parse(ambiguousTollFreeString, RegionCode.AU),
272 RegionCode.AU));
274 phoneUtil.parse(ambiguousTollFreeString, RegionCode.CX), RegionCode.CX));
278 phoneUtil.parse(ambiguousTollFreeString, RegionCode.CX),
279 RegionCode.CX));
286 assertNonEmptyString(shortInfo.getExampleShortNumber(RegionCode.AD));
287 assertNonEmptyString(shortInfo.getExampleShortNumber(RegionCode.FR));
288 assertEquals('', shortInfo.getExampleShortNumber(RegionCode.UN001));
293 assertTrue(shortInfo.connectsToEmergencyNumber('911', RegionCode.US));
294 assertTrue(shortInfo.connectsToEmergencyNumber('112', RegionCode.US));
295 assertFalse(shortInfo.connectsToEmergencyNumber('999', RegionCode.US));
299 assertTrue(shortInfo.connectsToEmergencyNumber('9116666666', RegionCode.US));
300 assertTrue(shortInfo.connectsToEmergencyNumber('1126666666', RegionCode.US));
301 assertFalse(shortInfo.connectsToEmergencyNumber('9996666666', RegionCode.US));
305 assertTrue(shortInfo.connectsToEmergencyNumber('9-1-1', RegionCode.US));
306 assertTrue(shortInfo.connectsToEmergencyNumber('1-1-2', RegionCode.US));
307 assertFalse(shortInfo.connectsToEmergencyNumber('9-9-9', RegionCode.US));
311 assertFalse(shortInfo.connectsToEmergencyNumber('+911', RegionCode.US));
312 assertFalse(shortInfo.connectsToEmergencyNumber('\uFF0B911', RegionCode.US));
313 assertFalse(shortInfo.connectsToEmergencyNumber(' +911', RegionCode.US));
314 assertFalse(shortInfo.connectsToEmergencyNumber('+112', RegionCode.US));
315 assertFalse(shortInfo.connectsToEmergencyNumber('+999', RegionCode.US));
319 assertTrue(shortInfo.connectsToEmergencyNumber('911', RegionCode.BR));
320 assertTrue(shortInfo.connectsToEmergencyNumber('190', RegionCode.BR));
321 assertFalse(shortInfo.connectsToEmergencyNumber('999', RegionCode.BR));
326 assertFalse(shortInfo.connectsToEmergencyNumber('9111', RegionCode.BR));
327 assertFalse(shortInfo.connectsToEmergencyNumber('1900', RegionCode.BR));
328 assertFalse(shortInfo.connectsToEmergencyNumber('9996', RegionCode.BR));
332 assertTrue(shortInfo.connectsToEmergencyNumber('131', RegionCode.CL));
333 assertTrue(shortInfo.connectsToEmergencyNumber('133', RegionCode.CL));
338 assertFalse(shortInfo.connectsToEmergencyNumber('1313', RegionCode.CL));
339 assertFalse(shortInfo.connectsToEmergencyNumber('1330', RegionCode.CL));
345 assertFalse(shortInfo.connectsToEmergencyNumber('911', RegionCode.AO));
346 assertFalse(shortInfo.connectsToEmergencyNumber('222123456', RegionCode.AO));
347 assertFalse(shortInfo.connectsToEmergencyNumber('923123456', RegionCode.AO));
352 assertFalse(shortInfo.connectsToEmergencyNumber('911', RegionCode.ZW));
353 assertFalse(shortInfo.connectsToEmergencyNumber('01312345', RegionCode.ZW));
354 assertFalse(shortInfo.connectsToEmergencyNumber('0711234567', RegionCode.ZW));
358 assertTrue(shortInfo.isEmergencyNumber('911', RegionCode.US));
359 assertTrue(shortInfo.isEmergencyNumber('112', RegionCode.US));
360 assertFalse(shortInfo.isEmergencyNumber('999', RegionCode.US));
364 assertFalse(shortInfo.isEmergencyNumber('9116666666', RegionCode.US));
365 assertFalse(shortInfo.isEmergencyNumber('1126666666', RegionCode.US));
366 assertFalse(shortInfo.isEmergencyNumber('9996666666', RegionCode.US));
370 assertTrue(shortInfo.isEmergencyNumber('9-1-1', RegionCode.US));
371 assertTrue(shortInfo.isEmergencyNumber('*911', RegionCode.US));
372 assertTrue(shortInfo.isEmergencyNumber('1-1-2', RegionCode.US));
373 assertTrue(shortInfo.isEmergencyNumber('*112', RegionCode.US));
374 assertFalse(shortInfo.isEmergencyNumber('9-9-9', RegionCode.US));
375 assertFalse(shortInfo.isEmergencyNumber('*999', RegionCode.US));
379 assertFalse(shortInfo.isEmergencyNumber('+911', RegionCode.US));
380 assertFalse(shortInfo.isEmergencyNumber('\uFF0B911', RegionCode.US));
381 assertFalse(shortInfo.isEmergencyNumber(' +911', RegionCode.US));
382 assertFalse(shortInfo.isEmergencyNumber('+112', RegionCode.US));
383 assertFalse(shortInfo.isEmergencyNumber('+999', RegionCode.US));
387 assertTrue(shortInfo.isEmergencyNumber('911', RegionCode.BR));
388 assertTrue(shortInfo.isEmergencyNumber('190', RegionCode.BR));
389 assertFalse(shortInfo.isEmergencyNumber('999', RegionCode.BR));
393 assertFalse(shortInfo.isEmergencyNumber('9111', RegionCode.BR));
394 assertFalse(shortInfo.isEmergencyNumber('1900', RegionCode.BR));
395 assertFalse(shortInfo.isEmergencyNumber('9996', RegionCode.BR));
401 assertFalse(shortInfo.isEmergencyNumber('911', RegionCode.AO));
402 assertFalse(shortInfo.isEmergencyNumber('222123456', RegionCode.AO));
403 assertFalse(shortInfo.isEmergencyNumber('923123456', RegionCode.AO));
408 assertFalse(shortInfo.isEmergencyNumber('911', RegionCode.ZW));
409 assertFalse(shortInfo.isEmergencyNumber('01312345', RegionCode.ZW));
410 assertFalse(shortInfo.isEmergencyNumber('0711234567', RegionCode.ZW));
416 assertTrue(shortInfo.isEmergencyNumber('112', RegionCode.AU));
418 phoneUtil.parse('112', RegionCode.AU), RegionCode.AU));
422 phoneUtil.parse('112', RegionCode.AU), RegionCode.AU));
423 assertTrue(shortInfo.isEmergencyNumber('112', RegionCode.CX));
425 phoneUtil.parse('112', RegionCode.CX), RegionCode.CX));
429 phoneUtil.parse('112', RegionCode.CX), RegionCode.CX));
442 assertTrue(shortInfo.isEmergencyNumber('211', RegionCode.BB));
446 phoneUtil.parse('211', RegionCode.BB), RegionCode.BB));
447 assertFalse(shortInfo.isEmergencyNumber('211', RegionCode.US));
451 phoneUtil.parse('211', RegionCode.US), RegionCode.US));
452 assertFalse(shortInfo.isEmergencyNumber('211', RegionCode.CA));
456 phoneUtil.parse('211', RegionCode.CA), RegionCode.CA));
463 phoneUtil.parse('+4640404', RegionCode.SE), RegionCode.US));
465 phoneUtil.parse('+4640404', RegionCode.SE), RegionCode.US));
469 phoneUtil.parse('+4640404', RegionCode.SE), RegionCode.US));