phonelib 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/extended_data.dat +0 -0
- data/data/phone_data.dat +0 -0
- data/lib/phonelib/data_importer.rb +1 -1
- data/lib/phonelib/phone_analyzer.rb +32 -12
- data/lib/phonelib/phone_analyzer_helper.rb +21 -2
- data/lib/phonelib/phone_formatter.rb +13 -0
- data/lib/phonelib/version.rb +1 -1
- data/lib/validators/phone_validator.rb +1 -1
- metadata +2 -1981
- data/data/libphonenumber/AUTHORS +0 -4
- data/data/libphonenumber/CONTRIBUTING.md +0 -47
- data/data/libphonenumber/CONTRIBUTORS +0 -69
- data/data/libphonenumber/FALSEHOODS.md +0 -237
- data/data/libphonenumber/FAQ.md +0 -190
- data/data/libphonenumber/LICENSE +0 -176
- data/data/libphonenumber/LICENSE.Chromium +0 -37
- data/data/libphonenumber/README.md +0 -116
- data/data/libphonenumber/codereview.settings +0 -4
- data/data/libphonenumber/cpp/CMakeLists.txt +0 -592
- data/data/libphonenumber/cpp/LICENSE +0 -13
- data/data/libphonenumber/cpp/README +0 -344
- data/data/libphonenumber/cpp/src/phonenumbers/alternate_format.cc +0 -907
- data/data/libphonenumber/cpp/src/phonenumbers/alternate_format.h +0 -29
- data/data/libphonenumber/cpp/src/phonenumbers/asyoutypeformatter.cc +0 -781
- data/data/libphonenumber/cpp/src/phonenumbers/asyoutypeformatter.h +0 -243
- data/data/libphonenumber/cpp/src/phonenumbers/base/basictypes.h +0 -263
- data/data/libphonenumber/cpp/src/phonenumbers/base/logging.h +0 -45
- data/data/libphonenumber/cpp/src/phonenumbers/base/memory/scoped_ptr.h +0 -450
- data/data/libphonenumber/cpp/src/phonenumbers/base/memory/singleton.h +0 -95
- data/data/libphonenumber/cpp/src/phonenumbers/base/memory/singleton_posix.h +0 -53
- data/data/libphonenumber/cpp/src/phonenumbers/base/strings/string_piece.cc +0 -221
- data/data/libphonenumber/cpp/src/phonenumbers/base/strings/string_piece.h +0 -194
- data/data/libphonenumber/cpp/src/phonenumbers/base/synchronization/lock.h +0 -91
- data/data/libphonenumber/cpp/src/phonenumbers/base/synchronization/lock_posix.h +0 -63
- data/data/libphonenumber/cpp/src/phonenumbers/base/template_util.h +0 -108
- data/data/libphonenumber/cpp/src/phonenumbers/base/thread_checker.h +0 -70
- data/data/libphonenumber/cpp/src/phonenumbers/callback.h +0 -88
- data/data/libphonenumber/cpp/src/phonenumbers/default_logger.cc +0 -57
- data/data/libphonenumber/cpp/src/phonenumbers/default_logger.h +0 -105
- data/data/libphonenumber/cpp/src/phonenumbers/encoding_utils.h +0 -51
- data/data/libphonenumber/cpp/src/phonenumbers/geocoding/area_code_map.cc +0 -94
- data/data/libphonenumber/cpp/src/phonenumbers/geocoding/area_code_map.h +0 -75
- data/data/libphonenumber/cpp/src/phonenumbers/geocoding/default_map_storage.cc +0 -65
- data/data/libphonenumber/cpp/src/phonenumbers/geocoding/default_map_storage.h +0 -76
- data/data/libphonenumber/cpp/src/phonenumbers/geocoding/geocoding_data.h +0 -77
- data/data/libphonenumber/cpp/src/phonenumbers/geocoding/mapping_file_provider.cc +0 -175
- data/data/libphonenumber/cpp/src/phonenumbers/geocoding/mapping_file_provider.h +0 -75
- data/data/libphonenumber/cpp/src/phonenumbers/geocoding/phonenumber_offline_geocoder.cc +0 -226
- data/data/libphonenumber/cpp/src/phonenumbers/geocoding/phonenumber_offline_geocoder.h +0 -165
- data/data/libphonenumber/cpp/src/phonenumbers/lite_metadata.cc +0 -11547
- data/data/libphonenumber/cpp/src/phonenumbers/logger.cc +0 -27
- data/data/libphonenumber/cpp/src/phonenumbers/logger.h +0 -103
- data/data/libphonenumber/cpp/src/phonenumbers/matcher_api.h +0 -54
- data/data/libphonenumber/cpp/src/phonenumbers/metadata.cc +0 -12478
- data/data/libphonenumber/cpp/src/phonenumbers/metadata.h +0 -29
- data/data/libphonenumber/cpp/src/phonenumbers/normalize_utf8.h +0 -50
- data/data/libphonenumber/cpp/src/phonenumbers/phonenumber.cc +0 -87
- data/data/libphonenumber/cpp/src/phonenumbers/phonenumber.h +0 -40
- data/data/libphonenumber/cpp/src/phonenumbers/phonenumbermatch.cc +0 -91
- data/data/libphonenumber/cpp/src/phonenumbers/phonenumbermatch.h +0 -125
- data/data/libphonenumber/cpp/src/phonenumbers/phonenumbermatcher.cc +0 -907
- data/data/libphonenumber/cpp/src/phonenumbers/phonenumbermatcher.h +0 -201
- data/data/libphonenumber/cpp/src/phonenumbers/phonenumberutil.cc +0 -2926
- data/data/libphonenumber/cpp/src/phonenumbers/phonenumberutil.h +0 -868
- data/data/libphonenumber/cpp/src/phonenumbers/regex_based_matcher.cc +0 -68
- data/data/libphonenumber/cpp/src/phonenumbers/regex_based_matcher.h +0 -61
- data/data/libphonenumber/cpp/src/phonenumbers/regexp_adapter.h +0 -168
- data/data/libphonenumber/cpp/src/phonenumbers/regexp_adapter_icu.cc +0 -237
- data/data/libphonenumber/cpp/src/phonenumbers/regexp_adapter_icu.h +0 -41
- data/data/libphonenumber/cpp/src/phonenumbers/regexp_adapter_re2.cc +0 -155
- data/data/libphonenumber/cpp/src/phonenumbers/regexp_adapter_re2.h +0 -40
- data/data/libphonenumber/cpp/src/phonenumbers/regexp_cache.cc +0 -60
- data/data/libphonenumber/cpp/src/phonenumbers/regexp_cache.h +0 -77
- data/data/libphonenumber/cpp/src/phonenumbers/regexp_factory.h +0 -44
- data/data/libphonenumber/cpp/src/phonenumbers/region_code.h +0 -40
- data/data/libphonenumber/cpp/src/phonenumbers/short_metadata.cc +0 -3032
- data/data/libphonenumber/cpp/src/phonenumbers/short_metadata.h +0 -29
- data/data/libphonenumber/cpp/src/phonenumbers/shortnumberinfo.cc +0 -427
- data/data/libphonenumber/cpp/src/phonenumbers/shortnumberinfo.h +0 -240
- data/data/libphonenumber/cpp/src/phonenumbers/stl_util.h +0 -51
- data/data/libphonenumber/cpp/src/phonenumbers/string_byte_sink.cc +0 -33
- data/data/libphonenumber/cpp/src/phonenumbers/string_byte_sink.h +0 -40
- data/data/libphonenumber/cpp/src/phonenumbers/stringutil.cc +0 -448
- data/data/libphonenumber/cpp/src/phonenumbers/stringutil.h +0 -176
- data/data/libphonenumber/cpp/src/phonenumbers/test_metadata.cc +0 -885
- data/data/libphonenumber/cpp/src/phonenumbers/unicodestring.cc +0 -114
- data/data/libphonenumber/cpp/src/phonenumbers/unicodestring.h +0 -133
- data/data/libphonenumber/cpp/src/phonenumbers/utf/README +0 -1
- data/data/libphonenumber/cpp/src/phonenumbers/utf/rune.c +0 -358
- data/data/libphonenumber/cpp/src/phonenumbers/utf/stringpiece.h +0 -23
- data/data/libphonenumber/cpp/src/phonenumbers/utf/stringprintf.h +0 -22
- data/data/libphonenumber/cpp/src/phonenumbers/utf/unicodetext.cc +0 -520
- data/data/libphonenumber/cpp/src/phonenumbers/utf/unicodetext.h +0 -461
- data/data/libphonenumber/cpp/src/phonenumbers/utf/unilib.cc +0 -68
- data/data/libphonenumber/cpp/src/phonenumbers/utf/unilib.h +0 -99
- data/data/libphonenumber/cpp/src/phonenumbers/utf/utf.h +0 -240
- data/data/libphonenumber/cpp/src/phonenumbers/utf/utfdef.h +0 -27
- data/data/libphonenumber/cpp/test/phonenumbers/asyoutypeformatter_test.cc +0 -1237
- data/data/libphonenumber/cpp/test/phonenumbers/geocoding/area_code_map_test.cc +0 -201
- data/data/libphonenumber/cpp/test/phonenumbers/geocoding/geocoding_data_test.cc +0 -176
- data/data/libphonenumber/cpp/test/phonenumbers/geocoding/geocoding_test_data.h +0 -50
- data/data/libphonenumber/cpp/test/phonenumbers/geocoding/geocoding_test_program.cc +0 -44
- data/data/libphonenumber/cpp/test/phonenumbers/geocoding/mapping_file_provider_test.cc +0 -91
- data/data/libphonenumber/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc +0 -214
- data/data/libphonenumber/cpp/test/phonenumbers/logger_test.cc +0 -172
- data/data/libphonenumber/cpp/test/phonenumbers/phonenumbermatch_test.cc +0 -92
- data/data/libphonenumber/cpp/test/phonenumbers/phonenumbermatcher_test.cc +0 -1234
- data/data/libphonenumber/cpp/test/phonenumbers/phonenumberutil_test.cc +0 -3992
- data/data/libphonenumber/cpp/test/phonenumbers/regexp_adapter_test.cc +0 -322
- data/data/libphonenumber/cpp/test/phonenumbers/regexp_cache_test.cc +0 -60
- data/data/libphonenumber/cpp/test/phonenumbers/run_tests.cc +0 -21
- data/data/libphonenumber/cpp/test/phonenumbers/shortnumberinfo_test.cc +0 -483
- data/data/libphonenumber/cpp/test/phonenumbers/stringutil_test.cc +0 -306
- data/data/libphonenumber/cpp/test/phonenumbers/test_util.cc +0 -60
- data/data/libphonenumber/cpp/test/phonenumbers/test_util.h +0 -199
- data/data/libphonenumber/cpp/test/phonenumbers/unicodestring_test.cc +0 -236
- data/data/libphonenumber/cpp/test/phonenumbers/utf/unicodetext_test.cc +0 -45
- data/data/libphonenumber/debian/README.source +0 -21
- data/data/libphonenumber/debian/changelog +0 -5
- data/data/libphonenumber/debian/compat +0 -1
- data/data/libphonenumber/debian/control +0 -75
- data/data/libphonenumber/debian/copyright +0 -74
- data/data/libphonenumber/debian/libphonenumber7-dev.install +0 -3
- data/data/libphonenumber/debian/libphonenumber7-java.jlibs +0 -1
- data/data/libphonenumber/debian/libphonenumber7-java.poms +0 -39
- data/data/libphonenumber/debian/libphonenumber7.install +0 -1
- data/data/libphonenumber/debian/maven.cleanIgnoreRules +0 -17
- data/data/libphonenumber/debian/maven.ignoreRules +0 -23
- data/data/libphonenumber/debian/maven.properties +0 -4
- data/data/libphonenumber/debian/maven.publishedRules +0 -19
- data/data/libphonenumber/debian/maven.rules +0 -31
- data/data/libphonenumber/debian/patches/0003-maven-exclude-demo.patch +0 -13
- data/data/libphonenumber/debian/patches/series +0 -1
- data/data/libphonenumber/debian/rules +0 -89
- data/data/libphonenumber/debian/source/format +0 -1
- data/data/libphonenumber/debian/watch +0 -3
- data/data/libphonenumber/java/build.xml +0 -307
- data/data/libphonenumber/java/carrier/pom.xml +0 -68
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/PhoneNumberToCarrierMapper.java +0 -124
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1242_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1246_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1264_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1441_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1473_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1649_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1671_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1684_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1758_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1767_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1784_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1787_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1809_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1868_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1869_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1876_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1939_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/20_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/211_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/212_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/213_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/216_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/220_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/221_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/222_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/223_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/224_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/225_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/226_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/227_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/228_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/229_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/230_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/231_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/232_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/233_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/234_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/235_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/236_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/237_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/238_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/239_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/240_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/241_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/242_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/243_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/244_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/245_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/248_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/249_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/250_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/251_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/252_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/253_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/254_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/255_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/256_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/257_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/258_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/260_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/261_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/263_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/265_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/267_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/268_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/27_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/297_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/298_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/299_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/30_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/31_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/32_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/33_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/350_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/351_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/352_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/353_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/354_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/355_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/356_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/357_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/358_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/359_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/36_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/370_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/372_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/373_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/374_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/374_ru +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/375_be +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/375_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/375_ru +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/376_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/380_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/381_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/382_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/385_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/386_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/387_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/389_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/39_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/40_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/41_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/420_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/421_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/43_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/45_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/47_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/48_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/49_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/501_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/505_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/506_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/507_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/509_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/51_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/53_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/54_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/55_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/56_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/57_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/58_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/591_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/592_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/595_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/597_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/598_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/599_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/60_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/61_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/62_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/63_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/64_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/65_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/66_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/670_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/673_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/675_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/676_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/677_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/678_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/679_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/685_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/686_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/689_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/7_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/84_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/852_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/852_zh +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/852_zh_Hant +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/853_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/855_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/856_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/86_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/86_zh +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/86_zh_Hant +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/880_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/90_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/91_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/92_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/93_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/93_fa +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/94_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/95_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/960_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/961_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/962_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/963_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/964_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/965_ar +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/965_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/966_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/967_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/968_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/970_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/971_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/972_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/973_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/974_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/975_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/976_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/977_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/98_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/98_fa +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/992_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/993_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/994_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/995_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/996_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/998_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/config +0 -0
- data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/PhoneNumberToCarrierMapperTest.java +0 -121
- data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/carrier/testing_data/1650_en +0 -0
- data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/carrier/testing_data/244_en +0 -0
- data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/carrier/testing_data/44_en +0 -0
- data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/carrier/testing_data/44_sv +0 -0
- data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/carrier/testing_data/config +0 -0
- data/data/libphonenumber/java/demo/README +0 -16
- data/data/libphonenumber/java/demo/build.xml +0 -59
- data/data/libphonenumber/java/demo/pom.xml +0 -112
- data/data/libphonenumber/java/demo/src/com/google/phonenumbers/PhoneNumberParserServlet.java +0 -434
- data/data/libphonenumber/java/demo/war/WEB-INF/appengine-web.xml +0 -11
- data/data/libphonenumber/java/demo/war/WEB-INF/lib/commons-fileupload-1.2.1.jar +0 -0
- data/data/libphonenumber/java/demo/war/WEB-INF/lib/commons-io-1.4.jar +0 -0
- data/data/libphonenumber/java/demo/war/WEB-INF/lib/commons-lang-2.6.jar +0 -0
- data/data/libphonenumber/java/demo/war/WEB-INF/logging.properties +0 -13
- data/data/libphonenumber/java/demo/war/WEB-INF/web.xml +0 -18
- data/data/libphonenumber/java/demo/war/favicon.ico +0 -0
- data/data/libphonenumber/java/demo/war/phonenumberparser.jsp +0 -39
- data/data/libphonenumber/java/demo/war/stylesheets/main.css +0 -26
- data/data/libphonenumber/java/geocoder/pom.xml +0 -76
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/PhoneNumberToTimeZonesMapper.java +0 -191
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/PhoneNumberOfflineGeocoder.java +0 -217
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1201_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1202_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1203_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1204_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1205_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1206_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1207_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1208_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1209_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1210_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1212_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1213_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1214_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1215_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1216_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1217_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1218_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1219_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1220_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1224_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1225_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1226_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1228_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1229_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1231_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1234_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1236_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1239_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1240_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1242_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1248_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1250_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1251_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1252_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1253_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1254_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1256_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1260_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1262_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1267_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1269_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1270_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1272_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1276_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1281_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1289_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1301_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1302_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1303_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1304_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1305_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1306_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1307_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1308_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1309_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1310_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1312_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1313_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1314_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1315_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1316_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1317_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1318_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1319_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1320_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1321_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1323_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1325_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1330_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1331_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1334_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1336_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1337_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1339_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1345_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1346_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1347_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1351_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1352_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1360_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1361_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1364_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1365_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1380_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1385_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1386_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1401_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1402_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1403_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1404_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1405_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1406_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1407_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1408_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1409_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1410_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1412_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1413_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1414_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1415_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1416_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1417_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1418_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1419_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1423_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1424_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1425_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1430_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1431_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1432_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1434_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1435_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1437_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1438_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1440_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1441_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1443_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1450_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1469_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1478_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1479_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1480_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1484_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1501_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1502_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1503_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1504_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1505_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1506_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1507_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1508_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1509_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1510_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1512_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1513_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1514_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1515_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1516_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1517_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1518_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1519_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1520_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1530_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1540_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1541_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1548_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1551_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1559_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1561_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1562_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1563_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1567_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1570_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1571_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1573_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1574_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1575_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1580_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1585_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1586_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1587_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1601_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1602_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1603_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1604_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1605_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1606_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1607_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1608_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1609_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1610_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1612_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1613_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1614_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1615_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1616_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1617_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1618_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1619_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1620_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1623_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1626_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1628_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1629_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1630_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1631_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1636_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1639_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1641_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1646_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1647_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1649_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1650_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1651_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1657_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1660_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1661_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1662_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1667_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1669_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1671_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1678_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1682_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1701_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1702_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1703_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1704_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1705_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1706_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1707_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1708_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1709_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1712_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1713_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1714_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1715_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1716_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1717_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1718_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1719_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1720_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1724_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1725_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1727_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1731_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1732_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1734_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1737_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1740_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1743_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1747_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1754_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1757_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1760_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1763_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1765_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1769_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1770_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1772_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1773_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1774_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1775_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1778_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1779_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1780_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1781_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1782_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1785_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1786_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1801_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1802_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1803_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1804_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1805_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1806_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1807_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1808_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1809_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1810_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1812_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1813_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1814_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1815_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1816_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1817_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1818_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1819_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1825_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1828_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1830_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1831_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1832_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1843_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1845_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1847_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1848_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1850_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1854_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1856_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1857_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1858_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1859_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1860_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1862_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1863_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1864_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1865_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1867_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1870_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1872_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1873_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1876_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1878_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1901_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1902_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1903_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1904_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1905_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1906_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1907_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1908_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1909_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1910_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1912_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1913_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1914_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1915_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1916_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1917_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1918_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1919_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1920_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1925_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1928_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1929_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1930_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1931_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1934_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1936_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1937_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1938_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1940_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1941_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1947_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1949_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1951_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1952_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1954_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1956_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1959_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1970_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1971_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1972_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1973_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1978_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1979_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1980_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1984_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1985_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1989_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/20_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/212_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/212_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/213_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/216_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/220_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/221_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/222_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/222_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/223_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/224_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/225_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/226_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/228_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/228_es +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/228_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/229_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/229_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/230_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/230_es +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/230_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/232_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/233_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/234_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/237_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/238_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/239_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/239_pt +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/241_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/242_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/243_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/243_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/244_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/244_pt +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/245_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/245_pt +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/247_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/249_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/251_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/252_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/254_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/256_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/257_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/258_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/258_pt +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/260_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/261_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/263_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/264_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/266_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/267_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/268_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/269_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/27_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/290_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/290_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/299_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/30_el +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/30_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/31_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/31_nl +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/32_de +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/32_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/32_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/32_nl +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/33_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/33_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/34_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/34_es +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/351_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/351_pt +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/352_de +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/352_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/352_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/353_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/354_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/355_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/358_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/358_fi +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/358_se +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/359_bg +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/359_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/36_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/36_hu +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/370_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/371_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/372_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/373_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/373_ro +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/373_ru +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/374_am +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/374_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/374_ru +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/375_be +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/375_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/375_ru +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/381_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/381_sr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/389_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/39_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/39_it +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/40_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/40_ro +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/41_de +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/41_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/41_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/41_it +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/420_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/421_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/43_de +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/43_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/44_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/46_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/46_sv +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/47_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/48_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/48_pl +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/49_de +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/49_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/501_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/504_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/51_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/53_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/54_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/54_es +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/55_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/55_pt +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/56_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/56_es +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/57_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/58_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/58_es +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/592_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/599_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/62_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/62_id +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/64_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/66_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/66_th +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/686_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/688_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/7_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/7_ru +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/81_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/81_ja +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_ar +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_bg +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_ca +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_cs +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_el +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_es +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_fi +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_hi +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_hu +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_iw +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_ja +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_ko +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_tr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_zh +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_zh_Hant +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/84_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/84_vi +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/86_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/86_zh +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/886_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/886_zh +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/886_zh_Hant +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/90_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/90_tr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/91_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/93_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/93_fa +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/94_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/95_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/962_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/966_ar +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/966_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/968_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/972_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/975_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/98_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/98_fa +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/992_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/994_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/config +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/timezones/data/map_data +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/PhoneNumberToTimeZonesMapperTest.java +0 -136
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/PhoneNumberOfflineGeocoderTest.java +0 -170
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1201_de +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1201_en +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1212_en +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1617_en +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1650_de +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1650_en +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1989_en +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/54_en +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/82_en +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/82_ko +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/config +0 -0
- data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/timezones/testing_data/map_data +0 -0
- data/data/libphonenumber/java/internal/prefixmapper/pom.xml +0 -58
- data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/DefaultMapStorage.java +0 -94
- data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/FlyweightMapStorage.java +0 -263
- data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/MappingFileProvider.java +0 -229
- data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/PhonePrefixMap.java +0 -216
- data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/PhonePrefixMapStorageStrategy.java +0 -108
- data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/PrefixFileReader.java +0 -143
- data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/PrefixTimeZonesMap.java +0 -126
- data/data/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/FlyweightMapStorageTest.java +0 -107
- data/data/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/MappingFileProviderTest.java +0 -93
- data/data/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/PhonePrefixMapTest.java +0 -193
- data/data/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/PrefixFileReaderTest.java +0 -75
- data/data/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/PrefixTimeZonesMapTest.java +0 -176
- data/data/libphonenumber/java/lib/junit-4.8.1.jar +0 -0
- data/data/libphonenumber/java/lib/protobuf-javanano-3.0.0-alpha-7.jar +0 -0
- data/data/libphonenumber/java/lib/protobuf-javanano-readme.md +0 -20
- data/data/libphonenumber/java/libphonenumber/pom.xml +0 -64
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/AlternateFormatsCountryCodeSet.java +0 -79
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java +0 -664
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMap.java +0 -938
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/MetadataLoader.java +0 -35
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/MetadataManager.java +0 -183
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/MetadataSource.java +0 -38
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/MultiFileMetadataSourceImpl.java +0 -133
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/NumberParseException.java +0 -62
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatch.java +0 -123
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java +0 -727
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java +0 -3312
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/Phonenumber.java +0 -285
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/RegexCache.java +0 -78
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/ShortNumberInfo.java +0 -608
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/ShortNumbersRegionCodeSet.java +0 -274
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/SingleFileMetadataSourceImpl.java +0 -122
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_255 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_27 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_30 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_31 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_34 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_350 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_351 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_352 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_358 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_359 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_36 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_372 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_373 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_375 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_380 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_381 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_385 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_43 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_44 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_49 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_505 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_506 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_54 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_55 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_58 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_595 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_61 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_62 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_63 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_66 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_675 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_676 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_679 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_7 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_81 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_84 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_855 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_90 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_91 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_94 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_95 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_971 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_972 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_995 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_800 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_808 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_870 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_878 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_881 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_882 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_883 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_888 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_979 +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AX +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BB +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BJ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BQ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CV +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CX +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DJ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_EC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_EE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_EG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_EH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ER +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ES +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ET +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FJ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GB +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GP +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GQ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ID +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IQ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JP +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KP +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LB +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LV +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ME +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ML +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MP +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MQ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MV +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MX +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NP +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_OM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_QA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SB +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SJ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ST +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SV +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SX +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TJ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TV +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_US +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_WF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_WS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_YE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_YT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ZA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ZM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ZW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AX +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BB +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BJ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BQ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CV +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CX +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DJ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_EC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_EE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_EG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_EH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ER +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ES +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ET +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FJ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GB +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GP +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_HK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_HN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_HR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_HT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_HU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ID +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IQ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_JE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_JM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_JO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_JP +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KP +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LB +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LV +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ME +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ML +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MP +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MQ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MV +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MX +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NP +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_OM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_QA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_RE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_RO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_RS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_RU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_RW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SB +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SJ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ST +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SV +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SX +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TH +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TJ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TL +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TV +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_UA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_UG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_US +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_UY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_UZ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_WF +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_WS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_YE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_YT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ZA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ZM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ZW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/internal/MatcherApi.java +0 -38
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/internal/RegexBasedMatcher.java +0 -52
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/nano/Phonemetadata.java +0 -1040
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java +0 -1173
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMapForTesting.java +0 -146
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ExampleNumbersTest.java +0 -274
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/MetadataManagerTest.java +0 -51
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/MultiFileMetadataSourceImplTest.java +0 -67
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberMatchTest.java +0 -70
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberMatcherTest.java +0 -1090
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java +0 -2591
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/PhonenumberTest.java +0 -112
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/RegexCacheTest.java +0 -55
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/RegionCode.java +0 -61
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ShortNumberInfoTest.java +0 -355
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/SingleFileMetadataSourceImplTest.java +0 -40
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/TestMetadataTestCase.java +0 -47
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_800 +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_979 +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AD +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AE +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AO +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AR +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AU +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_BB +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_BR +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_BS +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_BY +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_CA +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_CC +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_CN +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_CX +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_DE +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_FR +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_GB +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_GG +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_HU +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_IT +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_JP +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_KR +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_MX +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_NZ +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_PL +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_RE +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_SE +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_SG +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_US +0 -0
- data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_YT +0 -0
- data/data/libphonenumber/java/pending_code_changes.txt +0 -1
- data/data/libphonenumber/java/pom.xml +0 -185
- data/data/libphonenumber/java/release_notes.txt +0 -1306
- data/data/libphonenumber/javadoc/allclasses-frame.html +0 -49
- data/data/libphonenumber/javadoc/allclasses-noframe.html +0 -49
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/AsYouTypeFormatter.html +0 -302
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/NumberParseException.ErrorType.html +0 -369
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/NumberParseException.html +0 -311
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberMatch.html +0 -378
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.Leniency.html +0 -330
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.MatchType.html +0 -373
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.PhoneNumberFormat.html +0 -365
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.PhoneNumberType.html +0 -469
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.ValidationResult.html +0 -357
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.html +0 -1405
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/package-frame.html +0 -68
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/package-summary.html +0 -211
- data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/package-tree.html +0 -161
- data/data/libphonenumber/javadoc/constant-values.html +0 -142
- data/data/libphonenumber/javadoc/deprecated-list.html +0 -142
- data/data/libphonenumber/javadoc/help-doc.html +0 -209
- data/data/libphonenumber/javadoc/index-all.html +0 -413
- data/data/libphonenumber/javadoc/index.html +0 -36
- data/data/libphonenumber/javadoc/overview-tree.html +0 -163
- data/data/libphonenumber/javadoc/package-list +0 -1
- data/data/libphonenumber/javadoc/resources/inherit.gif +0 -0
- data/data/libphonenumber/javadoc/serialized-form.html +0 -184
- data/data/libphonenumber/javadoc/stylesheet.css +0 -29
- data/data/libphonenumber/javascript/README.md +0 -86
- data/data/libphonenumber/javascript/build.xml +0 -137
- data/data/libphonenumber/javascript/i18n/phonenumbers/asyoutypeformatter.js +0 -1113
- data/data/libphonenumber/javascript/i18n/phonenumbers/asyoutypeformatter_test.html +0 -38
- data/data/libphonenumber/javascript/i18n/phonenumbers/asyoutypeformatter_test.js +0 -1207
- data/data/libphonenumber/javascript/i18n/phonenumbers/demo-compiled.html +0 -53
- data/data/libphonenumber/javascript/i18n/phonenumbers/demo-compiled.js +0 -459
- data/data/libphonenumber/javascript/i18n/phonenumbers/demo.html +0 -62
- data/data/libphonenumber/javascript/i18n/phonenumbers/demo.js +0 -161
- data/data/libphonenumber/javascript/i18n/phonenumbers/metadata.js +0 -5234
- data/data/libphonenumber/javascript/i18n/phonenumbers/metadatafortesting.js +0 -632
- data/data/libphonenumber/javascript/i18n/phonenumbers/metadatalite.js +0 -5234
- data/data/libphonenumber/javascript/i18n/phonenumbers/phonemetadata.pb.js +0 -2443
- data/data/libphonenumber/javascript/i18n/phonenumbers/phonenumber.pb.js +0 -536
- data/data/libphonenumber/javascript/i18n/phonenumbers/phonenumberutil.js +0 -4223
- data/data/libphonenumber/javascript/i18n/phonenumbers/phonenumberutil_test.html +0 -37
- data/data/libphonenumber/javascript/i18n/phonenumbers/phonenumberutil_test.js +0 -3330
- data/data/libphonenumber/javascript/i18n/phonenumbers/regioncodefortesting.js +0 -66
- data/data/libphonenumber/pom.xml +0 -26
- data/data/libphonenumber/resources/PhoneNumberAlternateFormats.xml +0 -1869
- data/data/libphonenumber/resources/PhoneNumberMetadata.xml +0 -25723
- data/data/libphonenumber/resources/PhoneNumberMetadataForTesting.xml +0 -973
- data/data/libphonenumber/resources/ShortNumberMetadata.xml +0 -9837
- data/data/libphonenumber/resources/carrier/README +0 -2
- data/data/libphonenumber/resources/carrier/ar/965.txt +0 -17
- data/data/libphonenumber/resources/carrier/be/375.txt +0 -28
- data/data/libphonenumber/resources/carrier/en/1.txt +0 -479
- data/data/libphonenumber/resources/carrier/en/20.txt +0 -17
- data/data/libphonenumber/resources/carrier/en/211.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/212.txt +0 -124
- data/data/libphonenumber/resources/carrier/en/213.txt +0 -20
- data/data/libphonenumber/resources/carrier/en/216.txt +0 -28
- data/data/libphonenumber/resources/carrier/en/220.txt +0 -19
- data/data/libphonenumber/resources/carrier/en/221.txt +0 -23
- data/data/libphonenumber/resources/carrier/en/222.txt +0 -19
- data/data/libphonenumber/resources/carrier/en/223.txt +0 -31
- data/data/libphonenumber/resources/carrier/en/224.txt +0 -21
- data/data/libphonenumber/resources/carrier/en/225.txt +0 -56
- data/data/libphonenumber/resources/carrier/en/226.txt +0 -36
- data/data/libphonenumber/resources/carrier/en/227.txt +0 -26
- data/data/libphonenumber/resources/carrier/en/228.txt +0 -16
- data/data/libphonenumber/resources/carrier/en/229.txt +0 -29
- data/data/libphonenumber/resources/carrier/en/230.txt +0 -63
- data/data/libphonenumber/resources/carrier/en/231.txt +0 -22
- data/data/libphonenumber/resources/carrier/en/232.txt +0 -31
- data/data/libphonenumber/resources/carrier/en/233.txt +0 -28
- data/data/libphonenumber/resources/carrier/en/234.txt +0 -257
- data/data/libphonenumber/resources/carrier/en/235.txt +0 -17
- data/data/libphonenumber/resources/carrier/en/236.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/237.txt +0 -28
- data/data/libphonenumber/resources/carrier/en/238.txt +0 -20
- data/data/libphonenumber/resources/carrier/en/239.txt +0 -17
- data/data/libphonenumber/resources/carrier/en/240.txt +0 -17
- data/data/libphonenumber/resources/carrier/en/241.txt +0 -35
- data/data/libphonenumber/resources/carrier/en/242.txt +0 -19
- data/data/libphonenumber/resources/carrier/en/243.txt +0 -23
- data/data/libphonenumber/resources/carrier/en/244.txt +0 -19
- data/data/libphonenumber/resources/carrier/en/245.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/248.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/249.txt +0 -20
- data/data/libphonenumber/resources/carrier/en/250.txt +0 -15
- data/data/libphonenumber/resources/carrier/en/251.txt +0 -21
- data/data/libphonenumber/resources/carrier/en/252.txt +0 -34
- data/data/libphonenumber/resources/carrier/en/253.txt +0 -17
- data/data/libphonenumber/resources/carrier/en/254.txt +0 -63
- data/data/libphonenumber/resources/carrier/en/255.txt +0 -29
- data/data/libphonenumber/resources/carrier/en/256.txt +0 -26
- data/data/libphonenumber/resources/carrier/en/257.txt +0 -28
- data/data/libphonenumber/resources/carrier/en/258.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/260.txt +0 -17
- data/data/libphonenumber/resources/carrier/en/261.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/263.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/265.txt +0 -16
- data/data/libphonenumber/resources/carrier/en/267.txt +0 -57
- data/data/libphonenumber/resources/carrier/en/268.txt +0 -15
- data/data/libphonenumber/resources/carrier/en/27.txt +0 -70
- data/data/libphonenumber/resources/carrier/en/297.txt +0 -29
- data/data/libphonenumber/resources/carrier/en/298.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/299.txt +0 -17
- data/data/libphonenumber/resources/carrier/en/30.txt +0 -20
- data/data/libphonenumber/resources/carrier/en/31.txt +0 -65
- data/data/libphonenumber/resources/carrier/en/32.txt +0 -36
- data/data/libphonenumber/resources/carrier/en/33.txt +0 -72
- data/data/libphonenumber/resources/carrier/en/350.txt +0 -19
- data/data/libphonenumber/resources/carrier/en/351.txt +0 -26
- data/data/libphonenumber/resources/carrier/en/352.txt +0 -27
- data/data/libphonenumber/resources/carrier/en/353.txt +0 -20
- data/data/libphonenumber/resources/carrier/en/354.txt +0 -55
- data/data/libphonenumber/resources/carrier/en/355.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/356.txt +0 -27
- data/data/libphonenumber/resources/carrier/en/357.txt +0 -20
- data/data/libphonenumber/resources/carrier/en/358.txt +0 -44
- data/data/libphonenumber/resources/carrier/en/359.txt +0 -19
- data/data/libphonenumber/resources/carrier/en/36.txt +0 -17
- data/data/libphonenumber/resources/carrier/en/370.txt +0 -50
- data/data/libphonenumber/resources/carrier/en/372.txt +0 -30
- data/data/libphonenumber/resources/carrier/en/373.txt +0 -44
- data/data/libphonenumber/resources/carrier/en/374.txt +0 -29
- data/data/libphonenumber/resources/carrier/en/375.txt +0 -28
- data/data/libphonenumber/resources/carrier/en/376.txt +0 -15
- data/data/libphonenumber/resources/carrier/en/380.txt +0 -26
- data/data/libphonenumber/resources/carrier/en/381.txt +0 -23
- data/data/libphonenumber/resources/carrier/en/382.txt +0 -29
- data/data/libphonenumber/resources/carrier/en/385.txt +0 -22
- data/data/libphonenumber/resources/carrier/en/386.txt +0 -23
- data/data/libphonenumber/resources/carrier/en/387.txt +0 -20
- data/data/libphonenumber/resources/carrier/en/389.txt +0 -23
- data/data/libphonenumber/resources/carrier/en/39.txt +0 -23
- data/data/libphonenumber/resources/carrier/en/40.txt +0 -21
- data/data/libphonenumber/resources/carrier/en/41.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/420.txt +0 -32
- data/data/libphonenumber/resources/carrier/en/421.txt +0 -38
- data/data/libphonenumber/resources/carrier/en/43.txt +0 -26
- data/data/libphonenumber/resources/carrier/en/45.txt +0 -599
- data/data/libphonenumber/resources/carrier/en/47.txt +0 -239
- data/data/libphonenumber/resources/carrier/en/48.txt +0 -118
- data/data/libphonenumber/resources/carrier/en/49.txt +0 -50
- data/data/libphonenumber/resources/carrier/en/501.txt +0 -16
- data/data/libphonenumber/resources/carrier/en/505.txt +0 -101
- data/data/libphonenumber/resources/carrier/en/506.txt +0 -50
- data/data/libphonenumber/resources/carrier/en/507.txt +0 -84
- data/data/libphonenumber/resources/carrier/en/509.txt +0 -24
- data/data/libphonenumber/resources/carrier/en/51.txt +0 -584
- data/data/libphonenumber/resources/carrier/en/53.txt +0 -15
- data/data/libphonenumber/resources/carrier/en/54.txt +0 -98
- data/data/libphonenumber/resources/carrier/en/55.txt +0 -9479
- data/data/libphonenumber/resources/carrier/en/56.txt +0 -538
- data/data/libphonenumber/resources/carrier/en/57.txt +0 -38
- data/data/libphonenumber/resources/carrier/en/58.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/591.txt +0 -51
- data/data/libphonenumber/resources/carrier/en/592.txt +0 -15
- data/data/libphonenumber/resources/carrier/en/595.txt +0 -19
- data/data/libphonenumber/resources/carrier/en/597.txt +0 -33
- data/data/libphonenumber/resources/carrier/en/598.txt +0 -25
- data/data/libphonenumber/resources/carrier/en/599.txt +0 -49
- data/data/libphonenumber/resources/carrier/en/60.txt +0 -301
- data/data/libphonenumber/resources/carrier/en/61.txt +0 -95
- data/data/libphonenumber/resources/carrier/en/62.txt +0 -702
- data/data/libphonenumber/resources/carrier/en/63.txt +0 -55
- data/data/libphonenumber/resources/carrier/en/64.txt +0 -22
- data/data/libphonenumber/resources/carrier/en/65.txt +0 -591
- data/data/libphonenumber/resources/carrier/en/66.txt +0 -48
- data/data/libphonenumber/resources/carrier/en/670.txt +0 -16
- data/data/libphonenumber/resources/carrier/en/673.txt +0 -22
- data/data/libphonenumber/resources/carrier/en/675.txt +0 -30
- data/data/libphonenumber/resources/carrier/en/676.txt +0 -39
- data/data/libphonenumber/resources/carrier/en/677.txt +0 -44
- data/data/libphonenumber/resources/carrier/en/678.txt +0 -35
- data/data/libphonenumber/resources/carrier/en/679.txt +0 -23
- data/data/libphonenumber/resources/carrier/en/685.txt +0 -17
- data/data/libphonenumber/resources/carrier/en/686.txt +0 -20
- data/data/libphonenumber/resources/carrier/en/689.txt +0 -16
- data/data/libphonenumber/resources/carrier/en/7.txt +0 -25
- data/data/libphonenumber/resources/carrier/en/84.txt +0 -27
- data/data/libphonenumber/resources/carrier/en/852.txt +0 -282
- data/data/libphonenumber/resources/carrier/en/853.txt +0 -326
- data/data/libphonenumber/resources/carrier/en/855.txt +0 -36
- data/data/libphonenumber/resources/carrier/en/856.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/86.txt +0 -64
- data/data/libphonenumber/resources/carrier/en/880.txt +0 -20
- data/data/libphonenumber/resources/carrier/en/90.txt +0 -26
- data/data/libphonenumber/resources/carrier/en/91.txt +0 -2883
- data/data/libphonenumber/resources/carrier/en/92.txt +0 -51
- data/data/libphonenumber/resources/carrier/en/93.txt +0 -24
- data/data/libphonenumber/resources/carrier/en/94.txt +0 -22
- data/data/libphonenumber/resources/carrier/en/95.txt +0 -46
- data/data/libphonenumber/resources/carrier/en/960.txt +0 -16
- data/data/libphonenumber/resources/carrier/en/961.txt +0 -35
- data/data/libphonenumber/resources/carrier/en/962.txt +0 -20
- data/data/libphonenumber/resources/carrier/en/963.txt +0 -50
- data/data/libphonenumber/resources/carrier/en/964.txt +0 -27
- data/data/libphonenumber/resources/carrier/en/965.txt +0 -17
- data/data/libphonenumber/resources/carrier/en/966.txt +0 -27
- data/data/libphonenumber/resources/carrier/en/967.txt +0 -21
- data/data/libphonenumber/resources/carrier/en/968.txt +0 -34
- data/data/libphonenumber/resources/carrier/en/970.txt +0 -16
- data/data/libphonenumber/resources/carrier/en/971.txt +0 -19
- data/data/libphonenumber/resources/carrier/en/972.txt +0 -40
- data/data/libphonenumber/resources/carrier/en/973.txt +0 -32
- data/data/libphonenumber/resources/carrier/en/974.txt +0 -18
- data/data/libphonenumber/resources/carrier/en/975.txt +0 -17
- data/data/libphonenumber/resources/carrier/en/976.txt +0 -21
- data/data/libphonenumber/resources/carrier/en/977.txt +0 -26
- data/data/libphonenumber/resources/carrier/en/98.txt +0 -30
- data/data/libphonenumber/resources/carrier/en/992.txt +0 -27
- data/data/libphonenumber/resources/carrier/en/993.txt +0 -19
- data/data/libphonenumber/resources/carrier/en/994.txt +0 -23
- data/data/libphonenumber/resources/carrier/en/995.txt +0 -34
- data/data/libphonenumber/resources/carrier/en/996.txt +0 -22
- data/data/libphonenumber/resources/carrier/en/998.txt +0 -33
- data/data/libphonenumber/resources/carrier/fa/93.txt +0 -24
- data/data/libphonenumber/resources/carrier/fa/98.txt +0 -30
- data/data/libphonenumber/resources/carrier/ru/374.txt +0 -28
- data/data/libphonenumber/resources/carrier/ru/375.txt +0 -28
- data/data/libphonenumber/resources/carrier/zh/852.txt +0 -283
- data/data/libphonenumber/resources/carrier/zh/86.txt +0 -64
- data/data/libphonenumber/resources/carrier/zh_Hant/852.txt +0 -283
- data/data/libphonenumber/resources/carrier/zh_Hant/86.txt +0 -64
- data/data/libphonenumber/resources/geocoding/am/374.txt +0 -177
- data/data/libphonenumber/resources/geocoding/ar/82.txt +0 -34
- data/data/libphonenumber/resources/geocoding/ar/966.txt +0 -27
- data/data/libphonenumber/resources/geocoding/be/375.txt +0 -144
- data/data/libphonenumber/resources/geocoding/bg/359.txt +0 -2105
- data/data/libphonenumber/resources/geocoding/bg/82.txt +0 -34
- data/data/libphonenumber/resources/geocoding/ca/82.txt +0 -34
- data/data/libphonenumber/resources/geocoding/cs/82.txt +0 -35
- data/data/libphonenumber/resources/geocoding/de/32.txt +0 -59
- data/data/libphonenumber/resources/geocoding/de/352.txt +0 -229
- data/data/libphonenumber/resources/geocoding/de/41.txt +0 -37
- data/data/libphonenumber/resources/geocoding/de/43.txt +0 -1037
- data/data/libphonenumber/resources/geocoding/de/49.txt +0 -5219
- data/data/libphonenumber/resources/geocoding/el/30.txt +0 -259
- data/data/libphonenumber/resources/geocoding/el/82.txt +0 -28
- data/data/libphonenumber/resources/geocoding/en/1.txt +0 -36238
- data/data/libphonenumber/resources/geocoding/en/20.txt +0 -45
- data/data/libphonenumber/resources/geocoding/en/212.txt +0 -86
- data/data/libphonenumber/resources/geocoding/en/213.txt +0 -30
- data/data/libphonenumber/resources/geocoding/en/216.txt +0 -26
- data/data/libphonenumber/resources/geocoding/en/220.txt +0 -59
- data/data/libphonenumber/resources/geocoding/en/221.txt +0 -19
- data/data/libphonenumber/resources/geocoding/en/222.txt +0 -28
- data/data/libphonenumber/resources/geocoding/en/223.txt +0 -37
- data/data/libphonenumber/resources/geocoding/en/224.txt +0 -38
- data/data/libphonenumber/resources/geocoding/en/225.txt +0 -28
- data/data/libphonenumber/resources/geocoding/en/226.txt +0 -50
- data/data/libphonenumber/resources/geocoding/en/228.txt +0 -24
- data/data/libphonenumber/resources/geocoding/en/229.txt +0 -52
- data/data/libphonenumber/resources/geocoding/en/230.txt +0 -25
- data/data/libphonenumber/resources/geocoding/en/232.txt +0 -20
- data/data/libphonenumber/resources/geocoding/en/233.txt +0 -86
- data/data/libphonenumber/resources/geocoding/en/234.txt +0 -79
- data/data/libphonenumber/resources/geocoding/en/237.txt +0 -125
- data/data/libphonenumber/resources/geocoding/en/238.txt +0 -54
- data/data/libphonenumber/resources/geocoding/en/239.txt +0 -35
- data/data/libphonenumber/resources/geocoding/en/241.txt +0 -48
- data/data/libphonenumber/resources/geocoding/en/242.txt +0 -23
- data/data/libphonenumber/resources/geocoding/en/243.txt +0 -22
- data/data/libphonenumber/resources/geocoding/en/244.txt +0 -54
- data/data/libphonenumber/resources/geocoding/en/245.txt +0 -38
- data/data/libphonenumber/resources/geocoding/en/247.txt +0 -27
- data/data/libphonenumber/resources/geocoding/en/249.txt +0 -28
- data/data/libphonenumber/resources/geocoding/en/251.txt +0 -386
- data/data/libphonenumber/resources/geocoding/en/252.txt +0 -21
- data/data/libphonenumber/resources/geocoding/en/254.txt +0 -46
- data/data/libphonenumber/resources/geocoding/en/256.txt +0 -30
- data/data/libphonenumber/resources/geocoding/en/257.txt +0 -28
- data/data/libphonenumber/resources/geocoding/en/258.txt +0 -27
- data/data/libphonenumber/resources/geocoding/en/260.txt +0 -26
- data/data/libphonenumber/resources/geocoding/en/261.txt +0 -40
- data/data/libphonenumber/resources/geocoding/en/263.txt +0 -134
- data/data/libphonenumber/resources/geocoding/en/264.txt +0 -1047
- data/data/libphonenumber/resources/geocoding/en/266.txt +0 -18
- data/data/libphonenumber/resources/geocoding/en/267.txt +0 -35
- data/data/libphonenumber/resources/geocoding/en/268.txt +0 -54
- data/data/libphonenumber/resources/geocoding/en/269.txt +0 -32
- data/data/libphonenumber/resources/geocoding/en/27.txt +0 -57
- data/data/libphonenumber/resources/geocoding/en/290.txt +0 -24
- data/data/libphonenumber/resources/geocoding/en/299.txt +0 -43
- data/data/libphonenumber/resources/geocoding/en/30.txt +0 -261
- data/data/libphonenumber/resources/geocoding/en/31.txt +0 -137
- data/data/libphonenumber/resources/geocoding/en/32.txt +0 -59
- data/data/libphonenumber/resources/geocoding/en/33.txt +0 -5592
- data/data/libphonenumber/resources/geocoding/en/34.txt +0 -123
- data/data/libphonenumber/resources/geocoding/en/351.txt +0 -67
- data/data/libphonenumber/resources/geocoding/en/352.txt +0 -229
- data/data/libphonenumber/resources/geocoding/en/353.txt +0 -71
- data/data/libphonenumber/resources/geocoding/en/354.txt +0 -23
- data/data/libphonenumber/resources/geocoding/en/355.txt +0 -188
- data/data/libphonenumber/resources/geocoding/en/358.txt +0 -74
- data/data/libphonenumber/resources/geocoding/en/359.txt +0 -2102
- data/data/libphonenumber/resources/geocoding/en/36.txt +0 -70
- data/data/libphonenumber/resources/geocoding/en/370.txt +0 -64
- data/data/libphonenumber/resources/geocoding/en/371.txt +0 -56
- data/data/libphonenumber/resources/geocoding/en/372.txt +0 -35
- data/data/libphonenumber/resources/geocoding/en/373.txt +0 -62
- data/data/libphonenumber/resources/geocoding/en/374.txt +0 -184
- data/data/libphonenumber/resources/geocoding/en/375.txt +0 -142
- data/data/libphonenumber/resources/geocoding/en/381.txt +0 -50
- data/data/libphonenumber/resources/geocoding/en/389.txt +0 -28
- data/data/libphonenumber/resources/geocoding/en/39.txt +0 -137
- data/data/libphonenumber/resources/geocoding/en/40.txt +0 -98
- data/data/libphonenumber/resources/geocoding/en/41.txt +0 -37
- data/data/libphonenumber/resources/geocoding/en/420.txt +0 -37
- data/data/libphonenumber/resources/geocoding/en/421.txt +0 -42
- data/data/libphonenumber/resources/geocoding/en/43.txt +0 -1036
- data/data/libphonenumber/resources/geocoding/en/44.txt +0 -870
- data/data/libphonenumber/resources/geocoding/en/46.txt +0 -280
- data/data/libphonenumber/resources/geocoding/en/47.txt +0 -49
- data/data/libphonenumber/resources/geocoding/en/48.txt +0 -65
- data/data/libphonenumber/resources/geocoding/en/49.txt +0 -5218
- data/data/libphonenumber/resources/geocoding/en/501.txt +0 -23
- data/data/libphonenumber/resources/geocoding/en/504.txt +0 -19
- data/data/libphonenumber/resources/geocoding/en/51.txt +0 -42
- data/data/libphonenumber/resources/geocoding/en/53.txt +0 -33
- data/data/libphonenumber/resources/geocoding/en/54.txt +0 -236
- data/data/libphonenumber/resources/geocoding/en/55.txt +0 -15271
- data/data/libphonenumber/resources/geocoding/en/56.txt +0 -41
- data/data/libphonenumber/resources/geocoding/en/57.txt +0 -186
- data/data/libphonenumber/resources/geocoding/en/58.txt +0 -73
- data/data/libphonenumber/resources/geocoding/en/592.txt +0 -82
- data/data/libphonenumber/resources/geocoding/en/599.txt +0 -22
- data/data/libphonenumber/resources/geocoding/en/62.txt +0 -325
- data/data/libphonenumber/resources/geocoding/en/64.txt +0 -124
- data/data/libphonenumber/resources/geocoding/en/66.txt +0 -40
- data/data/libphonenumber/resources/geocoding/en/686.txt +0 -50
- data/data/libphonenumber/resources/geocoding/en/688.txt +0 -25
- data/data/libphonenumber/resources/geocoding/en/7.txt +0 -355
- data/data/libphonenumber/resources/geocoding/en/81.txt +0 -1547
- data/data/libphonenumber/resources/geocoding/en/82.txt +0 -35
- data/data/libphonenumber/resources/geocoding/en/84.txt +0 -88
- data/data/libphonenumber/resources/geocoding/en/86.txt +0 -154830
- data/data/libphonenumber/resources/geocoding/en/886.txt +0 -30
- data/data/libphonenumber/resources/geocoding/en/90.txt +0 -182
- data/data/libphonenumber/resources/geocoding/en/91.txt +0 -2666
- data/data/libphonenumber/resources/geocoding/en/93.txt +0 -52
- data/data/libphonenumber/resources/geocoding/en/94.txt +0 -46
- data/data/libphonenumber/resources/geocoding/en/95.txt +0 -17
- data/data/libphonenumber/resources/geocoding/en/962.txt +0 -32
- data/data/libphonenumber/resources/geocoding/en/966.txt +0 -29
- data/data/libphonenumber/resources/geocoding/en/968.txt +0 -18
- data/data/libphonenumber/resources/geocoding/en/972.txt +0 -20
- data/data/libphonenumber/resources/geocoding/en/975.txt +0 -21
- data/data/libphonenumber/resources/geocoding/en/98.txt +0 -51
- data/data/libphonenumber/resources/geocoding/en/992.txt +0 -77
- data/data/libphonenumber/resources/geocoding/en/994.txt +0 -98
- data/data/libphonenumber/resources/geocoding/es/228.txt +0 -23
- data/data/libphonenumber/resources/geocoding/es/230.txt +0 -23
- data/data/libphonenumber/resources/geocoding/es/34.txt +0 -124
- data/data/libphonenumber/resources/geocoding/es/54.txt +0 -238
- data/data/libphonenumber/resources/geocoding/es/56.txt +0 -43
- data/data/libphonenumber/resources/geocoding/es/57.txt +0 -186
- data/data/libphonenumber/resources/geocoding/es/58.txt +0 -72
- data/data/libphonenumber/resources/geocoding/es/82.txt +0 -33
- data/data/libphonenumber/resources/geocoding/fa/93.txt +0 -53
- data/data/libphonenumber/resources/geocoding/fa/98.txt +0 -48
- data/data/libphonenumber/resources/geocoding/fi/358.txt +0 -74
- data/data/libphonenumber/resources/geocoding/fi/82.txt +0 -34
- data/data/libphonenumber/resources/geocoding/fr/212.txt +0 -85
- data/data/libphonenumber/resources/geocoding/fr/222.txt +0 -29
- data/data/libphonenumber/resources/geocoding/fr/225.txt +0 -30
- data/data/libphonenumber/resources/geocoding/fr/228.txt +0 -24
- data/data/libphonenumber/resources/geocoding/fr/229.txt +0 -55
- data/data/libphonenumber/resources/geocoding/fr/230.txt +0 -23
- data/data/libphonenumber/resources/geocoding/fr/242.txt +0 -25
- data/data/libphonenumber/resources/geocoding/fr/243.txt +0 -24
- data/data/libphonenumber/resources/geocoding/fr/269.txt +0 -34
- data/data/libphonenumber/resources/geocoding/fr/290.txt +0 -24
- data/data/libphonenumber/resources/geocoding/fr/32.txt +0 -59
- data/data/libphonenumber/resources/geocoding/fr/33.txt +0 -5593
- data/data/libphonenumber/resources/geocoding/fr/352.txt +0 -231
- data/data/libphonenumber/resources/geocoding/fr/41.txt +0 -37
- data/data/libphonenumber/resources/geocoding/fr/82.txt +0 -33
- data/data/libphonenumber/resources/geocoding/hi/82.txt +0 -36
- data/data/libphonenumber/resources/geocoding/hu/36.txt +0 -71
- data/data/libphonenumber/resources/geocoding/hu/82.txt +0 -35
- data/data/libphonenumber/resources/geocoding/id/62.txt +0 -326
- data/data/libphonenumber/resources/geocoding/it/39.txt +0 -248
- data/data/libphonenumber/resources/geocoding/it/41.txt +0 -37
- data/data/libphonenumber/resources/geocoding/iw/82.txt +0 -37
- data/data/libphonenumber/resources/geocoding/ja/81.txt +0 -1546
- data/data/libphonenumber/resources/geocoding/ja/82.txt +0 -35
- data/data/libphonenumber/resources/geocoding/ko/82.txt +0 -35
- data/data/libphonenumber/resources/geocoding/nl/31.txt +0 -145
- data/data/libphonenumber/resources/geocoding/nl/32.txt +0 -59
- data/data/libphonenumber/resources/geocoding/pl/48.txt +0 -66
- data/data/libphonenumber/resources/geocoding/pt/238.txt +0 -58
- data/data/libphonenumber/resources/geocoding/pt/239.txt +0 -37
- data/data/libphonenumber/resources/geocoding/pt/244.txt +0 -59
- data/data/libphonenumber/resources/geocoding/pt/245.txt +0 -37
- data/data/libphonenumber/resources/geocoding/pt/258.txt +0 -29
- data/data/libphonenumber/resources/geocoding/pt/351.txt +0 -69
- data/data/libphonenumber/resources/geocoding/pt/55.txt +0 -15269
- data/data/libphonenumber/resources/geocoding/ro/373.txt +0 -61
- data/data/libphonenumber/resources/geocoding/ro/40.txt +0 -99
- data/data/libphonenumber/resources/geocoding/ru/373.txt +0 -61
- data/data/libphonenumber/resources/geocoding/ru/374.txt +0 -177
- data/data/libphonenumber/resources/geocoding/ru/375.txt +0 -143
- data/data/libphonenumber/resources/geocoding/ru/7.txt +0 -108
- data/data/libphonenumber/resources/geocoding/se/358.txt +0 -74
- data/data/libphonenumber/resources/geocoding/sr/381.txt +0 -51
- data/data/libphonenumber/resources/geocoding/sv/46.txt +0 -266
- data/data/libphonenumber/resources/geocoding/th/66.txt +0 -39
- data/data/libphonenumber/resources/geocoding/tr/82.txt +0 -35
- data/data/libphonenumber/resources/geocoding/tr/90.txt +0 -182
- data/data/libphonenumber/resources/geocoding/vi/84.txt +0 -80
- data/data/libphonenumber/resources/geocoding/zh/82.txt +0 -35
- data/data/libphonenumber/resources/geocoding/zh/86.txt +0 -154830
- data/data/libphonenumber/resources/geocoding/zh/886.txt +0 -30
- data/data/libphonenumber/resources/geocoding/zh_Hant/82.txt +0 -35
- data/data/libphonenumber/resources/geocoding/zh_Hant/886.txt +0 -30
- data/data/libphonenumber/resources/phonemetadata.proto +0 -282
- data/data/libphonenumber/resources/phonenumber.proto +0 -124
- data/data/libphonenumber/resources/test/carrier/en/1.txt +0 -16
- data/data/libphonenumber/resources/test/carrier/en/244.txt +0 -16
- data/data/libphonenumber/resources/test/carrier/en/44.txt +0 -17
- data/data/libphonenumber/resources/test/carrier/sv/44.txt +0 -15
- data/data/libphonenumber/resources/test/geocoding/de/1.txt +0 -16
- data/data/libphonenumber/resources/test/geocoding/en/1.txt +0 -21
- data/data/libphonenumber/resources/test/geocoding/en/54.txt +0 -15
- data/data/libphonenumber/resources/test/geocoding/en/82.txt +0 -31
- data/data/libphonenumber/resources/test/geocoding/ko/82.txt +0 -29
- data/data/libphonenumber/resources/test/timezones/map_data.txt +0 -24
- data/data/libphonenumber/resources/timezones/map_data.txt +0 -2070
- data/data/libphonenumber/tools/cpp/CMakeLists.txt +0 -57
- data/data/libphonenumber/tools/cpp/gtest.cmake +0 -47
- data/data/libphonenumber/tools/cpp/src/base/basictypes.h +0 -330
- data/data/libphonenumber/tools/cpp/src/cpp-build/generate_geocoding_data.cc +0 -655
- data/data/libphonenumber/tools/cpp/src/cpp-build/generate_geocoding_data.h +0 -37
- data/data/libphonenumber/tools/cpp/src/cpp-build/generate_geocoding_data_main.cc +0 -21
- data/data/libphonenumber/tools/cpp/test/cpp-build/generate_geocoding_data_test.cc +0 -39
- data/data/libphonenumber/tools/cpp/test/cpp-build/run_tests.cc +0 -21
- data/data/libphonenumber/tools/java/common/pom.xml +0 -69
- data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/BuildMetadataFromXml.java +0 -530
- data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/Command.java +0 -51
- data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/CommandDispatcher.java +0 -78
- data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/CopyrightNotice.java +0 -66
- data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/FileUtils.java +0 -52
- data/data/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/BuildMetadataFromXmlTest.java +0 -654
- data/data/libphonenumber/tools/java/cpp-build/pom.xml +0 -114
- data/data/libphonenumber/tools/java/cpp-build/src/com/google/i18n/phonenumbers/BuildMetadataCppFromXml.java +0 -230
- data/data/libphonenumber/tools/java/cpp-build/src/com/google/i18n/phonenumbers/CppMetadataGenerator.java +0 -197
- data/data/libphonenumber/tools/java/cpp-build/src/com/google/i18n/phonenumbers/EntryPoint.java +0 -33
- data/data/libphonenumber/tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar +0 -0
- data/data/libphonenumber/tools/java/cpp-build/test/com/google/i18n/phonenumbers/BuildMetadataCppFromXmlTest.java +0 -185
- data/data/libphonenumber/tools/java/cpp-build/test/com/google/i18n/phonenumbers/CppMetadataGeneratorTest.java +0 -122
- data/data/libphonenumber/tools/java/data/README +0 -16
- data/data/libphonenumber/tools/java/data/pom.xml +0 -101
- data/data/libphonenumber/tools/java/data/src/com/google/i18n/phonenumbers/CombineGeoData.java +0 -287
- data/data/libphonenumber/tools/java/data/src/com/google/i18n/phonenumbers/CombineGeoDataServlet.java +0 -46
- data/data/libphonenumber/tools/java/data/test/com/google/i18n/phonenumbers/CombineGeoDataTest.java +0 -233
- data/data/libphonenumber/tools/java/data/webapp/WEB-INF/appengine-web.xml +0 -8
- data/data/libphonenumber/tools/java/data/webapp/WEB-INF/logging.properties +0 -13
- data/data/libphonenumber/tools/java/data/webapp/WEB-INF/web.xml +0 -18
- data/data/libphonenumber/tools/java/data/webapp/index.html +0 -22
- data/data/libphonenumber/tools/java/java-build/pom.xml +0 -121
- data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/BuildMetadataJsonFromXml.java +0 -397
- data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/BuildMetadataProtoFromXml.java +0 -381
- data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/EntryPoint.java +0 -39
- data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/JSArrayBuilder.java +0 -142
- data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/AbstractPhonePrefixDataIOHandler.java +0 -62
- data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/GeneratePhonePrefixData.java +0 -483
- data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/GeneratePhonePrefixDataEntryPoint.java +0 -58
- data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/GenerateTimeZonesMapData.java +0 -143
- data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/GenerateTimeZonesMapDataEntryPoint.java +0 -60
- data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/PhonePrefixDataIOHandler.java +0 -59
- data/data/libphonenumber/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar +0 -0
- data/data/libphonenumber/tools/java/java-build/test/com/google/i18n/phonenumbers/buildtools/GeneratePhonePrefixDataTest.java +0 -291
- data/data/libphonenumber/tools/java/java-build/test/com/google/i18n/phonenumbers/buildtools/GenerateTimeZonesMapDataTest.java +0 -136
- data/data/libphonenumber/tools/java/pom.xml +0 -29
- data/data/libphonenumber/tools/script/continuous-integration.sh +0 -96
@@ -1,2591 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (C) 2009 The Libphonenumber Authors
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
|
17
|
-
package com.google.i18n.phonenumbers;
|
18
|
-
|
19
|
-
import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat;
|
20
|
-
import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
|
21
|
-
import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
|
22
|
-
import com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat;
|
23
|
-
import com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata;
|
24
|
-
import com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneNumberDesc;
|
25
|
-
|
26
|
-
import java.util.ArrayList;
|
27
|
-
import java.util.List;
|
28
|
-
import java.util.Set;
|
29
|
-
|
30
|
-
/**
|
31
|
-
* Unit tests for PhoneNumberUtil.java
|
32
|
-
*
|
33
|
-
* Note that these tests use the test metadata, not the normal metadata file, so should not be used
|
34
|
-
* for regression test purposes - these tests are illustrative only and test functionality.
|
35
|
-
*
|
36
|
-
* @author Shaopeng Jia
|
37
|
-
*/
|
38
|
-
public class PhoneNumberUtilTest extends TestMetadataTestCase {
|
39
|
-
// Set up some test numbers to re-use.
|
40
|
-
// TODO: Rewrite this as static functions that return new numbers each time to avoid
|
41
|
-
// any risk of accidental changes to mutable static state affecting many tests.
|
42
|
-
private static final PhoneNumber ALPHA_NUMERIC_NUMBER =
|
43
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(80074935247L);
|
44
|
-
private static final PhoneNumber AE_UAN =
|
45
|
-
new PhoneNumber().setCountryCode(971).setNationalNumber(600123456L);
|
46
|
-
private static final PhoneNumber AR_MOBILE =
|
47
|
-
new PhoneNumber().setCountryCode(54).setNationalNumber(91187654321L);
|
48
|
-
private static final PhoneNumber AR_NUMBER =
|
49
|
-
new PhoneNumber().setCountryCode(54).setNationalNumber(1187654321);
|
50
|
-
private static final PhoneNumber AU_NUMBER =
|
51
|
-
new PhoneNumber().setCountryCode(61).setNationalNumber(236618300L);
|
52
|
-
private static final PhoneNumber BS_MOBILE =
|
53
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(2423570000L);
|
54
|
-
private static final PhoneNumber BS_NUMBER =
|
55
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(2423651234L);
|
56
|
-
// Note that this is the same as the example number for DE in the metadata.
|
57
|
-
private static final PhoneNumber DE_NUMBER =
|
58
|
-
new PhoneNumber().setCountryCode(49).setNationalNumber(30123456L);
|
59
|
-
private static final PhoneNumber DE_SHORT_NUMBER =
|
60
|
-
new PhoneNumber().setCountryCode(49).setNationalNumber(1234L);
|
61
|
-
private static final PhoneNumber GB_MOBILE =
|
62
|
-
new PhoneNumber().setCountryCode(44).setNationalNumber(7912345678L);
|
63
|
-
private static final PhoneNumber GB_NUMBER =
|
64
|
-
new PhoneNumber().setCountryCode(44).setNationalNumber(2070313000L);
|
65
|
-
private static final PhoneNumber IT_MOBILE =
|
66
|
-
new PhoneNumber().setCountryCode(39).setNationalNumber(345678901L);
|
67
|
-
private static final PhoneNumber IT_NUMBER =
|
68
|
-
new PhoneNumber().setCountryCode(39).setNationalNumber(236618300L).
|
69
|
-
setItalianLeadingZero(true);
|
70
|
-
private static final PhoneNumber JP_STAR_NUMBER =
|
71
|
-
new PhoneNumber().setCountryCode(81).setNationalNumber(2345);
|
72
|
-
// Numbers to test the formatting rules from Mexico.
|
73
|
-
private static final PhoneNumber MX_MOBILE1 =
|
74
|
-
new PhoneNumber().setCountryCode(52).setNationalNumber(12345678900L);
|
75
|
-
private static final PhoneNumber MX_MOBILE2 =
|
76
|
-
new PhoneNumber().setCountryCode(52).setNationalNumber(15512345678L);
|
77
|
-
private static final PhoneNumber MX_NUMBER1 =
|
78
|
-
new PhoneNumber().setCountryCode(52).setNationalNumber(3312345678L);
|
79
|
-
private static final PhoneNumber MX_NUMBER2 =
|
80
|
-
new PhoneNumber().setCountryCode(52).setNationalNumber(8211234567L);
|
81
|
-
private static final PhoneNumber NZ_NUMBER =
|
82
|
-
new PhoneNumber().setCountryCode(64).setNationalNumber(33316005L);
|
83
|
-
private static final PhoneNumber SG_NUMBER =
|
84
|
-
new PhoneNumber().setCountryCode(65).setNationalNumber(65218000L);
|
85
|
-
// A too-long and hence invalid US number.
|
86
|
-
private static final PhoneNumber US_LONG_NUMBER =
|
87
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(65025300001L);
|
88
|
-
private static final PhoneNumber US_NUMBER =
|
89
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(6502530000L);
|
90
|
-
private static final PhoneNumber US_PREMIUM =
|
91
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(9002530000L);
|
92
|
-
// Too short, but still possible US numbers.
|
93
|
-
private static final PhoneNumber US_LOCAL_NUMBER =
|
94
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(2530000L);
|
95
|
-
private static final PhoneNumber US_SHORT_BY_ONE_NUMBER =
|
96
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(650253000L);
|
97
|
-
private static final PhoneNumber US_TOLLFREE =
|
98
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(8002530000L);
|
99
|
-
private static final PhoneNumber US_SPOOF =
|
100
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(0L);
|
101
|
-
private static final PhoneNumber US_SPOOF_WITH_RAW_INPUT =
|
102
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(0L)
|
103
|
-
.setRawInput("000-000-0000");
|
104
|
-
private static final PhoneNumber INTERNATIONAL_TOLL_FREE =
|
105
|
-
new PhoneNumber().setCountryCode(800).setNationalNumber(12345678L);
|
106
|
-
// We set this to be the same length as numbers for the other non-geographical country prefix that
|
107
|
-
// we have in our test metadata. However, this is not considered valid because they differ in
|
108
|
-
// their country calling code.
|
109
|
-
private static final PhoneNumber INTERNATIONAL_TOLL_FREE_TOO_LONG =
|
110
|
-
new PhoneNumber().setCountryCode(800).setNationalNumber(123456789L);
|
111
|
-
private static final PhoneNumber UNIVERSAL_PREMIUM_RATE =
|
112
|
-
new PhoneNumber().setCountryCode(979).setNationalNumber(123456789L);
|
113
|
-
private static final PhoneNumber UNKNOWN_COUNTRY_CODE_NO_RAW_INPUT =
|
114
|
-
new PhoneNumber().setCountryCode(2).setNationalNumber(12345L);
|
115
|
-
|
116
|
-
public void testGetSupportedRegions() {
|
117
|
-
assertTrue(phoneUtil.getSupportedRegions().size() > 0);
|
118
|
-
}
|
119
|
-
|
120
|
-
public void testGetSupportedGlobalNetworkCallingCodes() {
|
121
|
-
Set<Integer> globalNetworkCallingCodes =
|
122
|
-
phoneUtil.getSupportedGlobalNetworkCallingCodes();
|
123
|
-
assertTrue(globalNetworkCallingCodes.size() > 0);
|
124
|
-
for (int callingCode : globalNetworkCallingCodes) {
|
125
|
-
assertTrue(callingCode > 0);
|
126
|
-
assertEquals(RegionCode.UN001, phoneUtil.getRegionCodeForCountryCode(callingCode));
|
127
|
-
}
|
128
|
-
}
|
129
|
-
|
130
|
-
public void testGetInstanceLoadBadMetadata() {
|
131
|
-
assertNull(phoneUtil.getMetadataForRegion("No Such Region"));
|
132
|
-
assertNull(phoneUtil.getMetadataForNonGeographicalRegion(-1));
|
133
|
-
}
|
134
|
-
|
135
|
-
private boolean exactlySame(PhoneNumberDesc first, PhoneNumberDesc second) {
|
136
|
-
return first.nationalNumberPattern.equals(second.nationalNumberPattern) &&
|
137
|
-
first.possibleNumberPattern.equals(second.possibleNumberPattern) &&
|
138
|
-
first.exampleNumber.equals(second.exampleNumber);
|
139
|
-
}
|
140
|
-
|
141
|
-
public void testGetInstanceLoadUSMetadata() {
|
142
|
-
PhoneMetadata metadata = phoneUtil.getMetadataForRegion(RegionCode.US);
|
143
|
-
assertEquals("US", metadata.id);
|
144
|
-
assertEquals(1, metadata.countryCode);
|
145
|
-
assertEquals("011", metadata.internationalPrefix);
|
146
|
-
assertTrue(!metadata.nationalPrefix.equals(""));
|
147
|
-
assertEquals(2, metadata.numberFormat.length);
|
148
|
-
assertEquals("(\\d{3})(\\d{3})(\\d{4})",
|
149
|
-
metadata.numberFormat[1].pattern);
|
150
|
-
assertEquals("$1 $2 $3", metadata.numberFormat[1].format);
|
151
|
-
assertEquals("[13-689]\\d{9}|2[0-35-9]\\d{8}",
|
152
|
-
metadata.generalDesc.nationalNumberPattern);
|
153
|
-
assertEquals("\\d{7}(?:\\d{3})?", metadata.generalDesc.possibleNumberPattern);
|
154
|
-
assertTrue(exactlySame(metadata.generalDesc, metadata.fixedLine));
|
155
|
-
assertEquals("\\d{10}", metadata.tollFree.possibleNumberPattern);
|
156
|
-
assertEquals("900\\d{7}", metadata.premiumRate.nationalNumberPattern);
|
157
|
-
// No shared-cost data is available, so it should be initialised to "NA".
|
158
|
-
assertEquals("NA", metadata.sharedCost.nationalNumberPattern);
|
159
|
-
assertEquals("NA", metadata.sharedCost.possibleNumberPattern);
|
160
|
-
}
|
161
|
-
|
162
|
-
public void testGetInstanceLoadDEMetadata() {
|
163
|
-
PhoneMetadata metadata = phoneUtil.getMetadataForRegion(RegionCode.DE);
|
164
|
-
assertEquals("DE", metadata.id);
|
165
|
-
assertEquals(49, metadata.countryCode);
|
166
|
-
assertEquals("00", metadata.internationalPrefix);
|
167
|
-
assertEquals("0", metadata.nationalPrefix);
|
168
|
-
assertEquals(6, metadata.numberFormat.length);
|
169
|
-
assertEquals(1, metadata.numberFormat[5].leadingDigitsPattern.length);
|
170
|
-
assertEquals("900", metadata.numberFormat[5].leadingDigitsPattern[0]);
|
171
|
-
assertEquals("(\\d{3})(\\d{3,4})(\\d{4})",
|
172
|
-
metadata.numberFormat[5].pattern);
|
173
|
-
assertEquals("$1 $2 $3", metadata.numberFormat[5].format);
|
174
|
-
assertEquals("(?:[24-6]\\d{2}|3[03-9]\\d|[789](?:[1-9]\\d|0[2-9]))\\d{1,8}",
|
175
|
-
metadata.fixedLine.nationalNumberPattern);
|
176
|
-
assertEquals("\\d{2,14}", metadata.fixedLine.possibleNumberPattern);
|
177
|
-
assertEquals("30123456", metadata.fixedLine.exampleNumber);
|
178
|
-
assertEquals("\\d{10}", metadata.tollFree.possibleNumberPattern);
|
179
|
-
assertEquals("900([135]\\d{6}|9\\d{7})", metadata.premiumRate.nationalNumberPattern);
|
180
|
-
}
|
181
|
-
|
182
|
-
public void testGetInstanceLoadARMetadata() {
|
183
|
-
PhoneMetadata metadata = phoneUtil.getMetadataForRegion(RegionCode.AR);
|
184
|
-
assertEquals("AR", metadata.id);
|
185
|
-
assertEquals(54, metadata.countryCode);
|
186
|
-
assertEquals("00", metadata.internationalPrefix);
|
187
|
-
assertEquals("0", metadata.nationalPrefix);
|
188
|
-
assertEquals("0(?:(11|343|3715)15)?", metadata.nationalPrefixForParsing);
|
189
|
-
assertEquals("9$1", metadata.nationalPrefixTransformRule);
|
190
|
-
assertEquals("$2 15 $3-$4", metadata.numberFormat[2].format);
|
191
|
-
assertEquals("(9)(\\d{4})(\\d{2})(\\d{4})",
|
192
|
-
metadata.numberFormat[3].pattern);
|
193
|
-
assertEquals("(9)(\\d{4})(\\d{2})(\\d{4})",
|
194
|
-
metadata.intlNumberFormat[3].pattern);
|
195
|
-
assertEquals("$1 $2 $3 $4", metadata.intlNumberFormat[3].format);
|
196
|
-
}
|
197
|
-
|
198
|
-
public void testGetInstanceLoadInternationalTollFreeMetadata() {
|
199
|
-
PhoneMetadata metadata = phoneUtil.getMetadataForNonGeographicalRegion(800);
|
200
|
-
assertEquals("001", metadata.id);
|
201
|
-
assertEquals(800, metadata.countryCode);
|
202
|
-
assertEquals("$1 $2", metadata.numberFormat[0].format);
|
203
|
-
assertEquals("(\\d{4})(\\d{4})", metadata.numberFormat[0].pattern);
|
204
|
-
assertEquals("12345678", metadata.generalDesc.exampleNumber);
|
205
|
-
assertEquals("12345678", metadata.tollFree.exampleNumber);
|
206
|
-
}
|
207
|
-
|
208
|
-
public void testIsNumberGeographical() {
|
209
|
-
assertFalse(phoneUtil.isNumberGeographical(BS_MOBILE)); // Bahamas, mobile phone number.
|
210
|
-
assertTrue(phoneUtil.isNumberGeographical(AU_NUMBER)); // Australian fixed line number.
|
211
|
-
assertFalse(phoneUtil.isNumberGeographical(INTERNATIONAL_TOLL_FREE)); // International toll
|
212
|
-
// free number.
|
213
|
-
// We test that mobile phone numbers in relevant regions are indeed considered geographical.
|
214
|
-
assertTrue(phoneUtil.isNumberGeographical(AR_MOBILE)); // Argentina, mobile phone number.
|
215
|
-
assertTrue(phoneUtil.isNumberGeographical(MX_MOBILE1)); // Mexico, mobile phone number.
|
216
|
-
assertTrue(phoneUtil.isNumberGeographical(MX_MOBILE2)); // Mexico, another mobile phone number.
|
217
|
-
}
|
218
|
-
|
219
|
-
public void testIsLeadingZeroPossible() {
|
220
|
-
assertTrue(phoneUtil.isLeadingZeroPossible(39)); // Italy
|
221
|
-
assertFalse(phoneUtil.isLeadingZeroPossible(1)); // USA
|
222
|
-
assertTrue(phoneUtil.isLeadingZeroPossible(800)); // International toll free
|
223
|
-
assertFalse(phoneUtil.isLeadingZeroPossible(979)); // International premium-rate
|
224
|
-
assertFalse(phoneUtil.isLeadingZeroPossible(888)); // Not in metadata file, just default to
|
225
|
-
// false.
|
226
|
-
}
|
227
|
-
|
228
|
-
public void testGetLengthOfGeographicalAreaCode() {
|
229
|
-
// Google MTV, which has area code "650".
|
230
|
-
assertEquals(3, phoneUtil.getLengthOfGeographicalAreaCode(US_NUMBER));
|
231
|
-
|
232
|
-
// A North America toll-free number, which has no area code.
|
233
|
-
assertEquals(0, phoneUtil.getLengthOfGeographicalAreaCode(US_TOLLFREE));
|
234
|
-
|
235
|
-
// Google London, which has area code "20".
|
236
|
-
assertEquals(2, phoneUtil.getLengthOfGeographicalAreaCode(GB_NUMBER));
|
237
|
-
|
238
|
-
// A mobile number in the UK does not have an area code (by default, mobile numbers do not,
|
239
|
-
// unless they have been added to our list of exceptions).
|
240
|
-
assertEquals(0, phoneUtil.getLengthOfGeographicalAreaCode(GB_MOBILE));
|
241
|
-
|
242
|
-
// Google Buenos Aires, which has area code "11".
|
243
|
-
assertEquals(2, phoneUtil.getLengthOfGeographicalAreaCode(AR_NUMBER));
|
244
|
-
|
245
|
-
// A mobile number in Argentina also has an area code.
|
246
|
-
assertEquals(3, phoneUtil.getLengthOfGeographicalAreaCode(AR_MOBILE));
|
247
|
-
|
248
|
-
// Google Sydney, which has area code "2".
|
249
|
-
assertEquals(1, phoneUtil.getLengthOfGeographicalAreaCode(AU_NUMBER));
|
250
|
-
|
251
|
-
// Italian numbers - there is no national prefix, but it still has an area code.
|
252
|
-
assertEquals(2, phoneUtil.getLengthOfGeographicalAreaCode(IT_NUMBER));
|
253
|
-
|
254
|
-
// Google Singapore. Singapore has no area code and no national prefix.
|
255
|
-
assertEquals(0, phoneUtil.getLengthOfGeographicalAreaCode(SG_NUMBER));
|
256
|
-
|
257
|
-
// An invalid US number (1 digit shorter), which has no area code.
|
258
|
-
assertEquals(0, phoneUtil.getLengthOfGeographicalAreaCode(US_SHORT_BY_ONE_NUMBER));
|
259
|
-
|
260
|
-
// An international toll free number, which has no area code.
|
261
|
-
assertEquals(0, phoneUtil.getLengthOfGeographicalAreaCode(INTERNATIONAL_TOLL_FREE));
|
262
|
-
|
263
|
-
// A mobile number from China is geographical, but does not have an area code.
|
264
|
-
PhoneNumber cnMobile = new PhoneNumber().setCountryCode(86).setNationalNumber(18912341234L);
|
265
|
-
assertEquals(0, phoneUtil.getLengthOfGeographicalAreaCode(cnMobile));
|
266
|
-
}
|
267
|
-
|
268
|
-
public void testGetLengthOfNationalDestinationCode() {
|
269
|
-
// Google MTV, which has national destination code (NDC) "650".
|
270
|
-
assertEquals(3, phoneUtil.getLengthOfNationalDestinationCode(US_NUMBER));
|
271
|
-
|
272
|
-
// A North America toll-free number, which has NDC "800".
|
273
|
-
assertEquals(3, phoneUtil.getLengthOfNationalDestinationCode(US_TOLLFREE));
|
274
|
-
|
275
|
-
// Google London, which has NDC "20".
|
276
|
-
assertEquals(2, phoneUtil.getLengthOfNationalDestinationCode(GB_NUMBER));
|
277
|
-
|
278
|
-
// A UK mobile phone, which has NDC "7912".
|
279
|
-
assertEquals(4, phoneUtil.getLengthOfNationalDestinationCode(GB_MOBILE));
|
280
|
-
|
281
|
-
// Google Buenos Aires, which has NDC "11".
|
282
|
-
assertEquals(2, phoneUtil.getLengthOfNationalDestinationCode(AR_NUMBER));
|
283
|
-
|
284
|
-
// An Argentinian mobile which has NDC "911".
|
285
|
-
assertEquals(3, phoneUtil.getLengthOfNationalDestinationCode(AR_MOBILE));
|
286
|
-
|
287
|
-
// Google Sydney, which has NDC "2".
|
288
|
-
assertEquals(1, phoneUtil.getLengthOfNationalDestinationCode(AU_NUMBER));
|
289
|
-
|
290
|
-
// Google Singapore, which has NDC "6521".
|
291
|
-
assertEquals(4, phoneUtil.getLengthOfNationalDestinationCode(SG_NUMBER));
|
292
|
-
|
293
|
-
// An invalid US number (1 digit shorter), which has no NDC.
|
294
|
-
assertEquals(0, phoneUtil.getLengthOfNationalDestinationCode(US_SHORT_BY_ONE_NUMBER));
|
295
|
-
|
296
|
-
// A number containing an invalid country calling code, which shouldn't have any NDC.
|
297
|
-
PhoneNumber number = new PhoneNumber().setCountryCode(123).setNationalNumber(6502530000L);
|
298
|
-
assertEquals(0, phoneUtil.getLengthOfNationalDestinationCode(number));
|
299
|
-
|
300
|
-
// An international toll free number, which has NDC "1234".
|
301
|
-
assertEquals(4, phoneUtil.getLengthOfNationalDestinationCode(INTERNATIONAL_TOLL_FREE));
|
302
|
-
|
303
|
-
// A mobile number from China is geographical, but does not have an area code: however it still
|
304
|
-
// can be considered to have a national destination code.
|
305
|
-
PhoneNumber cnMobile = new PhoneNumber().setCountryCode(86).setNationalNumber(18912341234L);
|
306
|
-
assertEquals(3, phoneUtil.getLengthOfNationalDestinationCode(cnMobile));
|
307
|
-
}
|
308
|
-
|
309
|
-
public void testGetCountryMobileToken() {
|
310
|
-
assertEquals("1", PhoneNumberUtil.getCountryMobileToken(phoneUtil.getCountryCodeForRegion(
|
311
|
-
RegionCode.MX)));
|
312
|
-
|
313
|
-
// Country calling code for Sweden, which has no mobile token.
|
314
|
-
assertEquals("", PhoneNumberUtil.getCountryMobileToken(phoneUtil.getCountryCodeForRegion(
|
315
|
-
RegionCode.SE)));
|
316
|
-
}
|
317
|
-
|
318
|
-
public void testGetNationalSignificantNumber() {
|
319
|
-
assertEquals("6502530000", phoneUtil.getNationalSignificantNumber(US_NUMBER));
|
320
|
-
|
321
|
-
// An Italian mobile number.
|
322
|
-
assertEquals("345678901", phoneUtil.getNationalSignificantNumber(IT_MOBILE));
|
323
|
-
|
324
|
-
// An Italian fixed line number.
|
325
|
-
assertEquals("0236618300", phoneUtil.getNationalSignificantNumber(IT_NUMBER));
|
326
|
-
|
327
|
-
assertEquals("12345678", phoneUtil.getNationalSignificantNumber(INTERNATIONAL_TOLL_FREE));
|
328
|
-
}
|
329
|
-
|
330
|
-
public void testGetExampleNumber() {
|
331
|
-
assertEquals(DE_NUMBER, phoneUtil.getExampleNumber(RegionCode.DE));
|
332
|
-
|
333
|
-
assertEquals(DE_NUMBER,
|
334
|
-
phoneUtil.getExampleNumberForType(RegionCode.DE,
|
335
|
-
PhoneNumberUtil.PhoneNumberType.FIXED_LINE));
|
336
|
-
assertEquals(null,
|
337
|
-
phoneUtil.getExampleNumberForType(RegionCode.DE,
|
338
|
-
PhoneNumberUtil.PhoneNumberType.MOBILE));
|
339
|
-
// For the US, the example number is placed under general description, and hence should be used
|
340
|
-
// for both fixed line and mobile, so neither of these should return null.
|
341
|
-
assertNotNull(phoneUtil.getExampleNumberForType(RegionCode.US,
|
342
|
-
PhoneNumberUtil.PhoneNumberType.FIXED_LINE));
|
343
|
-
assertNotNull(phoneUtil.getExampleNumberForType(RegionCode.US,
|
344
|
-
PhoneNumberUtil.PhoneNumberType.MOBILE));
|
345
|
-
// CS is an invalid region, so we have no data for it.
|
346
|
-
assertNull(phoneUtil.getExampleNumberForType(RegionCode.CS,
|
347
|
-
PhoneNumberUtil.PhoneNumberType.MOBILE));
|
348
|
-
// RegionCode 001 is reserved for supporting non-geographical country calling code. We don't
|
349
|
-
// support getting an example number for it with this method.
|
350
|
-
assertNull(phoneUtil.getExampleNumber(RegionCode.UN001));
|
351
|
-
}
|
352
|
-
|
353
|
-
public void testGetInvalidExampleNumber() {
|
354
|
-
// RegionCode 001 is reserved for supporting non-geographical country calling codes. We don't
|
355
|
-
// support getting an invalid example number for it with getInvalidExampleNumber.
|
356
|
-
assertNull(phoneUtil.getInvalidExampleNumber(RegionCode.UN001));
|
357
|
-
assertNull(phoneUtil.getInvalidExampleNumber(RegionCode.CS));
|
358
|
-
PhoneNumber usInvalidNumber = phoneUtil.getInvalidExampleNumber(RegionCode.US);
|
359
|
-
assertEquals(1, usInvalidNumber.getCountryCode());
|
360
|
-
assertFalse(usInvalidNumber.getNationalNumber() == 0);
|
361
|
-
}
|
362
|
-
|
363
|
-
public void testGetExampleNumberForNonGeoEntity() {
|
364
|
-
assertEquals(INTERNATIONAL_TOLL_FREE, phoneUtil.getExampleNumberForNonGeoEntity(800));
|
365
|
-
assertEquals(UNIVERSAL_PREMIUM_RATE, phoneUtil.getExampleNumberForNonGeoEntity(979));
|
366
|
-
}
|
367
|
-
|
368
|
-
public void testGetExampleNumberWithoutRegion() {
|
369
|
-
// In our test metadata we don't cover all types: in our real metadata, we do.
|
370
|
-
assertNotNull(phoneUtil.getExampleNumberForType(PhoneNumberUtil.PhoneNumberType.FIXED_LINE));
|
371
|
-
assertNotNull(phoneUtil.getExampleNumberForType(PhoneNumberUtil.PhoneNumberType.MOBILE));
|
372
|
-
assertNotNull(phoneUtil.getExampleNumberForType(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE));
|
373
|
-
}
|
374
|
-
|
375
|
-
public void testConvertAlphaCharactersInNumber() {
|
376
|
-
String input = "1800-ABC-DEF";
|
377
|
-
// Alpha chars are converted to digits; everything else is left untouched.
|
378
|
-
String expectedOutput = "1800-222-333";
|
379
|
-
assertEquals(expectedOutput, PhoneNumberUtil.convertAlphaCharactersInNumber(input));
|
380
|
-
}
|
381
|
-
|
382
|
-
public void testNormaliseRemovePunctuation() {
|
383
|
-
String inputNumber = "034-56&+#2\u00AD34";
|
384
|
-
String expectedOutput = "03456234";
|
385
|
-
assertEquals("Conversion did not correctly remove punctuation",
|
386
|
-
expectedOutput,
|
387
|
-
PhoneNumberUtil.normalize(inputNumber));
|
388
|
-
}
|
389
|
-
|
390
|
-
public void testNormaliseReplaceAlphaCharacters() {
|
391
|
-
String inputNumber = "034-I-am-HUNGRY";
|
392
|
-
String expectedOutput = "034426486479";
|
393
|
-
assertEquals("Conversion did not correctly replace alpha characters",
|
394
|
-
expectedOutput,
|
395
|
-
PhoneNumberUtil.normalize(inputNumber));
|
396
|
-
}
|
397
|
-
|
398
|
-
public void testNormaliseOtherDigits() {
|
399
|
-
String inputNumber = "\uFF125\u0665";
|
400
|
-
String expectedOutput = "255";
|
401
|
-
assertEquals("Conversion did not correctly replace non-latin digits",
|
402
|
-
expectedOutput,
|
403
|
-
PhoneNumberUtil.normalize(inputNumber));
|
404
|
-
// Eastern-Arabic digits.
|
405
|
-
inputNumber = "\u06F52\u06F0";
|
406
|
-
expectedOutput = "520";
|
407
|
-
assertEquals("Conversion did not correctly replace non-latin digits",
|
408
|
-
expectedOutput,
|
409
|
-
PhoneNumberUtil.normalize(inputNumber));
|
410
|
-
}
|
411
|
-
|
412
|
-
public void testNormaliseStripAlphaCharacters() {
|
413
|
-
String inputNumber = "034-56&+a#234";
|
414
|
-
String expectedOutput = "03456234";
|
415
|
-
assertEquals("Conversion did not correctly remove alpha character",
|
416
|
-
expectedOutput,
|
417
|
-
PhoneNumberUtil.normalizeDigitsOnly(inputNumber));
|
418
|
-
}
|
419
|
-
|
420
|
-
public void testNormaliseStripNonDiallableCharacters() {
|
421
|
-
String inputNumber = "03*4-56&+a#234";
|
422
|
-
String expectedOutput = "03*456+234";
|
423
|
-
assertEquals("Conversion did not correctly remove non-diallable characters",
|
424
|
-
expectedOutput,
|
425
|
-
PhoneNumberUtil.normalizeDiallableCharsOnly(inputNumber));
|
426
|
-
}
|
427
|
-
|
428
|
-
public void testFormatUSNumber() {
|
429
|
-
assertEquals("650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.NATIONAL));
|
430
|
-
assertEquals("+1 650 253 0000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.INTERNATIONAL));
|
431
|
-
|
432
|
-
assertEquals("800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.NATIONAL));
|
433
|
-
assertEquals("+1 800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.INTERNATIONAL));
|
434
|
-
|
435
|
-
assertEquals("900 253 0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.NATIONAL));
|
436
|
-
assertEquals("+1 900 253 0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.INTERNATIONAL));
|
437
|
-
assertEquals("tel:+1-900-253-0000", phoneUtil.format(US_PREMIUM, PhoneNumberFormat.RFC3966));
|
438
|
-
// Numbers with all zeros in the national number part will be formatted by using the raw_input
|
439
|
-
// if that is available no matter which format is specified.
|
440
|
-
assertEquals("000-000-0000",
|
441
|
-
phoneUtil.format(US_SPOOF_WITH_RAW_INPUT, PhoneNumberFormat.NATIONAL));
|
442
|
-
assertEquals("0", phoneUtil.format(US_SPOOF, PhoneNumberFormat.NATIONAL));
|
443
|
-
}
|
444
|
-
|
445
|
-
public void testFormatBSNumber() {
|
446
|
-
assertEquals("242 365 1234", phoneUtil.format(BS_NUMBER, PhoneNumberFormat.NATIONAL));
|
447
|
-
assertEquals("+1 242 365 1234", phoneUtil.format(BS_NUMBER, PhoneNumberFormat.INTERNATIONAL));
|
448
|
-
}
|
449
|
-
|
450
|
-
public void testFormatGBNumber() {
|
451
|
-
assertEquals("(020) 7031 3000", phoneUtil.format(GB_NUMBER, PhoneNumberFormat.NATIONAL));
|
452
|
-
assertEquals("+44 20 7031 3000", phoneUtil.format(GB_NUMBER, PhoneNumberFormat.INTERNATIONAL));
|
453
|
-
|
454
|
-
assertEquals("(07912) 345 678", phoneUtil.format(GB_MOBILE, PhoneNumberFormat.NATIONAL));
|
455
|
-
assertEquals("+44 7912 345 678", phoneUtil.format(GB_MOBILE, PhoneNumberFormat.INTERNATIONAL));
|
456
|
-
}
|
457
|
-
|
458
|
-
public void testFormatDENumber() {
|
459
|
-
PhoneNumber deNumber = new PhoneNumber();
|
460
|
-
deNumber.setCountryCode(49).setNationalNumber(301234L);
|
461
|
-
assertEquals("030/1234", phoneUtil.format(deNumber, PhoneNumberFormat.NATIONAL));
|
462
|
-
assertEquals("+49 30/1234", phoneUtil.format(deNumber, PhoneNumberFormat.INTERNATIONAL));
|
463
|
-
assertEquals("tel:+49-30-1234", phoneUtil.format(deNumber, PhoneNumberFormat.RFC3966));
|
464
|
-
|
465
|
-
deNumber.clear();
|
466
|
-
deNumber.setCountryCode(49).setNationalNumber(291123L);
|
467
|
-
assertEquals("0291 123", phoneUtil.format(deNumber, PhoneNumberFormat.NATIONAL));
|
468
|
-
assertEquals("+49 291 123", phoneUtil.format(deNumber, PhoneNumberFormat.INTERNATIONAL));
|
469
|
-
|
470
|
-
deNumber.clear();
|
471
|
-
deNumber.setCountryCode(49).setNationalNumber(29112345678L);
|
472
|
-
assertEquals("0291 12345678", phoneUtil.format(deNumber, PhoneNumberFormat.NATIONAL));
|
473
|
-
assertEquals("+49 291 12345678", phoneUtil.format(deNumber, PhoneNumberFormat.INTERNATIONAL));
|
474
|
-
|
475
|
-
deNumber.clear();
|
476
|
-
deNumber.setCountryCode(49).setNationalNumber(912312345L);
|
477
|
-
assertEquals("09123 12345", phoneUtil.format(deNumber, PhoneNumberFormat.NATIONAL));
|
478
|
-
assertEquals("+49 9123 12345", phoneUtil.format(deNumber, PhoneNumberFormat.INTERNATIONAL));
|
479
|
-
deNumber.clear();
|
480
|
-
deNumber.setCountryCode(49).setNationalNumber(80212345L);
|
481
|
-
assertEquals("08021 2345", phoneUtil.format(deNumber, PhoneNumberFormat.NATIONAL));
|
482
|
-
assertEquals("+49 8021 2345", phoneUtil.format(deNumber, PhoneNumberFormat.INTERNATIONAL));
|
483
|
-
// Note this number is correctly formatted without national prefix. Most of the numbers that
|
484
|
-
// are treated as invalid numbers by the library are short numbers, and they are usually not
|
485
|
-
// dialed with national prefix.
|
486
|
-
assertEquals("1234", phoneUtil.format(DE_SHORT_NUMBER, PhoneNumberFormat.NATIONAL));
|
487
|
-
assertEquals("+49 1234", phoneUtil.format(DE_SHORT_NUMBER, PhoneNumberFormat.INTERNATIONAL));
|
488
|
-
|
489
|
-
deNumber.clear();
|
490
|
-
deNumber.setCountryCode(49).setNationalNumber(41341234);
|
491
|
-
assertEquals("04134 1234", phoneUtil.format(deNumber, PhoneNumberFormat.NATIONAL));
|
492
|
-
}
|
493
|
-
|
494
|
-
public void testFormatITNumber() {
|
495
|
-
assertEquals("02 3661 8300", phoneUtil.format(IT_NUMBER, PhoneNumberFormat.NATIONAL));
|
496
|
-
assertEquals("+39 02 3661 8300", phoneUtil.format(IT_NUMBER, PhoneNumberFormat.INTERNATIONAL));
|
497
|
-
assertEquals("+390236618300", phoneUtil.format(IT_NUMBER, PhoneNumberFormat.E164));
|
498
|
-
|
499
|
-
assertEquals("345 678 901", phoneUtil.format(IT_MOBILE, PhoneNumberFormat.NATIONAL));
|
500
|
-
assertEquals("+39 345 678 901", phoneUtil.format(IT_MOBILE, PhoneNumberFormat.INTERNATIONAL));
|
501
|
-
assertEquals("+39345678901", phoneUtil.format(IT_MOBILE, PhoneNumberFormat.E164));
|
502
|
-
}
|
503
|
-
|
504
|
-
public void testFormatAUNumber() {
|
505
|
-
assertEquals("02 3661 8300", phoneUtil.format(AU_NUMBER, PhoneNumberFormat.NATIONAL));
|
506
|
-
assertEquals("+61 2 3661 8300", phoneUtil.format(AU_NUMBER, PhoneNumberFormat.INTERNATIONAL));
|
507
|
-
assertEquals("+61236618300", phoneUtil.format(AU_NUMBER, PhoneNumberFormat.E164));
|
508
|
-
|
509
|
-
PhoneNumber auNumber = new PhoneNumber().setCountryCode(61).setNationalNumber(1800123456L);
|
510
|
-
assertEquals("1800 123 456", phoneUtil.format(auNumber, PhoneNumberFormat.NATIONAL));
|
511
|
-
assertEquals("+61 1800 123 456", phoneUtil.format(auNumber, PhoneNumberFormat.INTERNATIONAL));
|
512
|
-
assertEquals("+611800123456", phoneUtil.format(auNumber, PhoneNumberFormat.E164));
|
513
|
-
}
|
514
|
-
|
515
|
-
public void testFormatARNumber() {
|
516
|
-
assertEquals("011 8765-4321", phoneUtil.format(AR_NUMBER, PhoneNumberFormat.NATIONAL));
|
517
|
-
assertEquals("+54 11 8765-4321", phoneUtil.format(AR_NUMBER, PhoneNumberFormat.INTERNATIONAL));
|
518
|
-
assertEquals("+541187654321", phoneUtil.format(AR_NUMBER, PhoneNumberFormat.E164));
|
519
|
-
|
520
|
-
assertEquals("011 15 8765-4321", phoneUtil.format(AR_MOBILE, PhoneNumberFormat.NATIONAL));
|
521
|
-
assertEquals("+54 9 11 8765 4321", phoneUtil.format(AR_MOBILE,
|
522
|
-
PhoneNumberFormat.INTERNATIONAL));
|
523
|
-
assertEquals("+5491187654321", phoneUtil.format(AR_MOBILE, PhoneNumberFormat.E164));
|
524
|
-
}
|
525
|
-
|
526
|
-
public void testFormatMXNumber() {
|
527
|
-
assertEquals("045 234 567 8900", phoneUtil.format(MX_MOBILE1, PhoneNumberFormat.NATIONAL));
|
528
|
-
assertEquals("+52 1 234 567 8900", phoneUtil.format(
|
529
|
-
MX_MOBILE1, PhoneNumberFormat.INTERNATIONAL));
|
530
|
-
assertEquals("+5212345678900", phoneUtil.format(MX_MOBILE1, PhoneNumberFormat.E164));
|
531
|
-
|
532
|
-
assertEquals("045 55 1234 5678", phoneUtil.format(MX_MOBILE2, PhoneNumberFormat.NATIONAL));
|
533
|
-
assertEquals("+52 1 55 1234 5678", phoneUtil.format(
|
534
|
-
MX_MOBILE2, PhoneNumberFormat.INTERNATIONAL));
|
535
|
-
assertEquals("+5215512345678", phoneUtil.format(MX_MOBILE2, PhoneNumberFormat.E164));
|
536
|
-
|
537
|
-
assertEquals("01 33 1234 5678", phoneUtil.format(MX_NUMBER1, PhoneNumberFormat.NATIONAL));
|
538
|
-
assertEquals("+52 33 1234 5678", phoneUtil.format(MX_NUMBER1, PhoneNumberFormat.INTERNATIONAL));
|
539
|
-
assertEquals("+523312345678", phoneUtil.format(MX_NUMBER1, PhoneNumberFormat.E164));
|
540
|
-
|
541
|
-
assertEquals("01 821 123 4567", phoneUtil.format(MX_NUMBER2, PhoneNumberFormat.NATIONAL));
|
542
|
-
assertEquals("+52 821 123 4567", phoneUtil.format(MX_NUMBER2, PhoneNumberFormat.INTERNATIONAL));
|
543
|
-
assertEquals("+528211234567", phoneUtil.format(MX_NUMBER2, PhoneNumberFormat.E164));
|
544
|
-
}
|
545
|
-
|
546
|
-
public void testFormatOutOfCountryCallingNumber() {
|
547
|
-
assertEquals("00 1 900 253 0000",
|
548
|
-
phoneUtil.formatOutOfCountryCallingNumber(US_PREMIUM, RegionCode.DE));
|
549
|
-
|
550
|
-
assertEquals("1 650 253 0000",
|
551
|
-
phoneUtil.formatOutOfCountryCallingNumber(US_NUMBER, RegionCode.BS));
|
552
|
-
|
553
|
-
assertEquals("00 1 650 253 0000",
|
554
|
-
phoneUtil.formatOutOfCountryCallingNumber(US_NUMBER, RegionCode.PL));
|
555
|
-
|
556
|
-
assertEquals("011 44 7912 345 678",
|
557
|
-
phoneUtil.formatOutOfCountryCallingNumber(GB_MOBILE, RegionCode.US));
|
558
|
-
|
559
|
-
assertEquals("00 49 1234",
|
560
|
-
phoneUtil.formatOutOfCountryCallingNumber(DE_SHORT_NUMBER, RegionCode.GB));
|
561
|
-
// Note this number is correctly formatted without national prefix. Most of the numbers that
|
562
|
-
// are treated as invalid numbers by the library are short numbers, and they are usually not
|
563
|
-
// dialed with national prefix.
|
564
|
-
assertEquals("1234", phoneUtil.formatOutOfCountryCallingNumber(DE_SHORT_NUMBER, RegionCode.DE));
|
565
|
-
|
566
|
-
assertEquals("011 39 02 3661 8300",
|
567
|
-
phoneUtil.formatOutOfCountryCallingNumber(IT_NUMBER, RegionCode.US));
|
568
|
-
assertEquals("02 3661 8300",
|
569
|
-
phoneUtil.formatOutOfCountryCallingNumber(IT_NUMBER, RegionCode.IT));
|
570
|
-
assertEquals("+39 02 3661 8300",
|
571
|
-
phoneUtil.formatOutOfCountryCallingNumber(IT_NUMBER, RegionCode.SG));
|
572
|
-
|
573
|
-
assertEquals("6521 8000",
|
574
|
-
phoneUtil.formatOutOfCountryCallingNumber(SG_NUMBER, RegionCode.SG));
|
575
|
-
|
576
|
-
assertEquals("011 54 9 11 8765 4321",
|
577
|
-
phoneUtil.formatOutOfCountryCallingNumber(AR_MOBILE, RegionCode.US));
|
578
|
-
assertEquals("011 800 1234 5678",
|
579
|
-
phoneUtil.formatOutOfCountryCallingNumber(INTERNATIONAL_TOLL_FREE, RegionCode.US));
|
580
|
-
|
581
|
-
PhoneNumber arNumberWithExtn = new PhoneNumber().mergeFrom(AR_MOBILE).setExtension("1234");
|
582
|
-
assertEquals("011 54 9 11 8765 4321 ext. 1234",
|
583
|
-
phoneUtil.formatOutOfCountryCallingNumber(arNumberWithExtn, RegionCode.US));
|
584
|
-
assertEquals("0011 54 9 11 8765 4321 ext. 1234",
|
585
|
-
phoneUtil.formatOutOfCountryCallingNumber(arNumberWithExtn, RegionCode.AU));
|
586
|
-
assertEquals("011 15 8765-4321 ext. 1234",
|
587
|
-
phoneUtil.formatOutOfCountryCallingNumber(arNumberWithExtn, RegionCode.AR));
|
588
|
-
}
|
589
|
-
|
590
|
-
public void testFormatOutOfCountryWithInvalidRegion() {
|
591
|
-
// AQ/Antarctica isn't a valid region code for phone number formatting,
|
592
|
-
// so this falls back to intl formatting.
|
593
|
-
assertEquals("+1 650 253 0000",
|
594
|
-
phoneUtil.formatOutOfCountryCallingNumber(US_NUMBER, RegionCode.AQ));
|
595
|
-
// For region code 001, the out-of-country format always turns into the international format.
|
596
|
-
assertEquals("+1 650 253 0000",
|
597
|
-
phoneUtil.formatOutOfCountryCallingNumber(US_NUMBER, RegionCode.UN001));
|
598
|
-
}
|
599
|
-
|
600
|
-
public void testFormatOutOfCountryWithPreferredIntlPrefix() {
|
601
|
-
// This should use 0011, since that is the preferred international prefix (both 0011 and 0012
|
602
|
-
// are accepted as possible international prefixes in our test metadta.)
|
603
|
-
assertEquals("0011 39 02 3661 8300",
|
604
|
-
phoneUtil.formatOutOfCountryCallingNumber(IT_NUMBER, RegionCode.AU));
|
605
|
-
}
|
606
|
-
|
607
|
-
public void testFormatOutOfCountryKeepingAlphaChars() {
|
608
|
-
PhoneNumber alphaNumericNumber = new PhoneNumber();
|
609
|
-
alphaNumericNumber.setCountryCode(1).setNationalNumber(8007493524L)
|
610
|
-
.setRawInput("1800 six-flag");
|
611
|
-
assertEquals("0011 1 800 SIX-FLAG",
|
612
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.AU));
|
613
|
-
|
614
|
-
alphaNumericNumber.setRawInput("1-800-SIX-flag");
|
615
|
-
assertEquals("0011 1 800-SIX-FLAG",
|
616
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.AU));
|
617
|
-
|
618
|
-
alphaNumericNumber.setRawInput("Call us from UK: 00 1 800 SIX-flag");
|
619
|
-
assertEquals("0011 1 800 SIX-FLAG",
|
620
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.AU));
|
621
|
-
|
622
|
-
alphaNumericNumber.setRawInput("800 SIX-flag");
|
623
|
-
assertEquals("0011 1 800 SIX-FLAG",
|
624
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.AU));
|
625
|
-
|
626
|
-
// Formatting from within the NANPA region.
|
627
|
-
assertEquals("1 800 SIX-FLAG",
|
628
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.US));
|
629
|
-
|
630
|
-
assertEquals("1 800 SIX-FLAG",
|
631
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.BS));
|
632
|
-
|
633
|
-
// Testing that if the raw input doesn't exist, it is formatted using
|
634
|
-
// formatOutOfCountryCallingNumber.
|
635
|
-
alphaNumericNumber.clearRawInput();
|
636
|
-
assertEquals("00 1 800 749 3524",
|
637
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.DE));
|
638
|
-
|
639
|
-
// Testing AU alpha number formatted from Australia.
|
640
|
-
alphaNumericNumber.setCountryCode(61).setNationalNumber(827493524L)
|
641
|
-
.setRawInput("+61 82749-FLAG");
|
642
|
-
// This number should have the national prefix fixed.
|
643
|
-
assertEquals("082749-FLAG",
|
644
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.AU));
|
645
|
-
|
646
|
-
alphaNumericNumber.setRawInput("082749-FLAG");
|
647
|
-
assertEquals("082749-FLAG",
|
648
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.AU));
|
649
|
-
|
650
|
-
alphaNumericNumber.setNationalNumber(18007493524L).setRawInput("1-800-SIX-flag");
|
651
|
-
// This number should not have the national prefix prefixed, in accordance with the override for
|
652
|
-
// this specific formatting rule.
|
653
|
-
assertEquals("1-800-SIX-FLAG",
|
654
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.AU));
|
655
|
-
|
656
|
-
// The metadata should not be permanently changed, since we copied it before modifying patterns.
|
657
|
-
// Here we check this.
|
658
|
-
alphaNumericNumber.setNationalNumber(1800749352L);
|
659
|
-
assertEquals("1800 749 352",
|
660
|
-
phoneUtil.formatOutOfCountryCallingNumber(alphaNumericNumber, RegionCode.AU));
|
661
|
-
|
662
|
-
// Testing a region with multiple international prefixes.
|
663
|
-
assertEquals("+61 1-800-SIX-FLAG",
|
664
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.SG));
|
665
|
-
// Testing the case of calling from a non-supported region.
|
666
|
-
assertEquals("+61 1-800-SIX-FLAG",
|
667
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.AQ));
|
668
|
-
|
669
|
-
// Testing the case with an invalid country calling code.
|
670
|
-
alphaNumericNumber.setCountryCode(0).setNationalNumber(18007493524L)
|
671
|
-
.setRawInput("1-800-SIX-flag");
|
672
|
-
// Uses the raw input only.
|
673
|
-
assertEquals("1-800-SIX-flag",
|
674
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.DE));
|
675
|
-
|
676
|
-
// Testing the case of an invalid alpha number.
|
677
|
-
alphaNumericNumber.setCountryCode(1).setNationalNumber(80749L).setRawInput("180-SIX");
|
678
|
-
// No country-code stripping can be done.
|
679
|
-
assertEquals("00 1 180-SIX",
|
680
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.DE));
|
681
|
-
|
682
|
-
// Testing the case of calling from a non-supported region.
|
683
|
-
alphaNumericNumber.setCountryCode(1).setNationalNumber(80749L).setRawInput("180-SIX");
|
684
|
-
// No country-code stripping can be done since the number is invalid.
|
685
|
-
assertEquals("+1 180-SIX",
|
686
|
-
phoneUtil.formatOutOfCountryKeepingAlphaChars(alphaNumericNumber, RegionCode.AQ));
|
687
|
-
}
|
688
|
-
|
689
|
-
public void testFormatWithCarrierCode() {
|
690
|
-
// We only support this for AR in our test metadata, and only for mobile numbers starting with
|
691
|
-
// certain values.
|
692
|
-
PhoneNumber arMobile = new PhoneNumber().setCountryCode(54).setNationalNumber(92234654321L);
|
693
|
-
assertEquals("02234 65-4321", phoneUtil.format(arMobile, PhoneNumberFormat.NATIONAL));
|
694
|
-
// Here we force 14 as the carrier code.
|
695
|
-
assertEquals("02234 14 65-4321",
|
696
|
-
phoneUtil.formatNationalNumberWithCarrierCode(arMobile, "14"));
|
697
|
-
// Here we force the number to be shown with no carrier code.
|
698
|
-
assertEquals("02234 65-4321",
|
699
|
-
phoneUtil.formatNationalNumberWithCarrierCode(arMobile, ""));
|
700
|
-
// Here the international rule is used, so no carrier code should be present.
|
701
|
-
assertEquals("+5492234654321", phoneUtil.format(arMobile, PhoneNumberFormat.E164));
|
702
|
-
// We don't support this for the US so there should be no change.
|
703
|
-
assertEquals("650 253 0000", phoneUtil.formatNationalNumberWithCarrierCode(US_NUMBER, "15"));
|
704
|
-
|
705
|
-
// Invalid country code should just get the NSN.
|
706
|
-
assertEquals("12345",
|
707
|
-
phoneUtil.formatNationalNumberWithCarrierCode(UNKNOWN_COUNTRY_CODE_NO_RAW_INPUT, "89"));
|
708
|
-
}
|
709
|
-
|
710
|
-
public void testFormatWithPreferredCarrierCode() {
|
711
|
-
// We only support this for AR in our test metadata.
|
712
|
-
PhoneNumber arNumber = new PhoneNumber();
|
713
|
-
arNumber.setCountryCode(54).setNationalNumber(91234125678L);
|
714
|
-
// Test formatting with no preferred carrier code stored in the number itself.
|
715
|
-
assertEquals("01234 15 12-5678",
|
716
|
-
phoneUtil.formatNationalNumberWithPreferredCarrierCode(arNumber, "15"));
|
717
|
-
assertEquals("01234 12-5678",
|
718
|
-
phoneUtil.formatNationalNumberWithPreferredCarrierCode(arNumber, ""));
|
719
|
-
// Test formatting with preferred carrier code present.
|
720
|
-
arNumber.setPreferredDomesticCarrierCode("19");
|
721
|
-
assertEquals("01234 12-5678", phoneUtil.format(arNumber, PhoneNumberFormat.NATIONAL));
|
722
|
-
assertEquals("01234 19 12-5678",
|
723
|
-
phoneUtil.formatNationalNumberWithPreferredCarrierCode(arNumber, "15"));
|
724
|
-
assertEquals("01234 19 12-5678",
|
725
|
-
phoneUtil.formatNationalNumberWithPreferredCarrierCode(arNumber, ""));
|
726
|
-
// When the preferred_domestic_carrier_code is present (even when it contains an empty string),
|
727
|
-
// use it instead of the default carrier code passed in.
|
728
|
-
arNumber.setPreferredDomesticCarrierCode("");
|
729
|
-
assertEquals("01234 12-5678",
|
730
|
-
phoneUtil.formatNationalNumberWithPreferredCarrierCode(arNumber, "15"));
|
731
|
-
// We don't support this for the US so there should be no change.
|
732
|
-
PhoneNumber usNumber = new PhoneNumber();
|
733
|
-
usNumber.setCountryCode(1).setNationalNumber(4241231234L).setPreferredDomesticCarrierCode("99");
|
734
|
-
assertEquals("424 123 1234", phoneUtil.format(usNumber, PhoneNumberFormat.NATIONAL));
|
735
|
-
assertEquals("424 123 1234",
|
736
|
-
phoneUtil.formatNationalNumberWithPreferredCarrierCode(usNumber, "15"));
|
737
|
-
}
|
738
|
-
|
739
|
-
public void testFormatNumberForMobileDialing() {
|
740
|
-
// Numbers are normally dialed in national format in-country, and international format from
|
741
|
-
// outside the country.
|
742
|
-
assertEquals("030123456",
|
743
|
-
phoneUtil.formatNumberForMobileDialing(DE_NUMBER, RegionCode.DE, false));
|
744
|
-
assertEquals("+4930123456",
|
745
|
-
phoneUtil.formatNumberForMobileDialing(DE_NUMBER, RegionCode.CH, false));
|
746
|
-
PhoneNumber deNumberWithExtn = new PhoneNumber().mergeFrom(DE_NUMBER).setExtension("1234");
|
747
|
-
assertEquals("030123456",
|
748
|
-
phoneUtil.formatNumberForMobileDialing(deNumberWithExtn, RegionCode.DE, false));
|
749
|
-
assertEquals("+4930123456",
|
750
|
-
phoneUtil.formatNumberForMobileDialing(deNumberWithExtn, RegionCode.CH, false));
|
751
|
-
|
752
|
-
// US toll free numbers are marked as noInternationalDialling in the test metadata for testing
|
753
|
-
// purposes. For such numbers, we expect nothing to be returned when the region code is not the
|
754
|
-
// same one.
|
755
|
-
assertEquals("800 253 0000",
|
756
|
-
phoneUtil.formatNumberForMobileDialing(US_TOLLFREE, RegionCode.US,
|
757
|
-
true /* keep formatting */));
|
758
|
-
assertEquals("", phoneUtil.formatNumberForMobileDialing(US_TOLLFREE, RegionCode.CN, true));
|
759
|
-
assertEquals("+1 650 253 0000",
|
760
|
-
phoneUtil.formatNumberForMobileDialing(US_NUMBER, RegionCode.US, true));
|
761
|
-
PhoneNumber usNumberWithExtn = new PhoneNumber().mergeFrom(US_NUMBER).setExtension("1234");
|
762
|
-
assertEquals("+1 650 253 0000",
|
763
|
-
phoneUtil.formatNumberForMobileDialing(usNumberWithExtn, RegionCode.US, true));
|
764
|
-
|
765
|
-
assertEquals("8002530000",
|
766
|
-
phoneUtil.formatNumberForMobileDialing(US_TOLLFREE, RegionCode.US,
|
767
|
-
false /* remove formatting */));
|
768
|
-
assertEquals("", phoneUtil.formatNumberForMobileDialing(US_TOLLFREE, RegionCode.CN, false));
|
769
|
-
assertEquals("+16502530000",
|
770
|
-
phoneUtil.formatNumberForMobileDialing(US_NUMBER, RegionCode.US, false));
|
771
|
-
assertEquals("+16502530000",
|
772
|
-
phoneUtil.formatNumberForMobileDialing(usNumberWithExtn, RegionCode.US, false));
|
773
|
-
|
774
|
-
// An invalid US number, which is one digit too long.
|
775
|
-
assertEquals("+165025300001",
|
776
|
-
phoneUtil.formatNumberForMobileDialing(US_LONG_NUMBER, RegionCode.US, false));
|
777
|
-
assertEquals("+1 65025300001",
|
778
|
-
phoneUtil.formatNumberForMobileDialing(US_LONG_NUMBER, RegionCode.US, true));
|
779
|
-
|
780
|
-
// Star numbers. In real life they appear in Israel, but we have them in JP in our test
|
781
|
-
// metadata.
|
782
|
-
assertEquals("*2345",
|
783
|
-
phoneUtil.formatNumberForMobileDialing(JP_STAR_NUMBER, RegionCode.JP, false));
|
784
|
-
assertEquals("*2345",
|
785
|
-
phoneUtil.formatNumberForMobileDialing(JP_STAR_NUMBER, RegionCode.JP, true));
|
786
|
-
|
787
|
-
assertEquals("+80012345678",
|
788
|
-
phoneUtil.formatNumberForMobileDialing(INTERNATIONAL_TOLL_FREE, RegionCode.JP, false));
|
789
|
-
assertEquals("+800 1234 5678",
|
790
|
-
phoneUtil.formatNumberForMobileDialing(INTERNATIONAL_TOLL_FREE, RegionCode.JP, true));
|
791
|
-
|
792
|
-
// UAE numbers beginning with 600 (classified as UAN) need to be dialled without +971 locally.
|
793
|
-
assertEquals("+971600123456",
|
794
|
-
phoneUtil.formatNumberForMobileDialing(AE_UAN, RegionCode.JP, false));
|
795
|
-
assertEquals("600123456",
|
796
|
-
phoneUtil.formatNumberForMobileDialing(AE_UAN, RegionCode.AE, false));
|
797
|
-
|
798
|
-
assertEquals("+523312345678",
|
799
|
-
phoneUtil.formatNumberForMobileDialing(MX_NUMBER1, RegionCode.MX, false));
|
800
|
-
assertEquals("+523312345678",
|
801
|
-
phoneUtil.formatNumberForMobileDialing(MX_NUMBER1, RegionCode.US, false));
|
802
|
-
|
803
|
-
// Non-geographical numbers should always be dialed in international format.
|
804
|
-
assertEquals("+80012345678",
|
805
|
-
phoneUtil.formatNumberForMobileDialing(INTERNATIONAL_TOLL_FREE, RegionCode.US, false));
|
806
|
-
assertEquals("+80012345678",
|
807
|
-
phoneUtil.formatNumberForMobileDialing(INTERNATIONAL_TOLL_FREE, RegionCode.UN001, false));
|
808
|
-
|
809
|
-
// Test that a short number is formatted correctly for mobile dialing within the region,
|
810
|
-
// and is not diallable from outside the region.
|
811
|
-
PhoneNumber deShortNumber = new PhoneNumber().setCountryCode(49).setNationalNumber(123L);
|
812
|
-
assertEquals("123", phoneUtil.formatNumberForMobileDialing(deShortNumber, RegionCode.DE,
|
813
|
-
false));
|
814
|
-
assertEquals("", phoneUtil.formatNumberForMobileDialing(deShortNumber, RegionCode.IT, false));
|
815
|
-
|
816
|
-
// Test the special logic for Hungary, where the national prefix must be added before dialing
|
817
|
-
// from a mobile phone for regular length numbers, but not for short numbers.
|
818
|
-
PhoneNumber huRegularNumber = new PhoneNumber().setCountryCode(36)
|
819
|
-
.setNationalNumber(301234567L);
|
820
|
-
assertEquals("06301234567", phoneUtil.formatNumberForMobileDialing(huRegularNumber,
|
821
|
-
RegionCode.HU, false));
|
822
|
-
assertEquals("+36301234567", phoneUtil.formatNumberForMobileDialing(huRegularNumber,
|
823
|
-
RegionCode.JP, false));
|
824
|
-
PhoneNumber huShortNumber = new PhoneNumber().setCountryCode(36).setNationalNumber(104L);
|
825
|
-
assertEquals("104", phoneUtil.formatNumberForMobileDialing(huShortNumber, RegionCode.HU,
|
826
|
-
false));
|
827
|
-
assertEquals("", phoneUtil.formatNumberForMobileDialing(huShortNumber, RegionCode.JP, false));
|
828
|
-
|
829
|
-
// Test the special logic for NANPA countries, for which regular length phone numbers are always
|
830
|
-
// output in international format, but short numbers are in national format.
|
831
|
-
assertEquals("+16502530000", phoneUtil.formatNumberForMobileDialing(US_NUMBER,
|
832
|
-
RegionCode.US, false));
|
833
|
-
assertEquals("+16502530000", phoneUtil.formatNumberForMobileDialing(US_NUMBER,
|
834
|
-
RegionCode.CA, false));
|
835
|
-
assertEquals("+16502530000", phoneUtil.formatNumberForMobileDialing(US_NUMBER,
|
836
|
-
RegionCode.BR, false));
|
837
|
-
PhoneNumber usShortNumber = new PhoneNumber().setCountryCode(1).setNationalNumber(911L);
|
838
|
-
assertEquals("911", phoneUtil.formatNumberForMobileDialing(usShortNumber, RegionCode.US,
|
839
|
-
false));
|
840
|
-
assertEquals("", phoneUtil.formatNumberForMobileDialing(usShortNumber, RegionCode.CA, false));
|
841
|
-
assertEquals("", phoneUtil.formatNumberForMobileDialing(usShortNumber, RegionCode.BR, false));
|
842
|
-
|
843
|
-
// Test that the Australian emergency number 000 is formatted correctly.
|
844
|
-
PhoneNumber auNumber = new PhoneNumber().setCountryCode(61).setNationalNumber(0L)
|
845
|
-
.setItalianLeadingZero(true).setNumberOfLeadingZeros(2);
|
846
|
-
assertEquals("000", phoneUtil.formatNumberForMobileDialing(auNumber, RegionCode.AU, false));
|
847
|
-
assertEquals("", phoneUtil.formatNumberForMobileDialing(auNumber, RegionCode.NZ, false));
|
848
|
-
}
|
849
|
-
|
850
|
-
public void testFormatByPattern() {
|
851
|
-
NumberFormat newNumFormat = new NumberFormat();
|
852
|
-
newNumFormat.pattern = "(\\d{3})(\\d{3})(\\d{4})";
|
853
|
-
newNumFormat.format = "($1) $2-$3";
|
854
|
-
List<NumberFormat> newNumberFormats = new ArrayList<NumberFormat>();
|
855
|
-
newNumberFormats.add(newNumFormat);
|
856
|
-
|
857
|
-
assertEquals("(650) 253-0000", phoneUtil.formatByPattern(US_NUMBER, PhoneNumberFormat.NATIONAL,
|
858
|
-
newNumberFormats));
|
859
|
-
assertEquals("+1 (650) 253-0000", phoneUtil.formatByPattern(US_NUMBER,
|
860
|
-
PhoneNumberFormat.INTERNATIONAL,
|
861
|
-
newNumberFormats));
|
862
|
-
assertEquals("tel:+1-650-253-0000", phoneUtil.formatByPattern(US_NUMBER,
|
863
|
-
PhoneNumberFormat.RFC3966,
|
864
|
-
newNumberFormats));
|
865
|
-
|
866
|
-
// $NP is set to '1' for the US. Here we check that for other NANPA countries the US rules are
|
867
|
-
// followed.
|
868
|
-
newNumFormat.nationalPrefixFormattingRule = "$NP ($FG)";
|
869
|
-
newNumFormat.format = "$1 $2-$3";
|
870
|
-
assertEquals("1 (242) 365-1234",
|
871
|
-
phoneUtil.formatByPattern(BS_NUMBER, PhoneNumberFormat.NATIONAL,
|
872
|
-
newNumberFormats));
|
873
|
-
assertEquals("+1 242 365-1234",
|
874
|
-
phoneUtil.formatByPattern(BS_NUMBER, PhoneNumberFormat.INTERNATIONAL,
|
875
|
-
newNumberFormats));
|
876
|
-
|
877
|
-
newNumFormat.pattern = "(\\d{2})(\\d{5})(\\d{3})";
|
878
|
-
newNumFormat.format = "$1-$2 $3";
|
879
|
-
newNumberFormats.set(0, newNumFormat);
|
880
|
-
|
881
|
-
assertEquals("02-36618 300",
|
882
|
-
phoneUtil.formatByPattern(IT_NUMBER, PhoneNumberFormat.NATIONAL,
|
883
|
-
newNumberFormats));
|
884
|
-
assertEquals("+39 02-36618 300",
|
885
|
-
phoneUtil.formatByPattern(IT_NUMBER, PhoneNumberFormat.INTERNATIONAL,
|
886
|
-
newNumberFormats));
|
887
|
-
|
888
|
-
newNumFormat.nationalPrefixFormattingRule = "$NP$FG";
|
889
|
-
newNumFormat.pattern = "(\\d{2})(\\d{4})(\\d{4})";
|
890
|
-
newNumFormat.format = "$1 $2 $3";
|
891
|
-
newNumberFormats.set(0, newNumFormat);
|
892
|
-
assertEquals("020 7031 3000",
|
893
|
-
phoneUtil.formatByPattern(GB_NUMBER, PhoneNumberFormat.NATIONAL,
|
894
|
-
newNumberFormats));
|
895
|
-
|
896
|
-
newNumFormat.nationalPrefixFormattingRule = "($NP$FG)";
|
897
|
-
assertEquals("(020) 7031 3000",
|
898
|
-
phoneUtil.formatByPattern(GB_NUMBER, PhoneNumberFormat.NATIONAL,
|
899
|
-
newNumberFormats));
|
900
|
-
|
901
|
-
newNumFormat.nationalPrefixFormattingRule = "";
|
902
|
-
assertEquals("20 7031 3000",
|
903
|
-
phoneUtil.formatByPattern(GB_NUMBER, PhoneNumberFormat.NATIONAL,
|
904
|
-
newNumberFormats));
|
905
|
-
|
906
|
-
assertEquals("+44 20 7031 3000",
|
907
|
-
phoneUtil.formatByPattern(GB_NUMBER, PhoneNumberFormat.INTERNATIONAL,
|
908
|
-
newNumberFormats));
|
909
|
-
}
|
910
|
-
|
911
|
-
public void testFormatE164Number() {
|
912
|
-
assertEquals("+16502530000", phoneUtil.format(US_NUMBER, PhoneNumberFormat.E164));
|
913
|
-
assertEquals("+4930123456", phoneUtil.format(DE_NUMBER, PhoneNumberFormat.E164));
|
914
|
-
assertEquals("+80012345678", phoneUtil.format(INTERNATIONAL_TOLL_FREE, PhoneNumberFormat.E164));
|
915
|
-
}
|
916
|
-
|
917
|
-
public void testFormatNumberWithExtension() {
|
918
|
-
PhoneNumber nzNumber = new PhoneNumber().mergeFrom(NZ_NUMBER).setExtension("1234");
|
919
|
-
// Uses default extension prefix:
|
920
|
-
assertEquals("03-331 6005 ext. 1234", phoneUtil.format(nzNumber, PhoneNumberFormat.NATIONAL));
|
921
|
-
// Uses RFC 3966 syntax.
|
922
|
-
assertEquals("tel:+64-3-331-6005;ext=1234",
|
923
|
-
phoneUtil.format(nzNumber, PhoneNumberFormat.RFC3966));
|
924
|
-
// Extension prefix overridden in the territory information for the US:
|
925
|
-
PhoneNumber usNumberWithExtension = new PhoneNumber().mergeFrom(US_NUMBER).setExtension("4567");
|
926
|
-
assertEquals("650 253 0000 extn. 4567", phoneUtil.format(usNumberWithExtension,
|
927
|
-
PhoneNumberFormat.NATIONAL));
|
928
|
-
}
|
929
|
-
|
930
|
-
public void testFormatInOriginalFormat() throws Exception {
|
931
|
-
PhoneNumber number1 = phoneUtil.parseAndKeepRawInput("+442087654321", RegionCode.GB);
|
932
|
-
assertEquals("+44 20 8765 4321", phoneUtil.formatInOriginalFormat(number1, RegionCode.GB));
|
933
|
-
|
934
|
-
PhoneNumber number2 = phoneUtil.parseAndKeepRawInput("02087654321", RegionCode.GB);
|
935
|
-
assertEquals("(020) 8765 4321", phoneUtil.formatInOriginalFormat(number2, RegionCode.GB));
|
936
|
-
|
937
|
-
PhoneNumber number3 = phoneUtil.parseAndKeepRawInput("011442087654321", RegionCode.US);
|
938
|
-
assertEquals("011 44 20 8765 4321", phoneUtil.formatInOriginalFormat(number3, RegionCode.US));
|
939
|
-
|
940
|
-
PhoneNumber number4 = phoneUtil.parseAndKeepRawInput("442087654321", RegionCode.GB);
|
941
|
-
assertEquals("44 20 8765 4321", phoneUtil.formatInOriginalFormat(number4, RegionCode.GB));
|
942
|
-
|
943
|
-
PhoneNumber number5 = phoneUtil.parse("+442087654321", RegionCode.GB);
|
944
|
-
assertEquals("(020) 8765 4321", phoneUtil.formatInOriginalFormat(number5, RegionCode.GB));
|
945
|
-
|
946
|
-
// Invalid numbers that we have a formatting pattern for should be formatted properly. Note area
|
947
|
-
// codes starting with 7 are intentionally excluded in the test metadata for testing purposes.
|
948
|
-
PhoneNumber number6 = phoneUtil.parseAndKeepRawInput("7345678901", RegionCode.US);
|
949
|
-
assertEquals("734 567 8901", phoneUtil.formatInOriginalFormat(number6, RegionCode.US));
|
950
|
-
|
951
|
-
// US is not a leading zero country, and the presence of the leading zero leads us to format the
|
952
|
-
// number using raw_input.
|
953
|
-
PhoneNumber number7 = phoneUtil.parseAndKeepRawInput("0734567 8901", RegionCode.US);
|
954
|
-
assertEquals("0734567 8901", phoneUtil.formatInOriginalFormat(number7, RegionCode.US));
|
955
|
-
|
956
|
-
// This number is valid, but we don't have a formatting pattern for it. Fall back to the raw
|
957
|
-
// input.
|
958
|
-
PhoneNumber number8 = phoneUtil.parseAndKeepRawInput("02-4567-8900", RegionCode.KR);
|
959
|
-
assertEquals("02-4567-8900", phoneUtil.formatInOriginalFormat(number8, RegionCode.KR));
|
960
|
-
|
961
|
-
PhoneNumber number9 = phoneUtil.parseAndKeepRawInput("01180012345678", RegionCode.US);
|
962
|
-
assertEquals("011 800 1234 5678", phoneUtil.formatInOriginalFormat(number9, RegionCode.US));
|
963
|
-
|
964
|
-
PhoneNumber number10 = phoneUtil.parseAndKeepRawInput("+80012345678", RegionCode.KR);
|
965
|
-
assertEquals("+800 1234 5678", phoneUtil.formatInOriginalFormat(number10, RegionCode.KR));
|
966
|
-
|
967
|
-
// US local numbers are formatted correctly, as we have formatting patterns for them.
|
968
|
-
PhoneNumber localNumberUS = phoneUtil.parseAndKeepRawInput("2530000", RegionCode.US);
|
969
|
-
assertEquals("253 0000", phoneUtil.formatInOriginalFormat(localNumberUS, RegionCode.US));
|
970
|
-
|
971
|
-
PhoneNumber numberWithNationalPrefixUS =
|
972
|
-
phoneUtil.parseAndKeepRawInput("18003456789", RegionCode.US);
|
973
|
-
assertEquals("1 800 345 6789",
|
974
|
-
phoneUtil.formatInOriginalFormat(numberWithNationalPrefixUS, RegionCode.US));
|
975
|
-
|
976
|
-
PhoneNumber numberWithoutNationalPrefixGB =
|
977
|
-
phoneUtil.parseAndKeepRawInput("2087654321", RegionCode.GB);
|
978
|
-
assertEquals("20 8765 4321",
|
979
|
-
phoneUtil.formatInOriginalFormat(numberWithoutNationalPrefixGB, RegionCode.GB));
|
980
|
-
// Make sure no metadata is modified as a result of the previous function call.
|
981
|
-
assertEquals("(020) 8765 4321", phoneUtil.formatInOriginalFormat(number5, RegionCode.GB));
|
982
|
-
|
983
|
-
PhoneNumber numberWithNationalPrefixMX =
|
984
|
-
phoneUtil.parseAndKeepRawInput("013312345678", RegionCode.MX);
|
985
|
-
assertEquals("01 33 1234 5678",
|
986
|
-
phoneUtil.formatInOriginalFormat(numberWithNationalPrefixMX, RegionCode.MX));
|
987
|
-
|
988
|
-
PhoneNumber numberWithoutNationalPrefixMX =
|
989
|
-
phoneUtil.parseAndKeepRawInput("3312345678", RegionCode.MX);
|
990
|
-
assertEquals("33 1234 5678",
|
991
|
-
phoneUtil.formatInOriginalFormat(numberWithoutNationalPrefixMX, RegionCode.MX));
|
992
|
-
|
993
|
-
PhoneNumber italianFixedLineNumber =
|
994
|
-
phoneUtil.parseAndKeepRawInput("0212345678", RegionCode.IT);
|
995
|
-
assertEquals("02 1234 5678",
|
996
|
-
phoneUtil.formatInOriginalFormat(italianFixedLineNumber, RegionCode.IT));
|
997
|
-
|
998
|
-
PhoneNumber numberWithNationalPrefixJP =
|
999
|
-
phoneUtil.parseAndKeepRawInput("00777012", RegionCode.JP);
|
1000
|
-
assertEquals("0077-7012",
|
1001
|
-
phoneUtil.formatInOriginalFormat(numberWithNationalPrefixJP, RegionCode.JP));
|
1002
|
-
|
1003
|
-
PhoneNumber numberWithoutNationalPrefixJP =
|
1004
|
-
phoneUtil.parseAndKeepRawInput("0777012", RegionCode.JP);
|
1005
|
-
assertEquals("0777012",
|
1006
|
-
phoneUtil.formatInOriginalFormat(numberWithoutNationalPrefixJP, RegionCode.JP));
|
1007
|
-
|
1008
|
-
PhoneNumber numberWithCarrierCodeBR =
|
1009
|
-
phoneUtil.parseAndKeepRawInput("012 3121286979", RegionCode.BR);
|
1010
|
-
assertEquals("012 3121286979",
|
1011
|
-
phoneUtil.formatInOriginalFormat(numberWithCarrierCodeBR, RegionCode.BR));
|
1012
|
-
|
1013
|
-
// The default national prefix used in this case is 045. When a number with national prefix 044
|
1014
|
-
// is entered, we return the raw input as we don't want to change the number entered.
|
1015
|
-
PhoneNumber numberWithNationalPrefixMX1 =
|
1016
|
-
phoneUtil.parseAndKeepRawInput("044(33)1234-5678", RegionCode.MX);
|
1017
|
-
assertEquals("044(33)1234-5678",
|
1018
|
-
phoneUtil.formatInOriginalFormat(numberWithNationalPrefixMX1, RegionCode.MX));
|
1019
|
-
|
1020
|
-
PhoneNumber numberWithNationalPrefixMX2 =
|
1021
|
-
phoneUtil.parseAndKeepRawInput("045(33)1234-5678", RegionCode.MX);
|
1022
|
-
assertEquals("045 33 1234 5678",
|
1023
|
-
phoneUtil.formatInOriginalFormat(numberWithNationalPrefixMX2, RegionCode.MX));
|
1024
|
-
|
1025
|
-
// The default international prefix used in this case is 0011. When a number with international
|
1026
|
-
// prefix 0012 is entered, we return the raw input as we don't want to change the number
|
1027
|
-
// entered.
|
1028
|
-
PhoneNumber outOfCountryNumberFromAU1 =
|
1029
|
-
phoneUtil.parseAndKeepRawInput("0012 16502530000", RegionCode.AU);
|
1030
|
-
assertEquals("0012 16502530000",
|
1031
|
-
phoneUtil.formatInOriginalFormat(outOfCountryNumberFromAU1, RegionCode.AU));
|
1032
|
-
|
1033
|
-
PhoneNumber outOfCountryNumberFromAU2 =
|
1034
|
-
phoneUtil.parseAndKeepRawInput("0011 16502530000", RegionCode.AU);
|
1035
|
-
assertEquals("0011 1 650 253 0000",
|
1036
|
-
phoneUtil.formatInOriginalFormat(outOfCountryNumberFromAU2, RegionCode.AU));
|
1037
|
-
|
1038
|
-
// Test the star sign is not removed from or added to the original input by this method.
|
1039
|
-
PhoneNumber starNumber = phoneUtil.parseAndKeepRawInput("*1234", RegionCode.JP);
|
1040
|
-
assertEquals("*1234", phoneUtil.formatInOriginalFormat(starNumber, RegionCode.JP));
|
1041
|
-
PhoneNumber numberWithoutStar = phoneUtil.parseAndKeepRawInput("1234", RegionCode.JP);
|
1042
|
-
assertEquals("1234", phoneUtil.formatInOriginalFormat(numberWithoutStar, RegionCode.JP));
|
1043
|
-
|
1044
|
-
// Test an invalid national number without raw input is just formatted as the national number.
|
1045
|
-
assertEquals("650253000",
|
1046
|
-
phoneUtil.formatInOriginalFormat(US_SHORT_BY_ONE_NUMBER, RegionCode.US));
|
1047
|
-
}
|
1048
|
-
|
1049
|
-
public void testIsPremiumRate() {
|
1050
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE, phoneUtil.getNumberType(US_PREMIUM));
|
1051
|
-
|
1052
|
-
PhoneNumber premiumRateNumber = new PhoneNumber();
|
1053
|
-
premiumRateNumber.setCountryCode(39).setNationalNumber(892123L);
|
1054
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE,
|
1055
|
-
phoneUtil.getNumberType(premiumRateNumber));
|
1056
|
-
|
1057
|
-
premiumRateNumber.clear();
|
1058
|
-
premiumRateNumber.setCountryCode(44).setNationalNumber(9187654321L);
|
1059
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE,
|
1060
|
-
phoneUtil.getNumberType(premiumRateNumber));
|
1061
|
-
|
1062
|
-
premiumRateNumber.clear();
|
1063
|
-
premiumRateNumber.setCountryCode(49).setNationalNumber(9001654321L);
|
1064
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE,
|
1065
|
-
phoneUtil.getNumberType(premiumRateNumber));
|
1066
|
-
|
1067
|
-
premiumRateNumber.clear();
|
1068
|
-
premiumRateNumber.setCountryCode(49).setNationalNumber(90091234567L);
|
1069
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE,
|
1070
|
-
phoneUtil.getNumberType(premiumRateNumber));
|
1071
|
-
|
1072
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.PREMIUM_RATE,
|
1073
|
-
phoneUtil.getNumberType(UNIVERSAL_PREMIUM_RATE));
|
1074
|
-
}
|
1075
|
-
|
1076
|
-
public void testIsTollFree() {
|
1077
|
-
PhoneNumber tollFreeNumber = new PhoneNumber();
|
1078
|
-
|
1079
|
-
tollFreeNumber.setCountryCode(1).setNationalNumber(8881234567L);
|
1080
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.TOLL_FREE,
|
1081
|
-
phoneUtil.getNumberType(tollFreeNumber));
|
1082
|
-
|
1083
|
-
tollFreeNumber.clear();
|
1084
|
-
tollFreeNumber.setCountryCode(39).setNationalNumber(803123L);
|
1085
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.TOLL_FREE,
|
1086
|
-
phoneUtil.getNumberType(tollFreeNumber));
|
1087
|
-
|
1088
|
-
tollFreeNumber.clear();
|
1089
|
-
tollFreeNumber.setCountryCode(44).setNationalNumber(8012345678L);
|
1090
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.TOLL_FREE,
|
1091
|
-
phoneUtil.getNumberType(tollFreeNumber));
|
1092
|
-
|
1093
|
-
tollFreeNumber.clear();
|
1094
|
-
tollFreeNumber.setCountryCode(49).setNationalNumber(8001234567L);
|
1095
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.TOLL_FREE,
|
1096
|
-
phoneUtil.getNumberType(tollFreeNumber));
|
1097
|
-
|
1098
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.TOLL_FREE,
|
1099
|
-
phoneUtil.getNumberType(INTERNATIONAL_TOLL_FREE));
|
1100
|
-
}
|
1101
|
-
|
1102
|
-
public void testIsMobile() {
|
1103
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.MOBILE, phoneUtil.getNumberType(BS_MOBILE));
|
1104
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.MOBILE, phoneUtil.getNumberType(GB_MOBILE));
|
1105
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.MOBILE, phoneUtil.getNumberType(IT_MOBILE));
|
1106
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.MOBILE, phoneUtil.getNumberType(AR_MOBILE));
|
1107
|
-
|
1108
|
-
PhoneNumber mobileNumber = new PhoneNumber();
|
1109
|
-
mobileNumber.setCountryCode(49).setNationalNumber(15123456789L);
|
1110
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.MOBILE, phoneUtil.getNumberType(mobileNumber));
|
1111
|
-
}
|
1112
|
-
|
1113
|
-
public void testIsFixedLine() {
|
1114
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.FIXED_LINE, phoneUtil.getNumberType(BS_NUMBER));
|
1115
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.FIXED_LINE, phoneUtil.getNumberType(IT_NUMBER));
|
1116
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.FIXED_LINE, phoneUtil.getNumberType(GB_NUMBER));
|
1117
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.FIXED_LINE, phoneUtil.getNumberType(DE_NUMBER));
|
1118
|
-
}
|
1119
|
-
|
1120
|
-
public void testIsFixedLineAndMobile() {
|
1121
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.FIXED_LINE_OR_MOBILE,
|
1122
|
-
phoneUtil.getNumberType(US_NUMBER));
|
1123
|
-
|
1124
|
-
PhoneNumber fixedLineAndMobileNumber = new PhoneNumber().
|
1125
|
-
setCountryCode(54).setNationalNumber(1987654321L);
|
1126
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.FIXED_LINE_OR_MOBILE,
|
1127
|
-
phoneUtil.getNumberType(fixedLineAndMobileNumber));
|
1128
|
-
}
|
1129
|
-
|
1130
|
-
public void testIsSharedCost() {
|
1131
|
-
PhoneNumber gbNumber = new PhoneNumber();
|
1132
|
-
gbNumber.setCountryCode(44).setNationalNumber(8431231234L);
|
1133
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.SHARED_COST, phoneUtil.getNumberType(gbNumber));
|
1134
|
-
}
|
1135
|
-
|
1136
|
-
public void testIsVoip() {
|
1137
|
-
PhoneNumber gbNumber = new PhoneNumber();
|
1138
|
-
gbNumber.setCountryCode(44).setNationalNumber(5631231234L);
|
1139
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.VOIP, phoneUtil.getNumberType(gbNumber));
|
1140
|
-
}
|
1141
|
-
|
1142
|
-
public void testIsPersonalNumber() {
|
1143
|
-
PhoneNumber gbNumber = new PhoneNumber();
|
1144
|
-
gbNumber.setCountryCode(44).setNationalNumber(7031231234L);
|
1145
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.PERSONAL_NUMBER,
|
1146
|
-
phoneUtil.getNumberType(gbNumber));
|
1147
|
-
}
|
1148
|
-
|
1149
|
-
public void testIsUnknown() {
|
1150
|
-
// Invalid numbers should be of type UNKNOWN.
|
1151
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.UNKNOWN, phoneUtil.getNumberType(US_LOCAL_NUMBER));
|
1152
|
-
}
|
1153
|
-
|
1154
|
-
public void testIsValidNumber() {
|
1155
|
-
assertTrue(phoneUtil.isValidNumber(US_NUMBER));
|
1156
|
-
assertTrue(phoneUtil.isValidNumber(IT_NUMBER));
|
1157
|
-
assertTrue(phoneUtil.isValidNumber(GB_MOBILE));
|
1158
|
-
assertTrue(phoneUtil.isValidNumber(INTERNATIONAL_TOLL_FREE));
|
1159
|
-
assertTrue(phoneUtil.isValidNumber(UNIVERSAL_PREMIUM_RATE));
|
1160
|
-
|
1161
|
-
PhoneNumber nzNumber = new PhoneNumber().setCountryCode(64).setNationalNumber(21387835L);
|
1162
|
-
assertTrue(phoneUtil.isValidNumber(nzNumber));
|
1163
|
-
}
|
1164
|
-
|
1165
|
-
public void testIsValidForRegion() {
|
1166
|
-
// This number is valid for the Bahamas, but is not a valid US number.
|
1167
|
-
assertTrue(phoneUtil.isValidNumber(BS_NUMBER));
|
1168
|
-
assertTrue(phoneUtil.isValidNumberForRegion(BS_NUMBER, RegionCode.BS));
|
1169
|
-
assertFalse(phoneUtil.isValidNumberForRegion(BS_NUMBER, RegionCode.US));
|
1170
|
-
PhoneNumber bsInvalidNumber =
|
1171
|
-
new PhoneNumber().setCountryCode(1).setNationalNumber(2421232345L);
|
1172
|
-
// This number is no longer valid.
|
1173
|
-
assertFalse(phoneUtil.isValidNumber(bsInvalidNumber));
|
1174
|
-
|
1175
|
-
// La Mayotte and Reunion use 'leadingDigits' to differentiate them.
|
1176
|
-
PhoneNumber reNumber = new PhoneNumber();
|
1177
|
-
reNumber.setCountryCode(262).setNationalNumber(262123456L);
|
1178
|
-
assertTrue(phoneUtil.isValidNumber(reNumber));
|
1179
|
-
assertTrue(phoneUtil.isValidNumberForRegion(reNumber, RegionCode.RE));
|
1180
|
-
assertFalse(phoneUtil.isValidNumberForRegion(reNumber, RegionCode.YT));
|
1181
|
-
// Now change the number to be a number for La Mayotte.
|
1182
|
-
reNumber.setNationalNumber(269601234L);
|
1183
|
-
assertTrue(phoneUtil.isValidNumberForRegion(reNumber, RegionCode.YT));
|
1184
|
-
assertFalse(phoneUtil.isValidNumberForRegion(reNumber, RegionCode.RE));
|
1185
|
-
// This number is no longer valid for La Reunion.
|
1186
|
-
reNumber.setNationalNumber(269123456L);
|
1187
|
-
assertFalse(phoneUtil.isValidNumberForRegion(reNumber, RegionCode.YT));
|
1188
|
-
assertFalse(phoneUtil.isValidNumberForRegion(reNumber, RegionCode.RE));
|
1189
|
-
assertFalse(phoneUtil.isValidNumber(reNumber));
|
1190
|
-
// However, it should be recognised as from La Mayotte, since it is valid for this region.
|
1191
|
-
assertEquals(RegionCode.YT, phoneUtil.getRegionCodeForNumber(reNumber));
|
1192
|
-
// This number is valid in both places.
|
1193
|
-
reNumber.setNationalNumber(800123456L);
|
1194
|
-
assertTrue(phoneUtil.isValidNumberForRegion(reNumber, RegionCode.YT));
|
1195
|
-
assertTrue(phoneUtil.isValidNumberForRegion(reNumber, RegionCode.RE));
|
1196
|
-
assertTrue(phoneUtil.isValidNumberForRegion(INTERNATIONAL_TOLL_FREE, RegionCode.UN001));
|
1197
|
-
assertFalse(phoneUtil.isValidNumberForRegion(INTERNATIONAL_TOLL_FREE, RegionCode.US));
|
1198
|
-
assertFalse(phoneUtil.isValidNumberForRegion(INTERNATIONAL_TOLL_FREE, RegionCode.ZZ));
|
1199
|
-
|
1200
|
-
PhoneNumber invalidNumber = new PhoneNumber();
|
1201
|
-
// Invalid country calling codes.
|
1202
|
-
invalidNumber.setCountryCode(3923).setNationalNumber(2366L);
|
1203
|
-
assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.ZZ));
|
1204
|
-
assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.UN001));
|
1205
|
-
invalidNumber.setCountryCode(0);
|
1206
|
-
assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.UN001));
|
1207
|
-
assertFalse(phoneUtil.isValidNumberForRegion(invalidNumber, RegionCode.ZZ));
|
1208
|
-
}
|
1209
|
-
|
1210
|
-
public void testIsNotValidNumber() {
|
1211
|
-
assertFalse(phoneUtil.isValidNumber(US_LOCAL_NUMBER));
|
1212
|
-
|
1213
|
-
PhoneNumber invalidNumber = new PhoneNumber();
|
1214
|
-
invalidNumber.setCountryCode(39).setNationalNumber(23661830000L).setItalianLeadingZero(true);
|
1215
|
-
assertFalse(phoneUtil.isValidNumber(invalidNumber));
|
1216
|
-
|
1217
|
-
invalidNumber.clear();
|
1218
|
-
invalidNumber.setCountryCode(44).setNationalNumber(791234567L);
|
1219
|
-
assertFalse(phoneUtil.isValidNumber(invalidNumber));
|
1220
|
-
|
1221
|
-
invalidNumber.clear();
|
1222
|
-
invalidNumber.setCountryCode(49).setNationalNumber(1234L);
|
1223
|
-
assertFalse(phoneUtil.isValidNumber(invalidNumber));
|
1224
|
-
|
1225
|
-
invalidNumber.clear();
|
1226
|
-
invalidNumber.setCountryCode(64).setNationalNumber(3316005L);
|
1227
|
-
assertFalse(phoneUtil.isValidNumber(invalidNumber));
|
1228
|
-
|
1229
|
-
invalidNumber.clear();
|
1230
|
-
// Invalid country calling codes.
|
1231
|
-
invalidNumber.setCountryCode(3923).setNationalNumber(2366L);
|
1232
|
-
assertFalse(phoneUtil.isValidNumber(invalidNumber));
|
1233
|
-
invalidNumber.setCountryCode(0);
|
1234
|
-
assertFalse(phoneUtil.isValidNumber(invalidNumber));
|
1235
|
-
|
1236
|
-
assertFalse(phoneUtil.isValidNumber(INTERNATIONAL_TOLL_FREE_TOO_LONG));
|
1237
|
-
}
|
1238
|
-
|
1239
|
-
public void testGetRegionCodeForCountryCode() {
|
1240
|
-
assertEquals(RegionCode.US, phoneUtil.getRegionCodeForCountryCode(1));
|
1241
|
-
assertEquals(RegionCode.GB, phoneUtil.getRegionCodeForCountryCode(44));
|
1242
|
-
assertEquals(RegionCode.DE, phoneUtil.getRegionCodeForCountryCode(49));
|
1243
|
-
assertEquals(RegionCode.UN001, phoneUtil.getRegionCodeForCountryCode(800));
|
1244
|
-
assertEquals(RegionCode.UN001, phoneUtil.getRegionCodeForCountryCode(979));
|
1245
|
-
}
|
1246
|
-
|
1247
|
-
public void testGetRegionCodeForNumber() {
|
1248
|
-
assertEquals(RegionCode.BS, phoneUtil.getRegionCodeForNumber(BS_NUMBER));
|
1249
|
-
assertEquals(RegionCode.US, phoneUtil.getRegionCodeForNumber(US_NUMBER));
|
1250
|
-
assertEquals(RegionCode.GB, phoneUtil.getRegionCodeForNumber(GB_MOBILE));
|
1251
|
-
assertEquals(RegionCode.UN001, phoneUtil.getRegionCodeForNumber(INTERNATIONAL_TOLL_FREE));
|
1252
|
-
assertEquals(RegionCode.UN001, phoneUtil.getRegionCodeForNumber(UNIVERSAL_PREMIUM_RATE));
|
1253
|
-
}
|
1254
|
-
|
1255
|
-
public void testGetRegionCodesForCountryCode() {
|
1256
|
-
List<String> regionCodesForNANPA = phoneUtil.getRegionCodesForCountryCode(1);
|
1257
|
-
assertTrue(regionCodesForNANPA.contains(RegionCode.US));
|
1258
|
-
assertTrue(regionCodesForNANPA.contains(RegionCode.BS));
|
1259
|
-
assertTrue(phoneUtil.getRegionCodesForCountryCode(44).contains(RegionCode.GB));
|
1260
|
-
assertTrue(phoneUtil.getRegionCodesForCountryCode(49).contains(RegionCode.DE));
|
1261
|
-
assertTrue(phoneUtil.getRegionCodesForCountryCode(800).contains(RegionCode.UN001));
|
1262
|
-
// Test with invalid country calling code.
|
1263
|
-
assertTrue(phoneUtil.getRegionCodesForCountryCode(-1).isEmpty());
|
1264
|
-
}
|
1265
|
-
|
1266
|
-
public void testGetCountryCodeForRegion() {
|
1267
|
-
assertEquals(1, phoneUtil.getCountryCodeForRegion(RegionCode.US));
|
1268
|
-
assertEquals(64, phoneUtil.getCountryCodeForRegion(RegionCode.NZ));
|
1269
|
-
assertEquals(0, phoneUtil.getCountryCodeForRegion(null));
|
1270
|
-
assertEquals(0, phoneUtil.getCountryCodeForRegion(RegionCode.ZZ));
|
1271
|
-
assertEquals(0, phoneUtil.getCountryCodeForRegion(RegionCode.UN001));
|
1272
|
-
// CS is already deprecated so the library doesn't support it.
|
1273
|
-
assertEquals(0, phoneUtil.getCountryCodeForRegion(RegionCode.CS));
|
1274
|
-
}
|
1275
|
-
|
1276
|
-
public void testGetNationalDiallingPrefixForRegion() {
|
1277
|
-
assertEquals("1", phoneUtil.getNddPrefixForRegion(RegionCode.US, false));
|
1278
|
-
// Test non-main country to see it gets the national dialling prefix for the main country with
|
1279
|
-
// that country calling code.
|
1280
|
-
assertEquals("1", phoneUtil.getNddPrefixForRegion(RegionCode.BS, false));
|
1281
|
-
assertEquals("0", phoneUtil.getNddPrefixForRegion(RegionCode.NZ, false));
|
1282
|
-
// Test case with non digit in the national prefix.
|
1283
|
-
assertEquals("0~0", phoneUtil.getNddPrefixForRegion(RegionCode.AO, false));
|
1284
|
-
assertEquals("00", phoneUtil.getNddPrefixForRegion(RegionCode.AO, true));
|
1285
|
-
// Test cases with invalid regions.
|
1286
|
-
assertEquals(null, phoneUtil.getNddPrefixForRegion(null, false));
|
1287
|
-
assertEquals(null, phoneUtil.getNddPrefixForRegion(RegionCode.ZZ, false));
|
1288
|
-
assertEquals(null, phoneUtil.getNddPrefixForRegion(RegionCode.UN001, false));
|
1289
|
-
// CS is already deprecated so the library doesn't support it.
|
1290
|
-
assertEquals(null, phoneUtil.getNddPrefixForRegion(RegionCode.CS, false));
|
1291
|
-
}
|
1292
|
-
|
1293
|
-
public void testIsNANPACountry() {
|
1294
|
-
assertTrue(phoneUtil.isNANPACountry(RegionCode.US));
|
1295
|
-
assertTrue(phoneUtil.isNANPACountry(RegionCode.BS));
|
1296
|
-
assertFalse(phoneUtil.isNANPACountry(RegionCode.DE));
|
1297
|
-
assertFalse(phoneUtil.isNANPACountry(RegionCode.ZZ));
|
1298
|
-
assertFalse(phoneUtil.isNANPACountry(RegionCode.UN001));
|
1299
|
-
assertFalse(phoneUtil.isNANPACountry(null));
|
1300
|
-
}
|
1301
|
-
|
1302
|
-
public void testIsPossibleNumber() {
|
1303
|
-
assertTrue(phoneUtil.isPossibleNumber(US_NUMBER));
|
1304
|
-
assertTrue(phoneUtil.isPossibleNumber(US_LOCAL_NUMBER));
|
1305
|
-
assertTrue(phoneUtil.isPossibleNumber(GB_NUMBER));
|
1306
|
-
assertTrue(phoneUtil.isPossibleNumber(INTERNATIONAL_TOLL_FREE));
|
1307
|
-
|
1308
|
-
assertTrue(phoneUtil.isPossibleNumber("+1 650 253 0000", RegionCode.US));
|
1309
|
-
assertTrue(phoneUtil.isPossibleNumber("+1 650 GOO OGLE", RegionCode.US));
|
1310
|
-
assertTrue(phoneUtil.isPossibleNumber("(650) 253-0000", RegionCode.US));
|
1311
|
-
assertTrue(phoneUtil.isPossibleNumber("253-0000", RegionCode.US));
|
1312
|
-
assertTrue(phoneUtil.isPossibleNumber("+1 650 253 0000", RegionCode.GB));
|
1313
|
-
assertTrue(phoneUtil.isPossibleNumber("+44 20 7031 3000", RegionCode.GB));
|
1314
|
-
assertTrue(phoneUtil.isPossibleNumber("(020) 7031 3000", RegionCode.GB));
|
1315
|
-
assertTrue(phoneUtil.isPossibleNumber("7031 3000", RegionCode.GB));
|
1316
|
-
assertTrue(phoneUtil.isPossibleNumber("3331 6005", RegionCode.NZ));
|
1317
|
-
assertTrue(phoneUtil.isPossibleNumber("+800 1234 5678", RegionCode.UN001));
|
1318
|
-
}
|
1319
|
-
|
1320
|
-
public void testIsPossibleNumberWithReason() {
|
1321
|
-
// National numbers for country calling code +1 that are within 7 to 10 digits are possible.
|
1322
|
-
assertEquals(PhoneNumberUtil.ValidationResult.IS_POSSIBLE,
|
1323
|
-
phoneUtil.isPossibleNumberWithReason(US_NUMBER));
|
1324
|
-
|
1325
|
-
assertEquals(PhoneNumberUtil.ValidationResult.IS_POSSIBLE,
|
1326
|
-
phoneUtil.isPossibleNumberWithReason(US_LOCAL_NUMBER));
|
1327
|
-
|
1328
|
-
assertEquals(PhoneNumberUtil.ValidationResult.TOO_LONG,
|
1329
|
-
phoneUtil.isPossibleNumberWithReason(US_LONG_NUMBER));
|
1330
|
-
|
1331
|
-
PhoneNumber number = new PhoneNumber();
|
1332
|
-
number.setCountryCode(0).setNationalNumber(2530000L);
|
1333
|
-
assertEquals(PhoneNumberUtil.ValidationResult.INVALID_COUNTRY_CODE,
|
1334
|
-
phoneUtil.isPossibleNumberWithReason(number));
|
1335
|
-
|
1336
|
-
number.clear();
|
1337
|
-
number.setCountryCode(1).setNationalNumber(253000L);
|
1338
|
-
assertEquals(PhoneNumberUtil.ValidationResult.TOO_SHORT,
|
1339
|
-
phoneUtil.isPossibleNumberWithReason(number));
|
1340
|
-
|
1341
|
-
number.clear();
|
1342
|
-
number.setCountryCode(65).setNationalNumber(1234567890L);
|
1343
|
-
assertEquals(PhoneNumberUtil.ValidationResult.IS_POSSIBLE,
|
1344
|
-
phoneUtil.isPossibleNumberWithReason(number));
|
1345
|
-
|
1346
|
-
assertEquals(PhoneNumberUtil.ValidationResult.TOO_LONG,
|
1347
|
-
phoneUtil.isPossibleNumberWithReason(INTERNATIONAL_TOLL_FREE_TOO_LONG));
|
1348
|
-
}
|
1349
|
-
|
1350
|
-
public void testIsNotPossibleNumber() {
|
1351
|
-
assertFalse(phoneUtil.isPossibleNumber(US_LONG_NUMBER));
|
1352
|
-
assertFalse(phoneUtil.isPossibleNumber(INTERNATIONAL_TOLL_FREE_TOO_LONG));
|
1353
|
-
|
1354
|
-
PhoneNumber number = new PhoneNumber();
|
1355
|
-
number.setCountryCode(1).setNationalNumber(253000L);
|
1356
|
-
assertFalse(phoneUtil.isPossibleNumber(number));
|
1357
|
-
|
1358
|
-
number.clear();
|
1359
|
-
number.setCountryCode(44).setNationalNumber(300L);
|
1360
|
-
assertFalse(phoneUtil.isPossibleNumber(number));
|
1361
|
-
assertFalse(phoneUtil.isPossibleNumber("+1 650 253 00000", RegionCode.US));
|
1362
|
-
assertFalse(phoneUtil.isPossibleNumber("(650) 253-00000", RegionCode.US));
|
1363
|
-
assertFalse(phoneUtil.isPossibleNumber("I want a Pizza", RegionCode.US));
|
1364
|
-
assertFalse(phoneUtil.isPossibleNumber("253-000", RegionCode.US));
|
1365
|
-
assertFalse(phoneUtil.isPossibleNumber("1 3000", RegionCode.GB));
|
1366
|
-
assertFalse(phoneUtil.isPossibleNumber("+44 300", RegionCode.GB));
|
1367
|
-
assertFalse(phoneUtil.isPossibleNumber("+800 1234 5678 9", RegionCode.UN001));
|
1368
|
-
}
|
1369
|
-
|
1370
|
-
public void testTruncateTooLongNumber() {
|
1371
|
-
// GB number 080 1234 5678, but entered with 4 extra digits at the end.
|
1372
|
-
PhoneNumber tooLongNumber = new PhoneNumber();
|
1373
|
-
tooLongNumber.setCountryCode(44).setNationalNumber(80123456780123L);
|
1374
|
-
PhoneNumber validNumber = new PhoneNumber();
|
1375
|
-
validNumber.setCountryCode(44).setNationalNumber(8012345678L);
|
1376
|
-
assertTrue(phoneUtil.truncateTooLongNumber(tooLongNumber));
|
1377
|
-
assertEquals(validNumber, tooLongNumber);
|
1378
|
-
|
1379
|
-
// IT number 022 3456 7890, but entered with 3 extra digits at the end.
|
1380
|
-
tooLongNumber.clear();
|
1381
|
-
tooLongNumber.setCountryCode(39).setNationalNumber(2234567890123L).setItalianLeadingZero(true);
|
1382
|
-
validNumber.clear();
|
1383
|
-
validNumber.setCountryCode(39).setNationalNumber(2234567890L).setItalianLeadingZero(true);
|
1384
|
-
assertTrue(phoneUtil.truncateTooLongNumber(tooLongNumber));
|
1385
|
-
assertEquals(validNumber, tooLongNumber);
|
1386
|
-
|
1387
|
-
// US number 650-253-0000, but entered with one additional digit at the end.
|
1388
|
-
tooLongNumber.clear();
|
1389
|
-
tooLongNumber.mergeFrom(US_LONG_NUMBER);
|
1390
|
-
assertTrue(phoneUtil.truncateTooLongNumber(tooLongNumber));
|
1391
|
-
assertEquals(US_NUMBER, tooLongNumber);
|
1392
|
-
|
1393
|
-
tooLongNumber.clear();
|
1394
|
-
tooLongNumber.mergeFrom(INTERNATIONAL_TOLL_FREE_TOO_LONG);
|
1395
|
-
assertTrue(phoneUtil.truncateTooLongNumber(tooLongNumber));
|
1396
|
-
assertEquals(INTERNATIONAL_TOLL_FREE, tooLongNumber);
|
1397
|
-
|
1398
|
-
// Tests what happens when a valid number is passed in.
|
1399
|
-
PhoneNumber validNumberCopy = new PhoneNumber().mergeFrom(validNumber);
|
1400
|
-
assertTrue(phoneUtil.truncateTooLongNumber(validNumber));
|
1401
|
-
// Tests the number is not modified.
|
1402
|
-
assertEquals(validNumberCopy, validNumber);
|
1403
|
-
|
1404
|
-
// Tests what happens when a number with invalid prefix is passed in.
|
1405
|
-
PhoneNumber numberWithInvalidPrefix = new PhoneNumber();
|
1406
|
-
// The test metadata says US numbers cannot have prefix 240.
|
1407
|
-
numberWithInvalidPrefix.setCountryCode(1).setNationalNumber(2401234567L);
|
1408
|
-
PhoneNumber invalidNumberCopy = new PhoneNumber().mergeFrom(numberWithInvalidPrefix);
|
1409
|
-
assertFalse(phoneUtil.truncateTooLongNumber(numberWithInvalidPrefix));
|
1410
|
-
// Tests the number is not modified.
|
1411
|
-
assertEquals(invalidNumberCopy, numberWithInvalidPrefix);
|
1412
|
-
|
1413
|
-
// Tests what happens when a too short number is passed in.
|
1414
|
-
PhoneNumber tooShortNumber = new PhoneNumber().setCountryCode(1).setNationalNumber(1234L);
|
1415
|
-
PhoneNumber tooShortNumberCopy = new PhoneNumber().mergeFrom(tooShortNumber);
|
1416
|
-
assertFalse(phoneUtil.truncateTooLongNumber(tooShortNumber));
|
1417
|
-
// Tests the number is not modified.
|
1418
|
-
assertEquals(tooShortNumberCopy, tooShortNumber);
|
1419
|
-
}
|
1420
|
-
|
1421
|
-
public void testIsViablePhoneNumber() {
|
1422
|
-
assertFalse(PhoneNumberUtil.isViablePhoneNumber("1"));
|
1423
|
-
// Only one or two digits before strange non-possible punctuation.
|
1424
|
-
assertFalse(PhoneNumberUtil.isViablePhoneNumber("1+1+1"));
|
1425
|
-
assertFalse(PhoneNumberUtil.isViablePhoneNumber("80+0"));
|
1426
|
-
// Two digits is viable.
|
1427
|
-
assertTrue(PhoneNumberUtil.isViablePhoneNumber("00"));
|
1428
|
-
assertTrue(PhoneNumberUtil.isViablePhoneNumber("111"));
|
1429
|
-
// Alpha numbers.
|
1430
|
-
assertTrue(PhoneNumberUtil.isViablePhoneNumber("0800-4-pizza"));
|
1431
|
-
assertTrue(PhoneNumberUtil.isViablePhoneNumber("0800-4-PIZZA"));
|
1432
|
-
// We need at least three digits before any alpha characters.
|
1433
|
-
assertFalse(PhoneNumberUtil.isViablePhoneNumber("08-PIZZA"));
|
1434
|
-
assertFalse(PhoneNumberUtil.isViablePhoneNumber("8-PIZZA"));
|
1435
|
-
assertFalse(PhoneNumberUtil.isViablePhoneNumber("12. March"));
|
1436
|
-
}
|
1437
|
-
|
1438
|
-
public void testIsViablePhoneNumberNonAscii() {
|
1439
|
-
// Only one or two digits before possible punctuation followed by more digits.
|
1440
|
-
assertTrue(PhoneNumberUtil.isViablePhoneNumber("1\u300034"));
|
1441
|
-
assertFalse(PhoneNumberUtil.isViablePhoneNumber("1\u30003+4"));
|
1442
|
-
// Unicode variants of possible starting character and other allowed punctuation/digits.
|
1443
|
-
assertTrue(PhoneNumberUtil.isViablePhoneNumber("\uFF081\uFF09\u30003456789"));
|
1444
|
-
// Testing a leading + is okay.
|
1445
|
-
assertTrue(PhoneNumberUtil.isViablePhoneNumber("+1\uFF09\u30003456789"));
|
1446
|
-
}
|
1447
|
-
|
1448
|
-
public void testExtractPossibleNumber() {
|
1449
|
-
// Removes preceding funky punctuation and letters but leaves the rest untouched.
|
1450
|
-
assertEquals("0800-345-600", PhoneNumberUtil.extractPossibleNumber("Tel:0800-345-600"));
|
1451
|
-
assertEquals("0800 FOR PIZZA", PhoneNumberUtil.extractPossibleNumber("Tel:0800 FOR PIZZA"));
|
1452
|
-
// Should not remove plus sign
|
1453
|
-
assertEquals("+800-345-600", PhoneNumberUtil.extractPossibleNumber("Tel:+800-345-600"));
|
1454
|
-
// Should recognise wide digits as possible start values.
|
1455
|
-
assertEquals("\uFF10\uFF12\uFF13",
|
1456
|
-
PhoneNumberUtil.extractPossibleNumber("\uFF10\uFF12\uFF13"));
|
1457
|
-
// Dashes are not possible start values and should be removed.
|
1458
|
-
assertEquals("\uFF11\uFF12\uFF13",
|
1459
|
-
PhoneNumberUtil.extractPossibleNumber("Num-\uFF11\uFF12\uFF13"));
|
1460
|
-
// If not possible number present, return empty string.
|
1461
|
-
assertEquals("", PhoneNumberUtil.extractPossibleNumber("Num-...."));
|
1462
|
-
// Leading brackets are stripped - these are not used when parsing.
|
1463
|
-
assertEquals("650) 253-0000", PhoneNumberUtil.extractPossibleNumber("(650) 253-0000"));
|
1464
|
-
|
1465
|
-
// Trailing non-alpha-numeric characters should be removed.
|
1466
|
-
assertEquals("650) 253-0000", PhoneNumberUtil.extractPossibleNumber("(650) 253-0000..- .."));
|
1467
|
-
assertEquals("650) 253-0000", PhoneNumberUtil.extractPossibleNumber("(650) 253-0000."));
|
1468
|
-
// This case has a trailing RTL char.
|
1469
|
-
assertEquals("650) 253-0000", PhoneNumberUtil.extractPossibleNumber("(650) 253-0000\u200F"));
|
1470
|
-
}
|
1471
|
-
|
1472
|
-
public void testMaybeStripNationalPrefix() {
|
1473
|
-
PhoneMetadata metadata = new PhoneMetadata();
|
1474
|
-
metadata.nationalPrefixForParsing = "34";
|
1475
|
-
metadata.generalDesc = new PhoneNumberDesc();
|
1476
|
-
metadata.generalDesc.nationalNumberPattern = "\\d{4,8}";
|
1477
|
-
StringBuilder numberToStrip = new StringBuilder("34356778");
|
1478
|
-
String strippedNumber = "356778";
|
1479
|
-
assertTrue(phoneUtil.maybeStripNationalPrefixAndCarrierCode(numberToStrip, metadata, null));
|
1480
|
-
assertEquals("Should have had national prefix stripped.",
|
1481
|
-
strippedNumber, numberToStrip.toString());
|
1482
|
-
// Retry stripping - now the number should not start with the national prefix, so no more
|
1483
|
-
// stripping should occur.
|
1484
|
-
assertFalse(phoneUtil.maybeStripNationalPrefixAndCarrierCode(numberToStrip, metadata, null));
|
1485
|
-
assertEquals("Should have had no change - no national prefix present.",
|
1486
|
-
strippedNumber, numberToStrip.toString());
|
1487
|
-
// Some countries have no national prefix. Repeat test with none specified.
|
1488
|
-
metadata.nationalPrefixForParsing = "";
|
1489
|
-
assertFalse(phoneUtil.maybeStripNationalPrefixAndCarrierCode(numberToStrip, metadata, null));
|
1490
|
-
assertEquals("Should not strip anything with empty national prefix.",
|
1491
|
-
strippedNumber, numberToStrip.toString());
|
1492
|
-
// If the resultant number doesn't match the national rule, it shouldn't be stripped.
|
1493
|
-
metadata.nationalPrefixForParsing = "3";
|
1494
|
-
numberToStrip = new StringBuilder("3123");
|
1495
|
-
strippedNumber = "3123";
|
1496
|
-
assertFalse(phoneUtil.maybeStripNationalPrefixAndCarrierCode(numberToStrip, metadata, null));
|
1497
|
-
assertEquals("Should have had no change - after stripping, it wouldn't have matched " +
|
1498
|
-
"the national rule.",
|
1499
|
-
strippedNumber, numberToStrip.toString());
|
1500
|
-
// Test extracting carrier selection code.
|
1501
|
-
metadata.nationalPrefixForParsing = "0(81)?";
|
1502
|
-
numberToStrip = new StringBuilder("08122123456");
|
1503
|
-
strippedNumber = "22123456";
|
1504
|
-
StringBuilder carrierCode = new StringBuilder();
|
1505
|
-
assertTrue(phoneUtil.maybeStripNationalPrefixAndCarrierCode(
|
1506
|
-
numberToStrip, metadata, carrierCode));
|
1507
|
-
assertEquals("81", carrierCode.toString());
|
1508
|
-
assertEquals("Should have had national prefix and carrier code stripped.",
|
1509
|
-
strippedNumber, numberToStrip.toString());
|
1510
|
-
// If there was a transform rule, check it was applied.
|
1511
|
-
metadata.nationalPrefixTransformRule = "5$15";
|
1512
|
-
// Note that a capturing group is present here.
|
1513
|
-
metadata.nationalPrefixForParsing = "0(\\d{2})";
|
1514
|
-
numberToStrip = new StringBuilder("031123");
|
1515
|
-
String transformedNumber = "5315123";
|
1516
|
-
assertTrue(phoneUtil.maybeStripNationalPrefixAndCarrierCode(numberToStrip, metadata, null));
|
1517
|
-
assertEquals("Should transform the 031 to a 5315.",
|
1518
|
-
transformedNumber, numberToStrip.toString());
|
1519
|
-
}
|
1520
|
-
|
1521
|
-
public void testMaybeStripInternationalPrefix() {
|
1522
|
-
String internationalPrefix = "00[39]";
|
1523
|
-
StringBuilder numberToStrip = new StringBuilder("0034567700-3898003");
|
1524
|
-
// Note the dash is removed as part of the normalization.
|
1525
|
-
StringBuilder strippedNumber = new StringBuilder("45677003898003");
|
1526
|
-
assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD,
|
1527
|
-
phoneUtil.maybeStripInternationalPrefixAndNormalize(numberToStrip,
|
1528
|
-
internationalPrefix));
|
1529
|
-
assertEquals("The number supplied was not stripped of its international prefix.",
|
1530
|
-
strippedNumber.toString(), numberToStrip.toString());
|
1531
|
-
// Now the number no longer starts with an IDD prefix, so it should now report
|
1532
|
-
// FROM_DEFAULT_COUNTRY.
|
1533
|
-
assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY,
|
1534
|
-
phoneUtil.maybeStripInternationalPrefixAndNormalize(numberToStrip,
|
1535
|
-
internationalPrefix));
|
1536
|
-
|
1537
|
-
numberToStrip = new StringBuilder("00945677003898003");
|
1538
|
-
assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD,
|
1539
|
-
phoneUtil.maybeStripInternationalPrefixAndNormalize(numberToStrip,
|
1540
|
-
internationalPrefix));
|
1541
|
-
assertEquals("The number supplied was not stripped of its international prefix.",
|
1542
|
-
strippedNumber.toString(), numberToStrip.toString());
|
1543
|
-
// Test it works when the international prefix is broken up by spaces.
|
1544
|
-
numberToStrip = new StringBuilder("00 9 45677003898003");
|
1545
|
-
assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD,
|
1546
|
-
phoneUtil.maybeStripInternationalPrefixAndNormalize(numberToStrip,
|
1547
|
-
internationalPrefix));
|
1548
|
-
assertEquals("The number supplied was not stripped of its international prefix.",
|
1549
|
-
strippedNumber.toString(), numberToStrip.toString());
|
1550
|
-
// Now the number no longer starts with an IDD prefix, so it should now report
|
1551
|
-
// FROM_DEFAULT_COUNTRY.
|
1552
|
-
assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY,
|
1553
|
-
phoneUtil.maybeStripInternationalPrefixAndNormalize(numberToStrip,
|
1554
|
-
internationalPrefix));
|
1555
|
-
|
1556
|
-
// Test the + symbol is also recognised and stripped.
|
1557
|
-
numberToStrip = new StringBuilder("+45677003898003");
|
1558
|
-
strippedNumber = new StringBuilder("45677003898003");
|
1559
|
-
assertEquals(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN,
|
1560
|
-
phoneUtil.maybeStripInternationalPrefixAndNormalize(numberToStrip,
|
1561
|
-
internationalPrefix));
|
1562
|
-
assertEquals("The number supplied was not stripped of the plus symbol.",
|
1563
|
-
strippedNumber.toString(), numberToStrip.toString());
|
1564
|
-
|
1565
|
-
// If the number afterwards is a zero, we should not strip this - no country calling code begins
|
1566
|
-
// with 0.
|
1567
|
-
numberToStrip = new StringBuilder("0090112-3123");
|
1568
|
-
strippedNumber = new StringBuilder("00901123123");
|
1569
|
-
assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY,
|
1570
|
-
phoneUtil.maybeStripInternationalPrefixAndNormalize(numberToStrip,
|
1571
|
-
internationalPrefix));
|
1572
|
-
assertEquals("The number supplied had a 0 after the match so shouldn't be stripped.",
|
1573
|
-
strippedNumber.toString(), numberToStrip.toString());
|
1574
|
-
// Here the 0 is separated by a space from the IDD.
|
1575
|
-
numberToStrip = new StringBuilder("009 0-112-3123");
|
1576
|
-
assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY,
|
1577
|
-
phoneUtil.maybeStripInternationalPrefixAndNormalize(numberToStrip,
|
1578
|
-
internationalPrefix));
|
1579
|
-
}
|
1580
|
-
|
1581
|
-
public void testMaybeExtractCountryCode() {
|
1582
|
-
PhoneNumber number = new PhoneNumber();
|
1583
|
-
PhoneMetadata metadata = phoneUtil.getMetadataForRegion(RegionCode.US);
|
1584
|
-
// Note that for the US, the IDD is 011.
|
1585
|
-
try {
|
1586
|
-
String phoneNumber = "011112-3456789";
|
1587
|
-
String strippedNumber = "123456789";
|
1588
|
-
int countryCallingCode = 1;
|
1589
|
-
StringBuilder numberToFill = new StringBuilder();
|
1590
|
-
assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.",
|
1591
|
-
countryCallingCode,
|
1592
|
-
phoneUtil.maybeExtractCountryCode(phoneNumber, metadata, numberToFill, true,
|
1593
|
-
number));
|
1594
|
-
assertEquals("Did not figure out CountryCodeSource correctly",
|
1595
|
-
CountryCodeSource.FROM_NUMBER_WITH_IDD, number.getCountryCodeSource());
|
1596
|
-
// Should strip and normalize national significant number.
|
1597
|
-
assertEquals("Did not strip off the country calling code correctly.",
|
1598
|
-
strippedNumber,
|
1599
|
-
numberToFill.toString());
|
1600
|
-
} catch (NumberParseException e) {
|
1601
|
-
fail("Should not have thrown an exception: " + e.toString());
|
1602
|
-
}
|
1603
|
-
number.clear();
|
1604
|
-
try {
|
1605
|
-
String phoneNumber = "+6423456789";
|
1606
|
-
int countryCallingCode = 64;
|
1607
|
-
StringBuilder numberToFill = new StringBuilder();
|
1608
|
-
assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.",
|
1609
|
-
countryCallingCode,
|
1610
|
-
phoneUtil.maybeExtractCountryCode(phoneNumber, metadata, numberToFill, true,
|
1611
|
-
number));
|
1612
|
-
assertEquals("Did not figure out CountryCodeSource correctly",
|
1613
|
-
CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN, number.getCountryCodeSource());
|
1614
|
-
} catch (NumberParseException e) {
|
1615
|
-
fail("Should not have thrown an exception: " + e.toString());
|
1616
|
-
}
|
1617
|
-
number.clear();
|
1618
|
-
try {
|
1619
|
-
String phoneNumber = "+80012345678";
|
1620
|
-
int countryCallingCode = 800;
|
1621
|
-
StringBuilder numberToFill = new StringBuilder();
|
1622
|
-
assertEquals("Did not extract country calling code " + countryCallingCode + " correctly.",
|
1623
|
-
countryCallingCode,
|
1624
|
-
phoneUtil.maybeExtractCountryCode(phoneNumber, metadata, numberToFill, true,
|
1625
|
-
number));
|
1626
|
-
assertEquals("Did not figure out CountryCodeSource correctly",
|
1627
|
-
CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN, number.getCountryCodeSource());
|
1628
|
-
} catch (NumberParseException e) {
|
1629
|
-
fail("Should not have thrown an exception: " + e.toString());
|
1630
|
-
}
|
1631
|
-
number.clear();
|
1632
|
-
try {
|
1633
|
-
String phoneNumber = "2345-6789";
|
1634
|
-
StringBuilder numberToFill = new StringBuilder();
|
1635
|
-
assertEquals(
|
1636
|
-
"Should not have extracted a country calling code - no international prefix present.",
|
1637
|
-
0,
|
1638
|
-
phoneUtil.maybeExtractCountryCode(phoneNumber, metadata, numberToFill, true, number));
|
1639
|
-
assertEquals("Did not figure out CountryCodeSource correctly",
|
1640
|
-
CountryCodeSource.FROM_DEFAULT_COUNTRY, number.getCountryCodeSource());
|
1641
|
-
} catch (NumberParseException e) {
|
1642
|
-
fail("Should not have thrown an exception: " + e.toString());
|
1643
|
-
}
|
1644
|
-
number.clear();
|
1645
|
-
try {
|
1646
|
-
String phoneNumber = "0119991123456789";
|
1647
|
-
StringBuilder numberToFill = new StringBuilder();
|
1648
|
-
phoneUtil.maybeExtractCountryCode(phoneNumber, metadata, numberToFill, true, number);
|
1649
|
-
fail("Should have thrown an exception, no valid country calling code present.");
|
1650
|
-
} catch (NumberParseException e) {
|
1651
|
-
// Expected.
|
1652
|
-
assertEquals("Wrong error type stored in exception.",
|
1653
|
-
NumberParseException.ErrorType.INVALID_COUNTRY_CODE,
|
1654
|
-
e.getErrorType());
|
1655
|
-
}
|
1656
|
-
number.clear();
|
1657
|
-
try {
|
1658
|
-
String phoneNumber = "(1 610) 619 4466";
|
1659
|
-
int countryCallingCode = 1;
|
1660
|
-
StringBuilder numberToFill = new StringBuilder();
|
1661
|
-
assertEquals("Should have extracted the country calling code of the region passed in",
|
1662
|
-
countryCallingCode,
|
1663
|
-
phoneUtil.maybeExtractCountryCode(phoneNumber, metadata, numberToFill, true,
|
1664
|
-
number));
|
1665
|
-
assertEquals("Did not figure out CountryCodeSource correctly",
|
1666
|
-
CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN,
|
1667
|
-
number.getCountryCodeSource());
|
1668
|
-
} catch (NumberParseException e) {
|
1669
|
-
fail("Should not have thrown an exception: " + e.toString());
|
1670
|
-
}
|
1671
|
-
number.clear();
|
1672
|
-
try {
|
1673
|
-
String phoneNumber = "(1 610) 619 4466";
|
1674
|
-
int countryCallingCode = 1;
|
1675
|
-
StringBuilder numberToFill = new StringBuilder();
|
1676
|
-
assertEquals("Should have extracted the country calling code of the region passed in",
|
1677
|
-
countryCallingCode,
|
1678
|
-
phoneUtil.maybeExtractCountryCode(phoneNumber, metadata, numberToFill, false,
|
1679
|
-
number));
|
1680
|
-
assertFalse("Should not contain CountryCodeSource.", number.hasCountryCodeSource());
|
1681
|
-
} catch (NumberParseException e) {
|
1682
|
-
fail("Should not have thrown an exception: " + e.toString());
|
1683
|
-
}
|
1684
|
-
number.clear();
|
1685
|
-
try {
|
1686
|
-
String phoneNumber = "(1 610) 619 446";
|
1687
|
-
StringBuilder numberToFill = new StringBuilder();
|
1688
|
-
assertEquals("Should not have extracted a country calling code - invalid number after " +
|
1689
|
-
"extraction of uncertain country calling code.",
|
1690
|
-
0,
|
1691
|
-
phoneUtil.maybeExtractCountryCode(phoneNumber, metadata, numberToFill, false,
|
1692
|
-
number));
|
1693
|
-
assertFalse("Should not contain CountryCodeSource.", number.hasCountryCodeSource());
|
1694
|
-
} catch (NumberParseException e) {
|
1695
|
-
fail("Should not have thrown an exception: " + e.toString());
|
1696
|
-
}
|
1697
|
-
number.clear();
|
1698
|
-
try {
|
1699
|
-
String phoneNumber = "(1 610) 619";
|
1700
|
-
StringBuilder numberToFill = new StringBuilder();
|
1701
|
-
assertEquals("Should not have extracted a country calling code - too short number both " +
|
1702
|
-
"before and after extraction of uncertain country calling code.",
|
1703
|
-
0,
|
1704
|
-
phoneUtil.maybeExtractCountryCode(phoneNumber, metadata, numberToFill, true,
|
1705
|
-
number));
|
1706
|
-
assertEquals("Did not figure out CountryCodeSource correctly",
|
1707
|
-
CountryCodeSource.FROM_DEFAULT_COUNTRY, number.getCountryCodeSource());
|
1708
|
-
} catch (NumberParseException e) {
|
1709
|
-
fail("Should not have thrown an exception: " + e.toString());
|
1710
|
-
}
|
1711
|
-
}
|
1712
|
-
|
1713
|
-
public void testParseNationalNumber() throws Exception {
|
1714
|
-
// National prefix attached.
|
1715
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("033316005", RegionCode.NZ));
|
1716
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("33316005", RegionCode.NZ));
|
1717
|
-
// National prefix attached and some formatting present.
|
1718
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("03-331 6005", RegionCode.NZ));
|
1719
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("03 331 6005", RegionCode.NZ));
|
1720
|
-
// Test parsing RFC3966 format with a phone context.
|
1721
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("tel:03-331-6005;phone-context=+64", RegionCode.NZ));
|
1722
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("tel:331-6005;phone-context=+64-3", RegionCode.NZ));
|
1723
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("tel:331-6005;phone-context=+64-3", RegionCode.US));
|
1724
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse(
|
1725
|
-
"My number is tel:03-331-6005;phone-context=+64", RegionCode.NZ));
|
1726
|
-
// Test parsing RFC3966 format with optional user-defined parameters. The parameters will appear
|
1727
|
-
// after the context if present.
|
1728
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("tel:03-331-6005;phone-context=+64;a=%A1",
|
1729
|
-
RegionCode.NZ));
|
1730
|
-
// Test parsing RFC3966 with an ISDN subaddress.
|
1731
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("tel:03-331-6005;isub=12345;phone-context=+64",
|
1732
|
-
RegionCode.NZ));
|
1733
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("tel:+64-3-331-6005;isub=12345", RegionCode.NZ));
|
1734
|
-
// Test parsing RFC3966 with "tel:" missing.
|
1735
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("03-331-6005;phone-context=+64", RegionCode.NZ));
|
1736
|
-
// Testing international prefixes.
|
1737
|
-
// Should strip country calling code.
|
1738
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("0064 3 331 6005", RegionCode.NZ));
|
1739
|
-
// Try again, but this time we have an international number with Region Code US. It should
|
1740
|
-
// recognise the country calling code and parse accordingly.
|
1741
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("01164 3 331 6005", RegionCode.US));
|
1742
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("+64 3 331 6005", RegionCode.US));
|
1743
|
-
// We should ignore the leading plus here, since it is not followed by a valid country code but
|
1744
|
-
// instead is followed by the IDD for the US.
|
1745
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("+01164 3 331 6005", RegionCode.US));
|
1746
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("+0064 3 331 6005", RegionCode.NZ));
|
1747
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("+ 00 64 3 331 6005", RegionCode.NZ));
|
1748
|
-
|
1749
|
-
assertEquals(US_LOCAL_NUMBER,
|
1750
|
-
phoneUtil.parse("tel:253-0000;phone-context=www.google.com", RegionCode.US));
|
1751
|
-
assertEquals(US_LOCAL_NUMBER,
|
1752
|
-
phoneUtil.parse("tel:253-0000;isub=12345;phone-context=www.google.com", RegionCode.US));
|
1753
|
-
// This is invalid because no "+" sign is present as part of phone-context. The phone context
|
1754
|
-
// is simply ignored in this case just as if it contains a domain.
|
1755
|
-
assertEquals(US_LOCAL_NUMBER,
|
1756
|
-
phoneUtil.parse("tel:2530000;isub=12345;phone-context=1-650", RegionCode.US));
|
1757
|
-
assertEquals(US_LOCAL_NUMBER,
|
1758
|
-
phoneUtil.parse("tel:2530000;isub=12345;phone-context=1234.com", RegionCode.US));
|
1759
|
-
|
1760
|
-
PhoneNumber nzNumber = new PhoneNumber();
|
1761
|
-
nzNumber.setCountryCode(64).setNationalNumber(64123456L);
|
1762
|
-
assertEquals(nzNumber, phoneUtil.parse("64(0)64123456", RegionCode.NZ));
|
1763
|
-
// Check that using a "/" is fine in a phone number.
|
1764
|
-
assertEquals(DE_NUMBER, phoneUtil.parse("301/23456", RegionCode.DE));
|
1765
|
-
|
1766
|
-
PhoneNumber usNumber = new PhoneNumber();
|
1767
|
-
// Check it doesn't use the '1' as a country calling code when parsing if the phone number was
|
1768
|
-
// already possible.
|
1769
|
-
usNumber.setCountryCode(1).setNationalNumber(1234567890L);
|
1770
|
-
assertEquals(usNumber, phoneUtil.parse("123-456-7890", RegionCode.US));
|
1771
|
-
|
1772
|
-
// Test star numbers. Although this is not strictly valid, we would like to make sure we can
|
1773
|
-
// parse the output we produce when formatting the number.
|
1774
|
-
assertEquals(JP_STAR_NUMBER, phoneUtil.parse("+81 *2345", RegionCode.JP));
|
1775
|
-
|
1776
|
-
PhoneNumber shortNumber = new PhoneNumber();
|
1777
|
-
shortNumber.setCountryCode(64).setNationalNumber(12L);
|
1778
|
-
assertEquals(shortNumber, phoneUtil.parse("12", RegionCode.NZ));
|
1779
|
-
}
|
1780
|
-
|
1781
|
-
public void testParseNumberWithAlphaCharacters() throws Exception {
|
1782
|
-
// Test case with alpha characters.
|
1783
|
-
PhoneNumber tollfreeNumber = new PhoneNumber();
|
1784
|
-
tollfreeNumber.setCountryCode(64).setNationalNumber(800332005L);
|
1785
|
-
assertEquals(tollfreeNumber, phoneUtil.parse("0800 DDA 005", RegionCode.NZ));
|
1786
|
-
PhoneNumber premiumNumber = new PhoneNumber();
|
1787
|
-
premiumNumber.setCountryCode(64).setNationalNumber(9003326005L);
|
1788
|
-
assertEquals(premiumNumber, phoneUtil.parse("0900 DDA 6005", RegionCode.NZ));
|
1789
|
-
// Not enough alpha characters for them to be considered intentional, so they are stripped.
|
1790
|
-
assertEquals(premiumNumber, phoneUtil.parse("0900 332 6005a", RegionCode.NZ));
|
1791
|
-
assertEquals(premiumNumber, phoneUtil.parse("0900 332 600a5", RegionCode.NZ));
|
1792
|
-
assertEquals(premiumNumber, phoneUtil.parse("0900 332 600A5", RegionCode.NZ));
|
1793
|
-
assertEquals(premiumNumber, phoneUtil.parse("0900 a332 600A5", RegionCode.NZ));
|
1794
|
-
}
|
1795
|
-
|
1796
|
-
public void testParseMaliciousInput() throws Exception {
|
1797
|
-
// Lots of leading + signs before the possible number.
|
1798
|
-
StringBuilder maliciousNumber = new StringBuilder(6000);
|
1799
|
-
for (int i = 0; i < 6000; i++) {
|
1800
|
-
maliciousNumber.append('+');
|
1801
|
-
}
|
1802
|
-
maliciousNumber.append("12222-33-244 extensioB 343+");
|
1803
|
-
try {
|
1804
|
-
phoneUtil.parse(maliciousNumber.toString(), RegionCode.US);
|
1805
|
-
fail("This should not parse without throwing an exception " + maliciousNumber);
|
1806
|
-
} catch (NumberParseException e) {
|
1807
|
-
// Expected this exception.
|
1808
|
-
assertEquals("Wrong error type stored in exception.",
|
1809
|
-
NumberParseException.ErrorType.TOO_LONG,
|
1810
|
-
e.getErrorType());
|
1811
|
-
}
|
1812
|
-
StringBuilder maliciousNumberWithAlmostExt = new StringBuilder(6000);
|
1813
|
-
for (int i = 0; i < 350; i++) {
|
1814
|
-
maliciousNumberWithAlmostExt.append("200");
|
1815
|
-
}
|
1816
|
-
maliciousNumberWithAlmostExt.append(" extensiOB 345");
|
1817
|
-
try {
|
1818
|
-
phoneUtil.parse(maliciousNumberWithAlmostExt.toString(), RegionCode.US);
|
1819
|
-
fail("This should not parse without throwing an exception " + maliciousNumberWithAlmostExt);
|
1820
|
-
} catch (NumberParseException e) {
|
1821
|
-
// Expected this exception.
|
1822
|
-
assertEquals("Wrong error type stored in exception.",
|
1823
|
-
NumberParseException.ErrorType.TOO_LONG,
|
1824
|
-
e.getErrorType());
|
1825
|
-
}
|
1826
|
-
}
|
1827
|
-
|
1828
|
-
public void testParseWithInternationalPrefixes() throws Exception {
|
1829
|
-
assertEquals(US_NUMBER, phoneUtil.parse("+1 (650) 253-0000", RegionCode.NZ));
|
1830
|
-
assertEquals(INTERNATIONAL_TOLL_FREE, phoneUtil.parse("011 800 1234 5678", RegionCode.US));
|
1831
|
-
assertEquals(US_NUMBER, phoneUtil.parse("1-650-253-0000", RegionCode.US));
|
1832
|
-
// Calling the US number from Singapore by using different service providers
|
1833
|
-
// 1st test: calling using SingTel IDD service (IDD is 001)
|
1834
|
-
assertEquals(US_NUMBER, phoneUtil.parse("0011-650-253-0000", RegionCode.SG));
|
1835
|
-
// 2nd test: calling using StarHub IDD service (IDD is 008)
|
1836
|
-
assertEquals(US_NUMBER, phoneUtil.parse("0081-650-253-0000", RegionCode.SG));
|
1837
|
-
// 3rd test: calling using SingTel V019 service (IDD is 019)
|
1838
|
-
assertEquals(US_NUMBER, phoneUtil.parse("0191-650-253-0000", RegionCode.SG));
|
1839
|
-
// Calling the US number from Poland
|
1840
|
-
assertEquals(US_NUMBER, phoneUtil.parse("0~01-650-253-0000", RegionCode.PL));
|
1841
|
-
// Using "++" at the start.
|
1842
|
-
assertEquals(US_NUMBER, phoneUtil.parse("++1 (650) 253-0000", RegionCode.PL));
|
1843
|
-
}
|
1844
|
-
|
1845
|
-
public void testParseNonAscii() throws Exception {
|
1846
|
-
// Using a full-width plus sign.
|
1847
|
-
assertEquals(US_NUMBER, phoneUtil.parse("\uFF0B1 (650) 253-0000", RegionCode.SG));
|
1848
|
-
// Using a soft hyphen U+00AD.
|
1849
|
-
assertEquals(US_NUMBER, phoneUtil.parse("1 (650) 253\u00AD-0000", RegionCode.US));
|
1850
|
-
// The whole number, including punctuation, is here represented in full-width form.
|
1851
|
-
assertEquals(US_NUMBER, phoneUtil.parse("\uFF0B\uFF11\u3000\uFF08\uFF16\uFF15\uFF10\uFF09" +
|
1852
|
-
"\u3000\uFF12\uFF15\uFF13\uFF0D\uFF10\uFF10\uFF10" +
|
1853
|
-
"\uFF10",
|
1854
|
-
RegionCode.SG));
|
1855
|
-
// Using U+30FC dash instead.
|
1856
|
-
assertEquals(US_NUMBER, phoneUtil.parse("\uFF0B\uFF11\u3000\uFF08\uFF16\uFF15\uFF10\uFF09" +
|
1857
|
-
"\u3000\uFF12\uFF15\uFF13\u30FC\uFF10\uFF10\uFF10" +
|
1858
|
-
"\uFF10",
|
1859
|
-
RegionCode.SG));
|
1860
|
-
|
1861
|
-
// Using a very strange decimal digit range (Mongolian digits).
|
1862
|
-
assertEquals(US_NUMBER, phoneUtil.parse("\u1811 \u1816\u1815\u1810 " +
|
1863
|
-
"\u1812\u1815\u1813 \u1810\u1810\u1810\u1810",
|
1864
|
-
RegionCode.US));
|
1865
|
-
}
|
1866
|
-
|
1867
|
-
public void testParseWithLeadingZero() throws Exception {
|
1868
|
-
assertEquals(IT_NUMBER, phoneUtil.parse("+39 02-36618 300", RegionCode.NZ));
|
1869
|
-
assertEquals(IT_NUMBER, phoneUtil.parse("02-36618 300", RegionCode.IT));
|
1870
|
-
|
1871
|
-
assertEquals(IT_MOBILE, phoneUtil.parse("345 678 901", RegionCode.IT));
|
1872
|
-
}
|
1873
|
-
|
1874
|
-
public void testParseNationalNumberArgentina() throws Exception {
|
1875
|
-
// Test parsing mobile numbers of Argentina.
|
1876
|
-
PhoneNumber arNumber = new PhoneNumber();
|
1877
|
-
arNumber.setCountryCode(54).setNationalNumber(93435551212L);
|
1878
|
-
assertEquals(arNumber, phoneUtil.parse("+54 9 343 555 1212", RegionCode.AR));
|
1879
|
-
assertEquals(arNumber, phoneUtil.parse("0343 15 555 1212", RegionCode.AR));
|
1880
|
-
|
1881
|
-
arNumber.clear();
|
1882
|
-
arNumber.setCountryCode(54).setNationalNumber(93715654320L);
|
1883
|
-
assertEquals(arNumber, phoneUtil.parse("+54 9 3715 65 4320", RegionCode.AR));
|
1884
|
-
assertEquals(arNumber, phoneUtil.parse("03715 15 65 4320", RegionCode.AR));
|
1885
|
-
assertEquals(AR_MOBILE, phoneUtil.parse("911 876 54321", RegionCode.AR));
|
1886
|
-
|
1887
|
-
// Test parsing fixed-line numbers of Argentina.
|
1888
|
-
assertEquals(AR_NUMBER, phoneUtil.parse("+54 11 8765 4321", RegionCode.AR));
|
1889
|
-
assertEquals(AR_NUMBER, phoneUtil.parse("011 8765 4321", RegionCode.AR));
|
1890
|
-
|
1891
|
-
arNumber.clear();
|
1892
|
-
arNumber.setCountryCode(54).setNationalNumber(3715654321L);
|
1893
|
-
assertEquals(arNumber, phoneUtil.parse("+54 3715 65 4321", RegionCode.AR));
|
1894
|
-
assertEquals(arNumber, phoneUtil.parse("03715 65 4321", RegionCode.AR));
|
1895
|
-
|
1896
|
-
arNumber.clear();
|
1897
|
-
arNumber.setCountryCode(54).setNationalNumber(2312340000L);
|
1898
|
-
assertEquals(arNumber, phoneUtil.parse("+54 23 1234 0000", RegionCode.AR));
|
1899
|
-
assertEquals(arNumber, phoneUtil.parse("023 1234 0000", RegionCode.AR));
|
1900
|
-
}
|
1901
|
-
|
1902
|
-
public void testParseWithXInNumber() throws Exception {
|
1903
|
-
// Test that having an 'x' in the phone number at the start is ok and that it just gets removed.
|
1904
|
-
assertEquals(AR_NUMBER, phoneUtil.parse("01187654321", RegionCode.AR));
|
1905
|
-
assertEquals(AR_NUMBER, phoneUtil.parse("(0) 1187654321", RegionCode.AR));
|
1906
|
-
assertEquals(AR_NUMBER, phoneUtil.parse("0 1187654321", RegionCode.AR));
|
1907
|
-
assertEquals(AR_NUMBER, phoneUtil.parse("(0xx) 1187654321", RegionCode.AR));
|
1908
|
-
PhoneNumber arFromUs = new PhoneNumber();
|
1909
|
-
arFromUs.setCountryCode(54).setNationalNumber(81429712L);
|
1910
|
-
// This test is intentionally constructed such that the number of digit after xx is larger than
|
1911
|
-
// 7, so that the number won't be mistakenly treated as an extension, as we allow extensions up
|
1912
|
-
// to 7 digits. This assumption is okay for now as all the countries where a carrier selection
|
1913
|
-
// code is written in the form of xx have a national significant number of length larger than 7.
|
1914
|
-
assertEquals(arFromUs, phoneUtil.parse("011xx5481429712", RegionCode.US));
|
1915
|
-
}
|
1916
|
-
|
1917
|
-
public void testParseNumbersMexico() throws Exception {
|
1918
|
-
// Test parsing fixed-line numbers of Mexico.
|
1919
|
-
PhoneNumber mxNumber = new PhoneNumber();
|
1920
|
-
mxNumber.setCountryCode(52).setNationalNumber(4499780001L);
|
1921
|
-
assertEquals(mxNumber, phoneUtil.parse("+52 (449)978-0001", RegionCode.MX));
|
1922
|
-
assertEquals(mxNumber, phoneUtil.parse("01 (449)978-0001", RegionCode.MX));
|
1923
|
-
assertEquals(mxNumber, phoneUtil.parse("(449)978-0001", RegionCode.MX));
|
1924
|
-
|
1925
|
-
// Test parsing mobile numbers of Mexico.
|
1926
|
-
mxNumber.clear();
|
1927
|
-
mxNumber.setCountryCode(52).setNationalNumber(13312345678L);
|
1928
|
-
assertEquals(mxNumber, phoneUtil.parse("+52 1 33 1234-5678", RegionCode.MX));
|
1929
|
-
assertEquals(mxNumber, phoneUtil.parse("044 (33) 1234-5678", RegionCode.MX));
|
1930
|
-
assertEquals(mxNumber, phoneUtil.parse("045 33 1234-5678", RegionCode.MX));
|
1931
|
-
}
|
1932
|
-
|
1933
|
-
public void testFailedParseOnInvalidNumbers() {
|
1934
|
-
try {
|
1935
|
-
String sentencePhoneNumber = "This is not a phone number";
|
1936
|
-
phoneUtil.parse(sentencePhoneNumber, RegionCode.NZ);
|
1937
|
-
fail("This should not parse without throwing an exception " + sentencePhoneNumber);
|
1938
|
-
} catch (NumberParseException e) {
|
1939
|
-
// Expected this exception.
|
1940
|
-
assertEquals("Wrong error type stored in exception.",
|
1941
|
-
NumberParseException.ErrorType.NOT_A_NUMBER,
|
1942
|
-
e.getErrorType());
|
1943
|
-
}
|
1944
|
-
try {
|
1945
|
-
String sentencePhoneNumber = "1 Still not a number";
|
1946
|
-
phoneUtil.parse(sentencePhoneNumber, RegionCode.NZ);
|
1947
|
-
fail("This should not parse without throwing an exception " + sentencePhoneNumber);
|
1948
|
-
} catch (NumberParseException e) {
|
1949
|
-
// Expected this exception.
|
1950
|
-
assertEquals("Wrong error type stored in exception.",
|
1951
|
-
NumberParseException.ErrorType.NOT_A_NUMBER,
|
1952
|
-
e.getErrorType());
|
1953
|
-
}
|
1954
|
-
try {
|
1955
|
-
String sentencePhoneNumber = "1 MICROSOFT";
|
1956
|
-
phoneUtil.parse(sentencePhoneNumber, RegionCode.NZ);
|
1957
|
-
fail("This should not parse without throwing an exception " + sentencePhoneNumber);
|
1958
|
-
} catch (NumberParseException e) {
|
1959
|
-
// Expected this exception.
|
1960
|
-
assertEquals("Wrong error type stored in exception.",
|
1961
|
-
NumberParseException.ErrorType.NOT_A_NUMBER,
|
1962
|
-
e.getErrorType());
|
1963
|
-
}
|
1964
|
-
try {
|
1965
|
-
String sentencePhoneNumber = "12 MICROSOFT";
|
1966
|
-
phoneUtil.parse(sentencePhoneNumber, RegionCode.NZ);
|
1967
|
-
fail("This should not parse without throwing an exception " + sentencePhoneNumber);
|
1968
|
-
} catch (NumberParseException e) {
|
1969
|
-
// Expected this exception.
|
1970
|
-
assertEquals("Wrong error type stored in exception.",
|
1971
|
-
NumberParseException.ErrorType.NOT_A_NUMBER,
|
1972
|
-
e.getErrorType());
|
1973
|
-
}
|
1974
|
-
try {
|
1975
|
-
String tooLongPhoneNumber = "01495 72553301873 810104";
|
1976
|
-
phoneUtil.parse(tooLongPhoneNumber, RegionCode.GB);
|
1977
|
-
fail("This should not parse without throwing an exception " + tooLongPhoneNumber);
|
1978
|
-
} catch (NumberParseException e) {
|
1979
|
-
// Expected this exception.
|
1980
|
-
assertEquals("Wrong error type stored in exception.",
|
1981
|
-
NumberParseException.ErrorType.TOO_LONG,
|
1982
|
-
e.getErrorType());
|
1983
|
-
}
|
1984
|
-
try {
|
1985
|
-
String plusMinusPhoneNumber = "+---";
|
1986
|
-
phoneUtil.parse(plusMinusPhoneNumber, RegionCode.DE);
|
1987
|
-
fail("This should not parse without throwing an exception " + plusMinusPhoneNumber);
|
1988
|
-
} catch (NumberParseException e) {
|
1989
|
-
// Expected this exception.
|
1990
|
-
assertEquals("Wrong error type stored in exception.",
|
1991
|
-
NumberParseException.ErrorType.NOT_A_NUMBER,
|
1992
|
-
e.getErrorType());
|
1993
|
-
}
|
1994
|
-
try {
|
1995
|
-
String plusStar = "+***";
|
1996
|
-
phoneUtil.parse(plusStar, RegionCode.DE);
|
1997
|
-
fail("This should not parse without throwing an exception " + plusStar);
|
1998
|
-
} catch (NumberParseException e) {
|
1999
|
-
// Expected this exception.
|
2000
|
-
assertEquals("Wrong error type stored in exception.",
|
2001
|
-
NumberParseException.ErrorType.NOT_A_NUMBER,
|
2002
|
-
e.getErrorType());
|
2003
|
-
}
|
2004
|
-
try {
|
2005
|
-
String plusStarPhoneNumber = "+*******91";
|
2006
|
-
phoneUtil.parse(plusStarPhoneNumber, RegionCode.DE);
|
2007
|
-
fail("This should not parse without throwing an exception " + plusStarPhoneNumber);
|
2008
|
-
} catch (NumberParseException e) {
|
2009
|
-
// Expected this exception.
|
2010
|
-
assertEquals("Wrong error type stored in exception.",
|
2011
|
-
NumberParseException.ErrorType.NOT_A_NUMBER,
|
2012
|
-
e.getErrorType());
|
2013
|
-
}
|
2014
|
-
try {
|
2015
|
-
String tooShortPhoneNumber = "+49 0";
|
2016
|
-
phoneUtil.parse(tooShortPhoneNumber, RegionCode.DE);
|
2017
|
-
fail("This should not parse without throwing an exception " + tooShortPhoneNumber);
|
2018
|
-
} catch (NumberParseException e) {
|
2019
|
-
// Expected this exception.
|
2020
|
-
assertEquals("Wrong error type stored in exception.",
|
2021
|
-
NumberParseException.ErrorType.TOO_SHORT_NSN,
|
2022
|
-
e.getErrorType());
|
2023
|
-
}
|
2024
|
-
try {
|
2025
|
-
String invalidCountryCode = "+210 3456 56789";
|
2026
|
-
phoneUtil.parse(invalidCountryCode, RegionCode.NZ);
|
2027
|
-
fail("This is not a recognised region code: should fail: " + invalidCountryCode);
|
2028
|
-
} catch (NumberParseException e) {
|
2029
|
-
// Expected this exception.
|
2030
|
-
assertEquals("Wrong error type stored in exception.",
|
2031
|
-
NumberParseException.ErrorType.INVALID_COUNTRY_CODE,
|
2032
|
-
e.getErrorType());
|
2033
|
-
}
|
2034
|
-
try {
|
2035
|
-
String plusAndIddAndInvalidCountryCode = "+ 00 210 3 331 6005";
|
2036
|
-
phoneUtil.parse(plusAndIddAndInvalidCountryCode, RegionCode.NZ);
|
2037
|
-
fail("This should not parse without throwing an exception.");
|
2038
|
-
} catch (NumberParseException e) {
|
2039
|
-
// Expected this exception. 00 is a correct IDD, but 210 is not a valid country code.
|
2040
|
-
assertEquals("Wrong error type stored in exception.",
|
2041
|
-
NumberParseException.ErrorType.INVALID_COUNTRY_CODE,
|
2042
|
-
e.getErrorType());
|
2043
|
-
}
|
2044
|
-
try {
|
2045
|
-
String someNumber = "123 456 7890";
|
2046
|
-
phoneUtil.parse(someNumber, RegionCode.ZZ);
|
2047
|
-
fail("'Unknown' region code not allowed: should fail.");
|
2048
|
-
} catch (NumberParseException e) {
|
2049
|
-
// Expected this exception.
|
2050
|
-
assertEquals("Wrong error type stored in exception.",
|
2051
|
-
NumberParseException.ErrorType.INVALID_COUNTRY_CODE,
|
2052
|
-
e.getErrorType());
|
2053
|
-
}
|
2054
|
-
try {
|
2055
|
-
String someNumber = "123 456 7890";
|
2056
|
-
phoneUtil.parse(someNumber, RegionCode.CS);
|
2057
|
-
fail("Deprecated region code not allowed: should fail.");
|
2058
|
-
} catch (NumberParseException e) {
|
2059
|
-
// Expected this exception.
|
2060
|
-
assertEquals("Wrong error type stored in exception.",
|
2061
|
-
NumberParseException.ErrorType.INVALID_COUNTRY_CODE,
|
2062
|
-
e.getErrorType());
|
2063
|
-
}
|
2064
|
-
try {
|
2065
|
-
String someNumber = "123 456 7890";
|
2066
|
-
phoneUtil.parse(someNumber, null);
|
2067
|
-
fail("Null region code not allowed: should fail.");
|
2068
|
-
} catch (NumberParseException e) {
|
2069
|
-
// Expected this exception.
|
2070
|
-
assertEquals("Wrong error type stored in exception.",
|
2071
|
-
NumberParseException.ErrorType.INVALID_COUNTRY_CODE,
|
2072
|
-
e.getErrorType());
|
2073
|
-
}
|
2074
|
-
try {
|
2075
|
-
String someNumber = "0044------";
|
2076
|
-
phoneUtil.parse(someNumber, RegionCode.GB);
|
2077
|
-
fail("No number provided, only region code: should fail");
|
2078
|
-
} catch (NumberParseException e) {
|
2079
|
-
// Expected this exception.
|
2080
|
-
assertEquals("Wrong error type stored in exception.",
|
2081
|
-
NumberParseException.ErrorType.TOO_SHORT_AFTER_IDD,
|
2082
|
-
e.getErrorType());
|
2083
|
-
}
|
2084
|
-
try {
|
2085
|
-
String someNumber = "0044";
|
2086
|
-
phoneUtil.parse(someNumber, RegionCode.GB);
|
2087
|
-
fail("No number provided, only region code: should fail");
|
2088
|
-
} catch (NumberParseException e) {
|
2089
|
-
// Expected this exception.
|
2090
|
-
assertEquals("Wrong error type stored in exception.",
|
2091
|
-
NumberParseException.ErrorType.TOO_SHORT_AFTER_IDD,
|
2092
|
-
e.getErrorType());
|
2093
|
-
}
|
2094
|
-
try {
|
2095
|
-
String someNumber = "011";
|
2096
|
-
phoneUtil.parse(someNumber, RegionCode.US);
|
2097
|
-
fail("Only IDD provided - should fail.");
|
2098
|
-
} catch (NumberParseException e) {
|
2099
|
-
// Expected this exception.
|
2100
|
-
assertEquals("Wrong error type stored in exception.",
|
2101
|
-
NumberParseException.ErrorType.TOO_SHORT_AFTER_IDD,
|
2102
|
-
e.getErrorType());
|
2103
|
-
}
|
2104
|
-
try {
|
2105
|
-
String someNumber = "0119";
|
2106
|
-
phoneUtil.parse(someNumber, RegionCode.US);
|
2107
|
-
fail("Only IDD provided and then 9 - should fail.");
|
2108
|
-
} catch (NumberParseException e) {
|
2109
|
-
// Expected this exception.
|
2110
|
-
assertEquals("Wrong error type stored in exception.",
|
2111
|
-
NumberParseException.ErrorType.TOO_SHORT_AFTER_IDD,
|
2112
|
-
e.getErrorType());
|
2113
|
-
}
|
2114
|
-
try {
|
2115
|
-
String emptyNumber = "";
|
2116
|
-
// Invalid region.
|
2117
|
-
phoneUtil.parse(emptyNumber, RegionCode.ZZ);
|
2118
|
-
fail("Empty string - should fail.");
|
2119
|
-
} catch (NumberParseException e) {
|
2120
|
-
// Expected this exception.
|
2121
|
-
assertEquals("Wrong error type stored in exception.",
|
2122
|
-
NumberParseException.ErrorType.NOT_A_NUMBER,
|
2123
|
-
e.getErrorType());
|
2124
|
-
}
|
2125
|
-
try {
|
2126
|
-
String nullNumber = null;
|
2127
|
-
// Invalid region.
|
2128
|
-
phoneUtil.parse(nullNumber, RegionCode.ZZ);
|
2129
|
-
fail("Null string - should fail.");
|
2130
|
-
} catch (NumberParseException e) {
|
2131
|
-
// Expected this exception.
|
2132
|
-
assertEquals("Wrong error type stored in exception.",
|
2133
|
-
NumberParseException.ErrorType.NOT_A_NUMBER,
|
2134
|
-
e.getErrorType());
|
2135
|
-
} catch (NullPointerException e) {
|
2136
|
-
fail("Null string - but should not throw a null pointer exception.");
|
2137
|
-
}
|
2138
|
-
try {
|
2139
|
-
String nullNumber = null;
|
2140
|
-
phoneUtil.parse(nullNumber, RegionCode.US);
|
2141
|
-
fail("Null string - should fail.");
|
2142
|
-
} catch (NumberParseException e) {
|
2143
|
-
// Expected this exception.
|
2144
|
-
assertEquals("Wrong error type stored in exception.",
|
2145
|
-
NumberParseException.ErrorType.NOT_A_NUMBER,
|
2146
|
-
e.getErrorType());
|
2147
|
-
} catch (NullPointerException e) {
|
2148
|
-
fail("Null string - but should not throw a null pointer exception.");
|
2149
|
-
}
|
2150
|
-
try {
|
2151
|
-
String domainRfcPhoneContext = "tel:555-1234;phone-context=www.google.com";
|
2152
|
-
phoneUtil.parse(domainRfcPhoneContext, RegionCode.ZZ);
|
2153
|
-
fail("'Unknown' region code not allowed: should fail.");
|
2154
|
-
} catch (NumberParseException e) {
|
2155
|
-
// Expected this exception.
|
2156
|
-
assertEquals("Wrong error type stored in exception.",
|
2157
|
-
NumberParseException.ErrorType.INVALID_COUNTRY_CODE,
|
2158
|
-
e.getErrorType());
|
2159
|
-
}
|
2160
|
-
try {
|
2161
|
-
// This is invalid because no "+" sign is present as part of phone-context. This should not
|
2162
|
-
// succeed in being parsed.
|
2163
|
-
String invalidRfcPhoneContext = "tel:555-1234;phone-context=1-331";
|
2164
|
-
phoneUtil.parse(invalidRfcPhoneContext, RegionCode.ZZ);
|
2165
|
-
fail("'Unknown' region code not allowed: should fail.");
|
2166
|
-
} catch (NumberParseException e) {
|
2167
|
-
// Expected this exception.
|
2168
|
-
assertEquals("Wrong error type stored in exception.",
|
2169
|
-
NumberParseException.ErrorType.INVALID_COUNTRY_CODE,
|
2170
|
-
e.getErrorType());
|
2171
|
-
}
|
2172
|
-
}
|
2173
|
-
|
2174
|
-
public void testParseNumbersWithPlusWithNoRegion() throws Exception {
|
2175
|
-
// RegionCode.ZZ is allowed only if the number starts with a '+' - then the country calling code
|
2176
|
-
// can be calculated.
|
2177
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("+64 3 331 6005", RegionCode.ZZ));
|
2178
|
-
// Test with full-width plus.
|
2179
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("\uFF0B64 3 331 6005", RegionCode.ZZ));
|
2180
|
-
// Test with normal plus but leading characters that need to be stripped.
|
2181
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("Tel: +64 3 331 6005", RegionCode.ZZ));
|
2182
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("+64 3 331 6005", null));
|
2183
|
-
assertEquals(INTERNATIONAL_TOLL_FREE, phoneUtil.parse("+800 1234 5678", null));
|
2184
|
-
assertEquals(UNIVERSAL_PREMIUM_RATE, phoneUtil.parse("+979 123 456 789", null));
|
2185
|
-
|
2186
|
-
// Test parsing RFC3966 format with a phone context.
|
2187
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("tel:03-331-6005;phone-context=+64", RegionCode.ZZ));
|
2188
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse(" tel:03-331-6005;phone-context=+64", RegionCode.ZZ));
|
2189
|
-
assertEquals(NZ_NUMBER, phoneUtil.parse("tel:03-331-6005;isub=12345;phone-context=+64",
|
2190
|
-
RegionCode.ZZ));
|
2191
|
-
|
2192
|
-
// It is important that we set the carrier code to an empty string, since we used
|
2193
|
-
// ParseAndKeepRawInput and no carrier code was found.
|
2194
|
-
PhoneNumber nzNumberWithRawInput = new PhoneNumber().mergeFrom(NZ_NUMBER).
|
2195
|
-
setRawInput("+64 3 331 6005").
|
2196
|
-
setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN).
|
2197
|
-
setPreferredDomesticCarrierCode("");
|
2198
|
-
assertEquals(nzNumberWithRawInput, phoneUtil.parseAndKeepRawInput("+64 3 331 6005",
|
2199
|
-
RegionCode.ZZ));
|
2200
|
-
// Null is also allowed for the region code in these cases.
|
2201
|
-
assertEquals(nzNumberWithRawInput, phoneUtil.parseAndKeepRawInput("+64 3 331 6005", null));
|
2202
|
-
}
|
2203
|
-
|
2204
|
-
public void testParseNumberTooShortIfNationalPrefixStripped() throws Exception {
|
2205
|
-
// Test that a number whose first digits happen to coincide with the national prefix does not
|
2206
|
-
// get them stripped if doing so would result in a number too short to be a possible (regular
|
2207
|
-
// length) phone number for that region.
|
2208
|
-
PhoneNumber byNumber = new PhoneNumber().setCountryCode(375).setNationalNumber(8123L);
|
2209
|
-
assertEquals(byNumber, phoneUtil.parse("8123", RegionCode.BY));
|
2210
|
-
byNumber.setNationalNumber(81234L);
|
2211
|
-
assertEquals(byNumber, phoneUtil.parse("81234", RegionCode.BY));
|
2212
|
-
|
2213
|
-
// The prefix doesn't get stripped, since the input is a viable 6-digit number, whereas the
|
2214
|
-
// result of stripping is only 5 digits.
|
2215
|
-
byNumber.setNationalNumber(812345L);
|
2216
|
-
assertEquals(byNumber, phoneUtil.parse("812345", RegionCode.BY));
|
2217
|
-
|
2218
|
-
// The prefix gets stripped, since only 6-digit numbers are possible.
|
2219
|
-
byNumber.setNationalNumber(123456L);
|
2220
|
-
assertEquals(byNumber, phoneUtil.parse("8123456", RegionCode.BY));
|
2221
|
-
}
|
2222
|
-
|
2223
|
-
public void testParseExtensions() throws Exception {
|
2224
|
-
PhoneNumber nzNumber = new PhoneNumber();
|
2225
|
-
nzNumber.setCountryCode(64).setNationalNumber(33316005L).setExtension("3456");
|
2226
|
-
assertEquals(nzNumber, phoneUtil.parse("03 331 6005 ext 3456", RegionCode.NZ));
|
2227
|
-
assertEquals(nzNumber, phoneUtil.parse("03-3316005x3456", RegionCode.NZ));
|
2228
|
-
assertEquals(nzNumber, phoneUtil.parse("03-3316005 int.3456", RegionCode.NZ));
|
2229
|
-
assertEquals(nzNumber, phoneUtil.parse("03 3316005 #3456", RegionCode.NZ));
|
2230
|
-
// Test the following do not extract extensions:
|
2231
|
-
assertEquals(ALPHA_NUMERIC_NUMBER, phoneUtil.parse("1800 six-flags", RegionCode.US));
|
2232
|
-
assertEquals(ALPHA_NUMERIC_NUMBER, phoneUtil.parse("1800 SIX FLAGS", RegionCode.US));
|
2233
|
-
assertEquals(ALPHA_NUMERIC_NUMBER, phoneUtil.parse("0~0 1800 7493 5247", RegionCode.PL));
|
2234
|
-
assertEquals(ALPHA_NUMERIC_NUMBER, phoneUtil.parse("(1800) 7493.5247", RegionCode.US));
|
2235
|
-
// Check that the last instance of an extension token is matched.
|
2236
|
-
PhoneNumber extnNumber = new PhoneNumber().mergeFrom(ALPHA_NUMERIC_NUMBER).setExtension("1234");
|
2237
|
-
assertEquals(extnNumber, phoneUtil.parse("0~0 1800 7493 5247 ~1234", RegionCode.PL));
|
2238
|
-
// Verifying bug-fix where the last digit of a number was previously omitted if it was a 0 when
|
2239
|
-
// extracting the extension. Also verifying a few different cases of extensions.
|
2240
|
-
PhoneNumber ukNumber = new PhoneNumber();
|
2241
|
-
ukNumber.setCountryCode(44).setNationalNumber(2034567890L).setExtension("456");
|
2242
|
-
assertEquals(ukNumber, phoneUtil.parse("+44 2034567890x456", RegionCode.NZ));
|
2243
|
-
assertEquals(ukNumber, phoneUtil.parse("+44 2034567890x456", RegionCode.GB));
|
2244
|
-
assertEquals(ukNumber, phoneUtil.parse("+44 2034567890 x456", RegionCode.GB));
|
2245
|
-
assertEquals(ukNumber, phoneUtil.parse("+44 2034567890 X456", RegionCode.GB));
|
2246
|
-
assertEquals(ukNumber, phoneUtil.parse("+44 2034567890 X 456", RegionCode.GB));
|
2247
|
-
assertEquals(ukNumber, phoneUtil.parse("+44 2034567890 X 456", RegionCode.GB));
|
2248
|
-
assertEquals(ukNumber, phoneUtil.parse("+44 2034567890 x 456 ", RegionCode.GB));
|
2249
|
-
assertEquals(ukNumber, phoneUtil.parse("+44 2034567890 X 456", RegionCode.GB));
|
2250
|
-
assertEquals(ukNumber, phoneUtil.parse("+44-2034567890;ext=456", RegionCode.GB));
|
2251
|
-
assertEquals(ukNumber, phoneUtil.parse("tel:2034567890;ext=456;phone-context=+44",
|
2252
|
-
RegionCode.ZZ));
|
2253
|
-
// Full-width extension, "extn" only.
|
2254
|
-
assertEquals(ukNumber, phoneUtil.parse("+442034567890\uFF45\uFF58\uFF54\uFF4E456",
|
2255
|
-
RegionCode.GB));
|
2256
|
-
// "xtn" only.
|
2257
|
-
assertEquals(ukNumber, phoneUtil.parse("+442034567890\uFF58\uFF54\uFF4E456",
|
2258
|
-
RegionCode.GB));
|
2259
|
-
// "xt" only.
|
2260
|
-
assertEquals(ukNumber, phoneUtil.parse("+442034567890\uFF58\uFF54456",
|
2261
|
-
RegionCode.GB));
|
2262
|
-
|
2263
|
-
PhoneNumber usWithExtension = new PhoneNumber();
|
2264
|
-
usWithExtension.setCountryCode(1).setNationalNumber(8009013355L).setExtension("7246433");
|
2265
|
-
assertEquals(usWithExtension, phoneUtil.parse("(800) 901-3355 x 7246433", RegionCode.US));
|
2266
|
-
assertEquals(usWithExtension, phoneUtil.parse("(800) 901-3355 , ext 7246433", RegionCode.US));
|
2267
|
-
assertEquals(usWithExtension,
|
2268
|
-
phoneUtil.parse("(800) 901-3355 ,extension 7246433", RegionCode.US));
|
2269
|
-
assertEquals(usWithExtension,
|
2270
|
-
phoneUtil.parse("(800) 901-3355 ,extensi\u00F3n 7246433", RegionCode.US));
|
2271
|
-
// Repeat with the small letter o with acute accent created by combining characters.
|
2272
|
-
assertEquals(usWithExtension,
|
2273
|
-
phoneUtil.parse("(800) 901-3355 ,extensio\u0301n 7246433", RegionCode.US));
|
2274
|
-
assertEquals(usWithExtension, phoneUtil.parse("(800) 901-3355 , 7246433", RegionCode.US));
|
2275
|
-
assertEquals(usWithExtension, phoneUtil.parse("(800) 901-3355 ext: 7246433", RegionCode.US));
|
2276
|
-
|
2277
|
-
// Test that if a number has two extensions specified, we ignore the second.
|
2278
|
-
PhoneNumber usWithTwoExtensionsNumber = new PhoneNumber();
|
2279
|
-
usWithTwoExtensionsNumber.setCountryCode(1).setNationalNumber(2121231234L).setExtension("508");
|
2280
|
-
assertEquals(usWithTwoExtensionsNumber, phoneUtil.parse("(212)123-1234 x508/x1234",
|
2281
|
-
RegionCode.US));
|
2282
|
-
assertEquals(usWithTwoExtensionsNumber, phoneUtil.parse("(212)123-1234 x508/ x1234",
|
2283
|
-
RegionCode.US));
|
2284
|
-
assertEquals(usWithTwoExtensionsNumber, phoneUtil.parse("(212)123-1234 x508\\x1234",
|
2285
|
-
RegionCode.US));
|
2286
|
-
|
2287
|
-
// Test parsing numbers in the form (645) 123-1234-910# works, where the last 3 digits before
|
2288
|
-
// the # are an extension.
|
2289
|
-
usWithExtension.clear();
|
2290
|
-
usWithExtension.setCountryCode(1).setNationalNumber(6451231234L).setExtension("910");
|
2291
|
-
assertEquals(usWithExtension, phoneUtil.parse("+1 (645) 123 1234-910#", RegionCode.US));
|
2292
|
-
// Retry with the same number in a slightly different format.
|
2293
|
-
assertEquals(usWithExtension, phoneUtil.parse("+1 (645) 123 1234 ext. 910#", RegionCode.US));
|
2294
|
-
}
|
2295
|
-
|
2296
|
-
public void testParseAndKeepRaw() throws Exception {
|
2297
|
-
PhoneNumber alphaNumericNumber = new PhoneNumber().mergeFrom(ALPHA_NUMERIC_NUMBER).
|
2298
|
-
setRawInput("800 six-flags").
|
2299
|
-
setCountryCodeSource(CountryCodeSource.FROM_DEFAULT_COUNTRY).
|
2300
|
-
setPreferredDomesticCarrierCode("");
|
2301
|
-
assertEquals(alphaNumericNumber,
|
2302
|
-
phoneUtil.parseAndKeepRawInput("800 six-flags", RegionCode.US));
|
2303
|
-
|
2304
|
-
PhoneNumber shorterAlphaNumber = new PhoneNumber().
|
2305
|
-
setCountryCode(1).setNationalNumber(8007493524L).
|
2306
|
-
setRawInput("1800 six-flag").
|
2307
|
-
setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN).
|
2308
|
-
setPreferredDomesticCarrierCode("");
|
2309
|
-
assertEquals(shorterAlphaNumber,
|
2310
|
-
phoneUtil.parseAndKeepRawInput("1800 six-flag", RegionCode.US));
|
2311
|
-
|
2312
|
-
shorterAlphaNumber.setRawInput("+1800 six-flag").
|
2313
|
-
setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN);
|
2314
|
-
assertEquals(shorterAlphaNumber,
|
2315
|
-
phoneUtil.parseAndKeepRawInput("+1800 six-flag", RegionCode.NZ));
|
2316
|
-
|
2317
|
-
shorterAlphaNumber.setRawInput("001800 six-flag").
|
2318
|
-
setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITH_IDD);
|
2319
|
-
assertEquals(shorterAlphaNumber,
|
2320
|
-
phoneUtil.parseAndKeepRawInput("001800 six-flag", RegionCode.NZ));
|
2321
|
-
|
2322
|
-
// Invalid region code supplied.
|
2323
|
-
try {
|
2324
|
-
phoneUtil.parseAndKeepRawInput("123 456 7890", RegionCode.CS);
|
2325
|
-
fail("Deprecated region code not allowed: should fail.");
|
2326
|
-
} catch (NumberParseException e) {
|
2327
|
-
// Expected this exception.
|
2328
|
-
assertEquals("Wrong error type stored in exception.",
|
2329
|
-
NumberParseException.ErrorType.INVALID_COUNTRY_CODE,
|
2330
|
-
e.getErrorType());
|
2331
|
-
}
|
2332
|
-
|
2333
|
-
PhoneNumber koreanNumber = new PhoneNumber();
|
2334
|
-
koreanNumber.setCountryCode(82).setNationalNumber(22123456).setRawInput("08122123456").
|
2335
|
-
setCountryCodeSource(CountryCodeSource.FROM_DEFAULT_COUNTRY).
|
2336
|
-
setPreferredDomesticCarrierCode("81");
|
2337
|
-
assertEquals(koreanNumber, phoneUtil.parseAndKeepRawInput("08122123456", RegionCode.KR));
|
2338
|
-
}
|
2339
|
-
|
2340
|
-
public void testParseItalianLeadingZeros() throws Exception {
|
2341
|
-
// Test the number "011".
|
2342
|
-
PhoneNumber oneZero = new PhoneNumber();
|
2343
|
-
oneZero.setCountryCode(61).setNationalNumber(11L).setItalianLeadingZero(true);
|
2344
|
-
assertEquals(oneZero, phoneUtil.parse("011", RegionCode.AU));
|
2345
|
-
|
2346
|
-
// Test the number "001".
|
2347
|
-
PhoneNumber twoZeros = new PhoneNumber();
|
2348
|
-
twoZeros.setCountryCode(61).setNationalNumber(1).setItalianLeadingZero(true)
|
2349
|
-
.setNumberOfLeadingZeros(2);
|
2350
|
-
assertEquals(twoZeros, phoneUtil.parse("001", RegionCode.AU));
|
2351
|
-
|
2352
|
-
// Test the number "000". This number has 2 leading zeros.
|
2353
|
-
PhoneNumber stillTwoZeros = new PhoneNumber();
|
2354
|
-
stillTwoZeros.setCountryCode(61).setNationalNumber(0L).setItalianLeadingZero(true)
|
2355
|
-
.setNumberOfLeadingZeros(2);
|
2356
|
-
assertEquals(stillTwoZeros, phoneUtil.parse("000", RegionCode.AU));
|
2357
|
-
|
2358
|
-
// Test the number "0000". This number has 3 leading zeros.
|
2359
|
-
PhoneNumber threeZeros = new PhoneNumber();
|
2360
|
-
threeZeros.setCountryCode(61).setNationalNumber(0L).setItalianLeadingZero(true)
|
2361
|
-
.setNumberOfLeadingZeros(3);
|
2362
|
-
assertEquals(threeZeros, phoneUtil.parse("0000", RegionCode.AU));
|
2363
|
-
}
|
2364
|
-
|
2365
|
-
public void testCountryWithNoNumberDesc() {
|
2366
|
-
// Andorra is a country where we don't have PhoneNumberDesc info in the metadata.
|
2367
|
-
PhoneNumber adNumber = new PhoneNumber();
|
2368
|
-
adNumber.setCountryCode(376).setNationalNumber(12345L);
|
2369
|
-
assertEquals("+376 12345", phoneUtil.format(adNumber, PhoneNumberFormat.INTERNATIONAL));
|
2370
|
-
assertEquals("+37612345", phoneUtil.format(adNumber, PhoneNumberFormat.E164));
|
2371
|
-
assertEquals("12345", phoneUtil.format(adNumber, PhoneNumberFormat.NATIONAL));
|
2372
|
-
assertEquals(PhoneNumberUtil.PhoneNumberType.UNKNOWN, phoneUtil.getNumberType(adNumber));
|
2373
|
-
assertFalse(phoneUtil.isValidNumber(adNumber));
|
2374
|
-
|
2375
|
-
// Test dialing a US number from within Andorra.
|
2376
|
-
assertEquals("00 1 650 253 0000",
|
2377
|
-
phoneUtil.formatOutOfCountryCallingNumber(US_NUMBER, RegionCode.AD));
|
2378
|
-
}
|
2379
|
-
|
2380
|
-
public void testUnknownCountryCallingCode() {
|
2381
|
-
assertFalse(phoneUtil.isValidNumber(UNKNOWN_COUNTRY_CODE_NO_RAW_INPUT));
|
2382
|
-
// It's not very well defined as to what the E164 representation for a number with an invalid
|
2383
|
-
// country calling code is, but just prefixing the country code and national number is about
|
2384
|
-
// the best we can do.
|
2385
|
-
assertEquals("+212345",
|
2386
|
-
phoneUtil.format(UNKNOWN_COUNTRY_CODE_NO_RAW_INPUT, PhoneNumberFormat.E164));
|
2387
|
-
}
|
2388
|
-
|
2389
|
-
public void testIsNumberMatchMatches() throws Exception {
|
2390
|
-
// Test simple matches where formatting is different, or leading zeros, or country calling code
|
2391
|
-
// has been specified.
|
2392
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2393
|
-
phoneUtil.isNumberMatch("+64 3 331 6005", "+64 03 331 6005"));
|
2394
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2395
|
-
phoneUtil.isNumberMatch("+800 1234 5678", "+80012345678"));
|
2396
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2397
|
-
phoneUtil.isNumberMatch("+64 03 331-6005", "+64 03331 6005"));
|
2398
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2399
|
-
phoneUtil.isNumberMatch("+643 331-6005", "+64033316005"));
|
2400
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2401
|
-
phoneUtil.isNumberMatch("+643 331-6005", "+6433316005"));
|
2402
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2403
|
-
phoneUtil.isNumberMatch("+64 3 331-6005", "+6433316005"));
|
2404
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2405
|
-
phoneUtil.isNumberMatch("+64 3 331-6005", "tel:+64-3-331-6005;isub=123"));
|
2406
|
-
// Test alpha numbers.
|
2407
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2408
|
-
phoneUtil.isNumberMatch("+1800 siX-Flags", "+1 800 7493 5247"));
|
2409
|
-
// Test numbers with extensions.
|
2410
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2411
|
-
phoneUtil.isNumberMatch("+64 3 331-6005 extn 1234", "+6433316005#1234"));
|
2412
|
-
// Test proto buffers.
|
2413
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2414
|
-
phoneUtil.isNumberMatch(NZ_NUMBER, "+6403 331 6005"));
|
2415
|
-
|
2416
|
-
PhoneNumber nzNumber = new PhoneNumber().mergeFrom(NZ_NUMBER).setExtension("3456");
|
2417
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2418
|
-
phoneUtil.isNumberMatch(nzNumber, "+643 331 6005 ext 3456"));
|
2419
|
-
// Check empty extensions are ignored.
|
2420
|
-
nzNumber.setExtension("");
|
2421
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2422
|
-
phoneUtil.isNumberMatch(nzNumber, "+6403 331 6005"));
|
2423
|
-
// Check variant with two proto buffers.
|
2424
|
-
assertEquals("Number " + nzNumber.toString() + " did not match " + NZ_NUMBER.toString(),
|
2425
|
-
PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2426
|
-
phoneUtil.isNumberMatch(nzNumber, NZ_NUMBER));
|
2427
|
-
|
2428
|
-
// Check raw_input, country_code_source and preferred_domestic_carrier_code are ignored.
|
2429
|
-
PhoneNumber brNumberOne = new PhoneNumber();
|
2430
|
-
PhoneNumber brNumberTwo = new PhoneNumber();
|
2431
|
-
brNumberOne.setCountryCode(55).setNationalNumber(3121286979L)
|
2432
|
-
.setCountryCodeSource(PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN)
|
2433
|
-
.setPreferredDomesticCarrierCode("12").setRawInput("012 3121286979");
|
2434
|
-
brNumberTwo.setCountryCode(55).setNationalNumber(3121286979L)
|
2435
|
-
.setCountryCodeSource(PhoneNumber.CountryCodeSource.FROM_DEFAULT_COUNTRY)
|
2436
|
-
.setPreferredDomesticCarrierCode("14").setRawInput("143121286979");
|
2437
|
-
assertEquals(PhoneNumberUtil.MatchType.EXACT_MATCH,
|
2438
|
-
phoneUtil.isNumberMatch(brNumberOne, brNumberTwo));
|
2439
|
-
}
|
2440
|
-
|
2441
|
-
public void testIsNumberMatchNonMatches() throws Exception {
|
2442
|
-
// Non-matches.
|
2443
|
-
assertEquals(PhoneNumberUtil.MatchType.NO_MATCH,
|
2444
|
-
phoneUtil.isNumberMatch("03 331 6005", "03 331 6006"));
|
2445
|
-
assertEquals(PhoneNumberUtil.MatchType.NO_MATCH,
|
2446
|
-
phoneUtil.isNumberMatch("+800 1234 5678", "+1 800 1234 5678"));
|
2447
|
-
// Different country calling code, partial number match.
|
2448
|
-
assertEquals(PhoneNumberUtil.MatchType.NO_MATCH,
|
2449
|
-
phoneUtil.isNumberMatch("+64 3 331-6005", "+16433316005"));
|
2450
|
-
// Different country calling code, same number.
|
2451
|
-
assertEquals(PhoneNumberUtil.MatchType.NO_MATCH,
|
2452
|
-
phoneUtil.isNumberMatch("+64 3 331-6005", "+6133316005"));
|
2453
|
-
// Extension different, all else the same.
|
2454
|
-
assertEquals(PhoneNumberUtil.MatchType.NO_MATCH,
|
2455
|
-
phoneUtil.isNumberMatch("+64 3 331-6005 extn 1234", "0116433316005#1235"));
|
2456
|
-
assertEquals(PhoneNumberUtil.MatchType.NO_MATCH,
|
2457
|
-
phoneUtil.isNumberMatch(
|
2458
|
-
"+64 3 331-6005 extn 1234", "tel:+64-3-331-6005;ext=1235"));
|
2459
|
-
// NSN matches, but extension is different - not the same number.
|
2460
|
-
assertEquals(PhoneNumberUtil.MatchType.NO_MATCH,
|
2461
|
-
phoneUtil.isNumberMatch("+64 3 331-6005 ext.1235", "3 331 6005#1234"));
|
2462
|
-
|
2463
|
-
// Invalid numbers that can't be parsed.
|
2464
|
-
assertEquals(PhoneNumberUtil.MatchType.NOT_A_NUMBER,
|
2465
|
-
phoneUtil.isNumberMatch("4", "3 331 6043"));
|
2466
|
-
assertEquals(PhoneNumberUtil.MatchType.NOT_A_NUMBER,
|
2467
|
-
phoneUtil.isNumberMatch("+43", "+64 3 331 6005"));
|
2468
|
-
assertEquals(PhoneNumberUtil.MatchType.NOT_A_NUMBER,
|
2469
|
-
phoneUtil.isNumberMatch("+43", "64 3 331 6005"));
|
2470
|
-
assertEquals(PhoneNumberUtil.MatchType.NOT_A_NUMBER,
|
2471
|
-
phoneUtil.isNumberMatch("Dog", "64 3 331 6005"));
|
2472
|
-
}
|
2473
|
-
|
2474
|
-
public void testIsNumberMatchNsnMatches() throws Exception {
|
2475
|
-
// NSN matches.
|
2476
|
-
assertEquals(PhoneNumberUtil.MatchType.NSN_MATCH,
|
2477
|
-
phoneUtil.isNumberMatch("+64 3 331-6005", "03 331 6005"));
|
2478
|
-
assertEquals(PhoneNumberUtil.MatchType.NSN_MATCH,
|
2479
|
-
phoneUtil.isNumberMatch(
|
2480
|
-
"+64 3 331-6005", "tel:03-331-6005;isub=1234;phone-context=abc.nz"));
|
2481
|
-
assertEquals(PhoneNumberUtil.MatchType.NSN_MATCH,
|
2482
|
-
phoneUtil.isNumberMatch(NZ_NUMBER, "03 331 6005"));
|
2483
|
-
// Here the second number possibly starts with the country calling code for New Zealand,
|
2484
|
-
// although we are unsure.
|
2485
|
-
PhoneNumber unchangedNzNumber = new PhoneNumber().mergeFrom(NZ_NUMBER);
|
2486
|
-
assertEquals(PhoneNumberUtil.MatchType.NSN_MATCH,
|
2487
|
-
phoneUtil.isNumberMatch(unchangedNzNumber, "(64-3) 331 6005"));
|
2488
|
-
// Check the phone number proto was not edited during the method call.
|
2489
|
-
assertEquals(NZ_NUMBER, unchangedNzNumber);
|
2490
|
-
|
2491
|
-
// Here, the 1 might be a national prefix, if we compare it to the US number, so the resultant
|
2492
|
-
// match is an NSN match.
|
2493
|
-
assertEquals(PhoneNumberUtil.MatchType.NSN_MATCH,
|
2494
|
-
phoneUtil.isNumberMatch(US_NUMBER, "1-650-253-0000"));
|
2495
|
-
assertEquals(PhoneNumberUtil.MatchType.NSN_MATCH,
|
2496
|
-
phoneUtil.isNumberMatch(US_NUMBER, "6502530000"));
|
2497
|
-
assertEquals(PhoneNumberUtil.MatchType.NSN_MATCH,
|
2498
|
-
phoneUtil.isNumberMatch("+1 650-253 0000", "1 650 253 0000"));
|
2499
|
-
assertEquals(PhoneNumberUtil.MatchType.NSN_MATCH,
|
2500
|
-
phoneUtil.isNumberMatch("1 650-253 0000", "1 650 253 0000"));
|
2501
|
-
assertEquals(PhoneNumberUtil.MatchType.NSN_MATCH,
|
2502
|
-
phoneUtil.isNumberMatch("1 650-253 0000", "+1 650 253 0000"));
|
2503
|
-
// For this case, the match will be a short NSN match, because we cannot assume that the 1 might
|
2504
|
-
// be a national prefix, so don't remove it when parsing.
|
2505
|
-
PhoneNumber randomNumber = new PhoneNumber();
|
2506
|
-
randomNumber.setCountryCode(41).setNationalNumber(6502530000L);
|
2507
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2508
|
-
phoneUtil.isNumberMatch(randomNumber, "1-650-253-0000"));
|
2509
|
-
}
|
2510
|
-
|
2511
|
-
public void testIsNumberMatchShortNsnMatches() throws Exception {
|
2512
|
-
// Short NSN matches with the country not specified for either one or both numbers.
|
2513
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2514
|
-
phoneUtil.isNumberMatch("+64 3 331-6005", "331 6005"));
|
2515
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2516
|
-
phoneUtil.isNumberMatch("+64 3 331-6005", "tel:331-6005;phone-context=abc.nz"));
|
2517
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2518
|
-
phoneUtil.isNumberMatch("+64 3 331-6005",
|
2519
|
-
"tel:331-6005;isub=1234;phone-context=abc.nz"));
|
2520
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2521
|
-
phoneUtil.isNumberMatch("+64 3 331-6005",
|
2522
|
-
"tel:331-6005;isub=1234;phone-context=abc.nz;a=%A1"));
|
2523
|
-
// We did not know that the "0" was a national prefix since neither number has a country code,
|
2524
|
-
// so this is considered a SHORT_NSN_MATCH.
|
2525
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2526
|
-
phoneUtil.isNumberMatch("3 331-6005", "03 331 6005"));
|
2527
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2528
|
-
phoneUtil.isNumberMatch("3 331-6005", "331 6005"));
|
2529
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2530
|
-
phoneUtil.isNumberMatch("3 331-6005", "tel:331-6005;phone-context=abc.nz"));
|
2531
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2532
|
-
phoneUtil.isNumberMatch("3 331-6005", "+64 331 6005"));
|
2533
|
-
// Short NSN match with the country specified.
|
2534
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2535
|
-
phoneUtil.isNumberMatch("03 331-6005", "331 6005"));
|
2536
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2537
|
-
phoneUtil.isNumberMatch("1 234 345 6789", "345 6789"));
|
2538
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2539
|
-
phoneUtil.isNumberMatch("+1 (234) 345 6789", "345 6789"));
|
2540
|
-
// NSN matches, country calling code omitted for one number, extension missing for one.
|
2541
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2542
|
-
phoneUtil.isNumberMatch("+64 3 331-6005", "3 331 6005#1234"));
|
2543
|
-
// One has Italian leading zero, one does not.
|
2544
|
-
PhoneNumber italianNumberOne = new PhoneNumber();
|
2545
|
-
italianNumberOne.setCountryCode(39).setNationalNumber(1234L).setItalianLeadingZero(true);
|
2546
|
-
PhoneNumber italianNumberTwo = new PhoneNumber();
|
2547
|
-
italianNumberTwo.setCountryCode(39).setNationalNumber(1234L);
|
2548
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2549
|
-
phoneUtil.isNumberMatch(italianNumberOne, italianNumberTwo));
|
2550
|
-
// One has an extension, the other has an extension of "".
|
2551
|
-
italianNumberOne.setExtension("1234").clearItalianLeadingZero();
|
2552
|
-
italianNumberTwo.setExtension("");
|
2553
|
-
assertEquals(PhoneNumberUtil.MatchType.SHORT_NSN_MATCH,
|
2554
|
-
phoneUtil.isNumberMatch(italianNumberOne, italianNumberTwo));
|
2555
|
-
}
|
2556
|
-
|
2557
|
-
public void testCanBeInternationallyDialled() throws Exception {
|
2558
|
-
// We have no-international-dialling rules for the US in our test metadata that say that
|
2559
|
-
// toll-free numbers cannot be dialled internationally.
|
2560
|
-
assertFalse(phoneUtil.canBeInternationallyDialled(US_TOLLFREE));
|
2561
|
-
|
2562
|
-
// Normal US numbers can be internationally dialled.
|
2563
|
-
assertTrue(phoneUtil.canBeInternationallyDialled(US_NUMBER));
|
2564
|
-
|
2565
|
-
// Invalid number.
|
2566
|
-
assertTrue(phoneUtil.canBeInternationallyDialled(US_LOCAL_NUMBER));
|
2567
|
-
|
2568
|
-
// We have no data for NZ - should return true.
|
2569
|
-
assertTrue(phoneUtil.canBeInternationallyDialled(NZ_NUMBER));
|
2570
|
-
assertTrue(phoneUtil.canBeInternationallyDialled(INTERNATIONAL_TOLL_FREE));
|
2571
|
-
}
|
2572
|
-
|
2573
|
-
public void testIsAlphaNumber() throws Exception {
|
2574
|
-
assertTrue(phoneUtil.isAlphaNumber("1800 six-flags"));
|
2575
|
-
assertTrue(phoneUtil.isAlphaNumber("1800 six-flags ext. 1234"));
|
2576
|
-
assertTrue(phoneUtil.isAlphaNumber("+800 six-flags"));
|
2577
|
-
assertTrue(phoneUtil.isAlphaNumber("180 six-flags"));
|
2578
|
-
assertFalse(phoneUtil.isAlphaNumber("1800 123-1234"));
|
2579
|
-
assertFalse(phoneUtil.isAlphaNumber("1 six-flags"));
|
2580
|
-
assertFalse(phoneUtil.isAlphaNumber("18 six-flags"));
|
2581
|
-
assertFalse(phoneUtil.isAlphaNumber("1800 123-1234 extension: 1234"));
|
2582
|
-
assertFalse(phoneUtil.isAlphaNumber("+800 1234-1234"));
|
2583
|
-
}
|
2584
|
-
|
2585
|
-
public void testIsMobileNumberPortableRegion() {
|
2586
|
-
assertTrue(phoneUtil.isMobileNumberPortableRegion(RegionCode.US));
|
2587
|
-
assertTrue(phoneUtil.isMobileNumberPortableRegion(RegionCode.GB));
|
2588
|
-
assertFalse(phoneUtil.isMobileNumberPortableRegion(RegionCode.AE));
|
2589
|
-
assertFalse(phoneUtil.isMobileNumberPortableRegion(RegionCode.BS));
|
2590
|
-
}
|
2591
|
-
}
|