phonelib 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1989) hide show
  1. checksums.yaml +4 -4
  2. data/data/extended_data.dat +0 -0
  3. data/data/phone_data.dat +0 -0
  4. data/lib/phonelib/data_importer.rb +1 -1
  5. data/lib/phonelib/phone_analyzer.rb +32 -12
  6. data/lib/phonelib/phone_analyzer_helper.rb +21 -2
  7. data/lib/phonelib/phone_formatter.rb +13 -0
  8. data/lib/phonelib/version.rb +1 -1
  9. data/lib/validators/phone_validator.rb +1 -1
  10. metadata +2 -1981
  11. data/data/libphonenumber/AUTHORS +0 -4
  12. data/data/libphonenumber/CONTRIBUTING.md +0 -47
  13. data/data/libphonenumber/CONTRIBUTORS +0 -69
  14. data/data/libphonenumber/FALSEHOODS.md +0 -237
  15. data/data/libphonenumber/FAQ.md +0 -190
  16. data/data/libphonenumber/LICENSE +0 -176
  17. data/data/libphonenumber/LICENSE.Chromium +0 -37
  18. data/data/libphonenumber/README.md +0 -116
  19. data/data/libphonenumber/codereview.settings +0 -4
  20. data/data/libphonenumber/cpp/CMakeLists.txt +0 -592
  21. data/data/libphonenumber/cpp/LICENSE +0 -13
  22. data/data/libphonenumber/cpp/README +0 -344
  23. data/data/libphonenumber/cpp/src/phonenumbers/alternate_format.cc +0 -907
  24. data/data/libphonenumber/cpp/src/phonenumbers/alternate_format.h +0 -29
  25. data/data/libphonenumber/cpp/src/phonenumbers/asyoutypeformatter.cc +0 -781
  26. data/data/libphonenumber/cpp/src/phonenumbers/asyoutypeformatter.h +0 -243
  27. data/data/libphonenumber/cpp/src/phonenumbers/base/basictypes.h +0 -263
  28. data/data/libphonenumber/cpp/src/phonenumbers/base/logging.h +0 -45
  29. data/data/libphonenumber/cpp/src/phonenumbers/base/memory/scoped_ptr.h +0 -450
  30. data/data/libphonenumber/cpp/src/phonenumbers/base/memory/singleton.h +0 -95
  31. data/data/libphonenumber/cpp/src/phonenumbers/base/memory/singleton_posix.h +0 -53
  32. data/data/libphonenumber/cpp/src/phonenumbers/base/strings/string_piece.cc +0 -221
  33. data/data/libphonenumber/cpp/src/phonenumbers/base/strings/string_piece.h +0 -194
  34. data/data/libphonenumber/cpp/src/phonenumbers/base/synchronization/lock.h +0 -91
  35. data/data/libphonenumber/cpp/src/phonenumbers/base/synchronization/lock_posix.h +0 -63
  36. data/data/libphonenumber/cpp/src/phonenumbers/base/template_util.h +0 -108
  37. data/data/libphonenumber/cpp/src/phonenumbers/base/thread_checker.h +0 -70
  38. data/data/libphonenumber/cpp/src/phonenumbers/callback.h +0 -88
  39. data/data/libphonenumber/cpp/src/phonenumbers/default_logger.cc +0 -57
  40. data/data/libphonenumber/cpp/src/phonenumbers/default_logger.h +0 -105
  41. data/data/libphonenumber/cpp/src/phonenumbers/encoding_utils.h +0 -51
  42. data/data/libphonenumber/cpp/src/phonenumbers/geocoding/area_code_map.cc +0 -94
  43. data/data/libphonenumber/cpp/src/phonenumbers/geocoding/area_code_map.h +0 -75
  44. data/data/libphonenumber/cpp/src/phonenumbers/geocoding/default_map_storage.cc +0 -65
  45. data/data/libphonenumber/cpp/src/phonenumbers/geocoding/default_map_storage.h +0 -76
  46. data/data/libphonenumber/cpp/src/phonenumbers/geocoding/geocoding_data.h +0 -77
  47. data/data/libphonenumber/cpp/src/phonenumbers/geocoding/mapping_file_provider.cc +0 -175
  48. data/data/libphonenumber/cpp/src/phonenumbers/geocoding/mapping_file_provider.h +0 -75
  49. data/data/libphonenumber/cpp/src/phonenumbers/geocoding/phonenumber_offline_geocoder.cc +0 -226
  50. data/data/libphonenumber/cpp/src/phonenumbers/geocoding/phonenumber_offline_geocoder.h +0 -165
  51. data/data/libphonenumber/cpp/src/phonenumbers/lite_metadata.cc +0 -11547
  52. data/data/libphonenumber/cpp/src/phonenumbers/logger.cc +0 -27
  53. data/data/libphonenumber/cpp/src/phonenumbers/logger.h +0 -103
  54. data/data/libphonenumber/cpp/src/phonenumbers/matcher_api.h +0 -54
  55. data/data/libphonenumber/cpp/src/phonenumbers/metadata.cc +0 -12478
  56. data/data/libphonenumber/cpp/src/phonenumbers/metadata.h +0 -29
  57. data/data/libphonenumber/cpp/src/phonenumbers/normalize_utf8.h +0 -50
  58. data/data/libphonenumber/cpp/src/phonenumbers/phonenumber.cc +0 -87
  59. data/data/libphonenumber/cpp/src/phonenumbers/phonenumber.h +0 -40
  60. data/data/libphonenumber/cpp/src/phonenumbers/phonenumbermatch.cc +0 -91
  61. data/data/libphonenumber/cpp/src/phonenumbers/phonenumbermatch.h +0 -125
  62. data/data/libphonenumber/cpp/src/phonenumbers/phonenumbermatcher.cc +0 -907
  63. data/data/libphonenumber/cpp/src/phonenumbers/phonenumbermatcher.h +0 -201
  64. data/data/libphonenumber/cpp/src/phonenumbers/phonenumberutil.cc +0 -2926
  65. data/data/libphonenumber/cpp/src/phonenumbers/phonenumberutil.h +0 -868
  66. data/data/libphonenumber/cpp/src/phonenumbers/regex_based_matcher.cc +0 -68
  67. data/data/libphonenumber/cpp/src/phonenumbers/regex_based_matcher.h +0 -61
  68. data/data/libphonenumber/cpp/src/phonenumbers/regexp_adapter.h +0 -168
  69. data/data/libphonenumber/cpp/src/phonenumbers/regexp_adapter_icu.cc +0 -237
  70. data/data/libphonenumber/cpp/src/phonenumbers/regexp_adapter_icu.h +0 -41
  71. data/data/libphonenumber/cpp/src/phonenumbers/regexp_adapter_re2.cc +0 -155
  72. data/data/libphonenumber/cpp/src/phonenumbers/regexp_adapter_re2.h +0 -40
  73. data/data/libphonenumber/cpp/src/phonenumbers/regexp_cache.cc +0 -60
  74. data/data/libphonenumber/cpp/src/phonenumbers/regexp_cache.h +0 -77
  75. data/data/libphonenumber/cpp/src/phonenumbers/regexp_factory.h +0 -44
  76. data/data/libphonenumber/cpp/src/phonenumbers/region_code.h +0 -40
  77. data/data/libphonenumber/cpp/src/phonenumbers/short_metadata.cc +0 -3032
  78. data/data/libphonenumber/cpp/src/phonenumbers/short_metadata.h +0 -29
  79. data/data/libphonenumber/cpp/src/phonenumbers/shortnumberinfo.cc +0 -427
  80. data/data/libphonenumber/cpp/src/phonenumbers/shortnumberinfo.h +0 -240
  81. data/data/libphonenumber/cpp/src/phonenumbers/stl_util.h +0 -51
  82. data/data/libphonenumber/cpp/src/phonenumbers/string_byte_sink.cc +0 -33
  83. data/data/libphonenumber/cpp/src/phonenumbers/string_byte_sink.h +0 -40
  84. data/data/libphonenumber/cpp/src/phonenumbers/stringutil.cc +0 -448
  85. data/data/libphonenumber/cpp/src/phonenumbers/stringutil.h +0 -176
  86. data/data/libphonenumber/cpp/src/phonenumbers/test_metadata.cc +0 -885
  87. data/data/libphonenumber/cpp/src/phonenumbers/unicodestring.cc +0 -114
  88. data/data/libphonenumber/cpp/src/phonenumbers/unicodestring.h +0 -133
  89. data/data/libphonenumber/cpp/src/phonenumbers/utf/README +0 -1
  90. data/data/libphonenumber/cpp/src/phonenumbers/utf/rune.c +0 -358
  91. data/data/libphonenumber/cpp/src/phonenumbers/utf/stringpiece.h +0 -23
  92. data/data/libphonenumber/cpp/src/phonenumbers/utf/stringprintf.h +0 -22
  93. data/data/libphonenumber/cpp/src/phonenumbers/utf/unicodetext.cc +0 -520
  94. data/data/libphonenumber/cpp/src/phonenumbers/utf/unicodetext.h +0 -461
  95. data/data/libphonenumber/cpp/src/phonenumbers/utf/unilib.cc +0 -68
  96. data/data/libphonenumber/cpp/src/phonenumbers/utf/unilib.h +0 -99
  97. data/data/libphonenumber/cpp/src/phonenumbers/utf/utf.h +0 -240
  98. data/data/libphonenumber/cpp/src/phonenumbers/utf/utfdef.h +0 -27
  99. data/data/libphonenumber/cpp/test/phonenumbers/asyoutypeformatter_test.cc +0 -1237
  100. data/data/libphonenumber/cpp/test/phonenumbers/geocoding/area_code_map_test.cc +0 -201
  101. data/data/libphonenumber/cpp/test/phonenumbers/geocoding/geocoding_data_test.cc +0 -176
  102. data/data/libphonenumber/cpp/test/phonenumbers/geocoding/geocoding_test_data.h +0 -50
  103. data/data/libphonenumber/cpp/test/phonenumbers/geocoding/geocoding_test_program.cc +0 -44
  104. data/data/libphonenumber/cpp/test/phonenumbers/geocoding/mapping_file_provider_test.cc +0 -91
  105. data/data/libphonenumber/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc +0 -214
  106. data/data/libphonenumber/cpp/test/phonenumbers/logger_test.cc +0 -172
  107. data/data/libphonenumber/cpp/test/phonenumbers/phonenumbermatch_test.cc +0 -92
  108. data/data/libphonenumber/cpp/test/phonenumbers/phonenumbermatcher_test.cc +0 -1234
  109. data/data/libphonenumber/cpp/test/phonenumbers/phonenumberutil_test.cc +0 -3992
  110. data/data/libphonenumber/cpp/test/phonenumbers/regexp_adapter_test.cc +0 -322
  111. data/data/libphonenumber/cpp/test/phonenumbers/regexp_cache_test.cc +0 -60
  112. data/data/libphonenumber/cpp/test/phonenumbers/run_tests.cc +0 -21
  113. data/data/libphonenumber/cpp/test/phonenumbers/shortnumberinfo_test.cc +0 -483
  114. data/data/libphonenumber/cpp/test/phonenumbers/stringutil_test.cc +0 -306
  115. data/data/libphonenumber/cpp/test/phonenumbers/test_util.cc +0 -60
  116. data/data/libphonenumber/cpp/test/phonenumbers/test_util.h +0 -199
  117. data/data/libphonenumber/cpp/test/phonenumbers/unicodestring_test.cc +0 -236
  118. data/data/libphonenumber/cpp/test/phonenumbers/utf/unicodetext_test.cc +0 -45
  119. data/data/libphonenumber/debian/README.source +0 -21
  120. data/data/libphonenumber/debian/changelog +0 -5
  121. data/data/libphonenumber/debian/compat +0 -1
  122. data/data/libphonenumber/debian/control +0 -75
  123. data/data/libphonenumber/debian/copyright +0 -74
  124. data/data/libphonenumber/debian/libphonenumber7-dev.install +0 -3
  125. data/data/libphonenumber/debian/libphonenumber7-java.jlibs +0 -1
  126. data/data/libphonenumber/debian/libphonenumber7-java.poms +0 -39
  127. data/data/libphonenumber/debian/libphonenumber7.install +0 -1
  128. data/data/libphonenumber/debian/maven.cleanIgnoreRules +0 -17
  129. data/data/libphonenumber/debian/maven.ignoreRules +0 -23
  130. data/data/libphonenumber/debian/maven.properties +0 -4
  131. data/data/libphonenumber/debian/maven.publishedRules +0 -19
  132. data/data/libphonenumber/debian/maven.rules +0 -31
  133. data/data/libphonenumber/debian/patches/0003-maven-exclude-demo.patch +0 -13
  134. data/data/libphonenumber/debian/patches/series +0 -1
  135. data/data/libphonenumber/debian/rules +0 -89
  136. data/data/libphonenumber/debian/source/format +0 -1
  137. data/data/libphonenumber/debian/watch +0 -3
  138. data/data/libphonenumber/java/build.xml +0 -307
  139. data/data/libphonenumber/java/carrier/pom.xml +0 -68
  140. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/PhoneNumberToCarrierMapper.java +0 -124
  141. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1242_en +0 -0
  142. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1246_en +0 -0
  143. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1264_en +0 -0
  144. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1441_en +0 -0
  145. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1473_en +0 -0
  146. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1649_en +0 -0
  147. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1671_en +0 -0
  148. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1684_en +0 -0
  149. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1758_en +0 -0
  150. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1767_en +0 -0
  151. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1784_en +0 -0
  152. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1787_en +0 -0
  153. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1809_en +0 -0
  154. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1868_en +0 -0
  155. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1869_en +0 -0
  156. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1876_en +0 -0
  157. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/1939_en +0 -0
  158. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/20_en +0 -0
  159. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/211_en +0 -0
  160. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/212_en +0 -0
  161. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/213_en +0 -0
  162. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/216_en +0 -0
  163. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/220_en +0 -0
  164. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/221_en +0 -0
  165. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/222_en +0 -0
  166. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/223_en +0 -0
  167. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/224_en +0 -0
  168. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/225_en +0 -0
  169. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/226_en +0 -0
  170. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/227_en +0 -0
  171. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/228_en +0 -0
  172. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/229_en +0 -0
  173. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/230_en +0 -0
  174. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/231_en +0 -0
  175. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/232_en +0 -0
  176. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/233_en +0 -0
  177. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/234_en +0 -0
  178. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/235_en +0 -0
  179. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/236_en +0 -0
  180. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/237_en +0 -0
  181. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/238_en +0 -0
  182. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/239_en +0 -0
  183. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/240_en +0 -0
  184. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/241_en +0 -0
  185. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/242_en +0 -0
  186. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/243_en +0 -0
  187. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/244_en +0 -0
  188. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/245_en +0 -0
  189. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/248_en +0 -0
  190. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/249_en +0 -0
  191. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/250_en +0 -0
  192. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/251_en +0 -0
  193. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/252_en +0 -0
  194. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/253_en +0 -0
  195. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/254_en +0 -0
  196. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/255_en +0 -0
  197. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/256_en +0 -0
  198. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/257_en +0 -0
  199. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/258_en +0 -0
  200. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/260_en +0 -0
  201. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/261_en +0 -0
  202. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/263_en +0 -0
  203. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/265_en +0 -0
  204. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/267_en +0 -0
  205. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/268_en +0 -0
  206. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/27_en +0 -0
  207. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/297_en +0 -0
  208. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/298_en +0 -0
  209. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/299_en +0 -0
  210. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/30_en +0 -0
  211. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/31_en +0 -0
  212. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/32_en +0 -0
  213. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/33_en +0 -0
  214. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/350_en +0 -0
  215. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/351_en +0 -0
  216. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/352_en +0 -0
  217. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/353_en +0 -0
  218. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/354_en +0 -0
  219. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/355_en +0 -0
  220. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/356_en +0 -0
  221. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/357_en +0 -0
  222. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/358_en +0 -0
  223. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/359_en +0 -0
  224. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/36_en +0 -0
  225. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/370_en +0 -0
  226. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/372_en +0 -0
  227. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/373_en +0 -0
  228. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/374_en +0 -0
  229. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/374_ru +0 -0
  230. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/375_be +0 -0
  231. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/375_en +0 -0
  232. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/375_ru +0 -0
  233. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/376_en +0 -0
  234. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/380_en +0 -0
  235. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/381_en +0 -0
  236. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/382_en +0 -0
  237. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/385_en +0 -0
  238. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/386_en +0 -0
  239. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/387_en +0 -0
  240. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/389_en +0 -0
  241. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/39_en +0 -0
  242. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/40_en +0 -0
  243. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/41_en +0 -0
  244. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/420_en +0 -0
  245. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/421_en +0 -0
  246. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/43_en +0 -0
  247. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/45_en +0 -0
  248. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/47_en +0 -0
  249. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/48_en +0 -0
  250. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/49_en +0 -0
  251. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/501_en +0 -0
  252. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/505_en +0 -0
  253. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/506_en +0 -0
  254. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/507_en +0 -0
  255. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/509_en +0 -0
  256. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/51_en +0 -0
  257. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/53_en +0 -0
  258. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/54_en +0 -0
  259. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/55_en +0 -0
  260. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/56_en +0 -0
  261. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/57_en +0 -0
  262. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/58_en +0 -0
  263. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/591_en +0 -0
  264. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/592_en +0 -0
  265. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/595_en +0 -0
  266. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/597_en +0 -0
  267. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/598_en +0 -0
  268. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/599_en +0 -0
  269. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/60_en +0 -0
  270. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/61_en +0 -0
  271. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/62_en +0 -0
  272. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/63_en +0 -0
  273. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/64_en +0 -0
  274. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/65_en +0 -0
  275. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/66_en +0 -0
  276. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/670_en +0 -0
  277. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/673_en +0 -0
  278. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/675_en +0 -0
  279. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/676_en +0 -0
  280. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/677_en +0 -0
  281. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/678_en +0 -0
  282. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/679_en +0 -0
  283. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/685_en +0 -0
  284. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/686_en +0 -0
  285. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/689_en +0 -0
  286. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/7_en +0 -0
  287. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/84_en +0 -0
  288. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/852_en +0 -0
  289. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/852_zh +0 -0
  290. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/852_zh_Hant +0 -0
  291. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/853_en +0 -0
  292. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/855_en +0 -0
  293. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/856_en +0 -0
  294. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/86_en +0 -0
  295. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/86_zh +0 -0
  296. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/86_zh_Hant +0 -0
  297. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/880_en +0 -0
  298. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/90_en +0 -0
  299. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/91_en +0 -0
  300. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/92_en +0 -0
  301. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/93_en +0 -0
  302. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/93_fa +0 -0
  303. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/94_en +0 -0
  304. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/95_en +0 -0
  305. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/960_en +0 -0
  306. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/961_en +0 -0
  307. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/962_en +0 -0
  308. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/963_en +0 -0
  309. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/964_en +0 -0
  310. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/965_ar +0 -0
  311. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/965_en +0 -0
  312. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/966_en +0 -0
  313. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/967_en +0 -0
  314. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/968_en +0 -0
  315. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/970_en +0 -0
  316. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/971_en +0 -0
  317. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/972_en +0 -0
  318. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/973_en +0 -0
  319. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/974_en +0 -0
  320. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/975_en +0 -0
  321. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/976_en +0 -0
  322. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/977_en +0 -0
  323. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/98_en +0 -0
  324. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/98_fa +0 -0
  325. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/992_en +0 -0
  326. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/993_en +0 -0
  327. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/994_en +0 -0
  328. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/995_en +0 -0
  329. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/996_en +0 -0
  330. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/998_en +0 -0
  331. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/config +0 -0
  332. data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/PhoneNumberToCarrierMapperTest.java +0 -121
  333. data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/carrier/testing_data/1650_en +0 -0
  334. data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/carrier/testing_data/244_en +0 -0
  335. data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/carrier/testing_data/44_en +0 -0
  336. data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/carrier/testing_data/44_sv +0 -0
  337. data/data/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/carrier/testing_data/config +0 -0
  338. data/data/libphonenumber/java/demo/README +0 -16
  339. data/data/libphonenumber/java/demo/build.xml +0 -59
  340. data/data/libphonenumber/java/demo/pom.xml +0 -112
  341. data/data/libphonenumber/java/demo/src/com/google/phonenumbers/PhoneNumberParserServlet.java +0 -434
  342. data/data/libphonenumber/java/demo/war/WEB-INF/appengine-web.xml +0 -11
  343. data/data/libphonenumber/java/demo/war/WEB-INF/lib/commons-fileupload-1.2.1.jar +0 -0
  344. data/data/libphonenumber/java/demo/war/WEB-INF/lib/commons-io-1.4.jar +0 -0
  345. data/data/libphonenumber/java/demo/war/WEB-INF/lib/commons-lang-2.6.jar +0 -0
  346. data/data/libphonenumber/java/demo/war/WEB-INF/logging.properties +0 -13
  347. data/data/libphonenumber/java/demo/war/WEB-INF/web.xml +0 -18
  348. data/data/libphonenumber/java/demo/war/favicon.ico +0 -0
  349. data/data/libphonenumber/java/demo/war/phonenumberparser.jsp +0 -39
  350. data/data/libphonenumber/java/demo/war/stylesheets/main.css +0 -26
  351. data/data/libphonenumber/java/geocoder/pom.xml +0 -76
  352. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/PhoneNumberToTimeZonesMapper.java +0 -191
  353. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/PhoneNumberOfflineGeocoder.java +0 -217
  354. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1201_en +0 -0
  355. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1202_en +0 -0
  356. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1203_en +0 -0
  357. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1204_en +0 -0
  358. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1205_en +0 -0
  359. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1206_en +0 -0
  360. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1207_en +0 -0
  361. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1208_en +0 -0
  362. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1209_en +0 -0
  363. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1210_en +0 -0
  364. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1212_en +0 -0
  365. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1213_en +0 -0
  366. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1214_en +0 -0
  367. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1215_en +0 -0
  368. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1216_en +0 -0
  369. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1217_en +0 -0
  370. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1218_en +0 -0
  371. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1219_en +0 -0
  372. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1220_en +0 -0
  373. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1224_en +0 -0
  374. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1225_en +0 -0
  375. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1226_en +0 -0
  376. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1228_en +0 -0
  377. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1229_en +0 -0
  378. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1231_en +0 -0
  379. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1234_en +0 -0
  380. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1236_en +0 -0
  381. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1239_en +0 -0
  382. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1240_en +0 -0
  383. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1242_en +0 -0
  384. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1248_en +0 -0
  385. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1250_en +0 -0
  386. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1251_en +0 -0
  387. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1252_en +0 -0
  388. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1253_en +0 -0
  389. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1254_en +0 -0
  390. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1256_en +0 -0
  391. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1260_en +0 -0
  392. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1262_en +0 -0
  393. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1267_en +0 -0
  394. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1269_en +0 -0
  395. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1270_en +0 -0
  396. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1272_en +0 -0
  397. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1276_en +0 -0
  398. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1281_en +0 -0
  399. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1289_en +0 -0
  400. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1301_en +0 -0
  401. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1302_en +0 -0
  402. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1303_en +0 -0
  403. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1304_en +0 -0
  404. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1305_en +0 -0
  405. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1306_en +0 -0
  406. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1307_en +0 -0
  407. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1308_en +0 -0
  408. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1309_en +0 -0
  409. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1310_en +0 -0
  410. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1312_en +0 -0
  411. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1313_en +0 -0
  412. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1314_en +0 -0
  413. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1315_en +0 -0
  414. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1316_en +0 -0
  415. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1317_en +0 -0
  416. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1318_en +0 -0
  417. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1319_en +0 -0
  418. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1320_en +0 -0
  419. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1321_en +0 -0
  420. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1323_en +0 -0
  421. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1325_en +0 -0
  422. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1330_en +0 -0
  423. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1331_en +0 -0
  424. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1334_en +0 -0
  425. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1336_en +0 -0
  426. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1337_en +0 -0
  427. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1339_en +0 -0
  428. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1345_en +0 -0
  429. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1346_en +0 -0
  430. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1347_en +0 -0
  431. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1351_en +0 -0
  432. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1352_en +0 -0
  433. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1360_en +0 -0
  434. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1361_en +0 -0
  435. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1364_en +0 -0
  436. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1365_en +0 -0
  437. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1380_en +0 -0
  438. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1385_en +0 -0
  439. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1386_en +0 -0
  440. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1401_en +0 -0
  441. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1402_en +0 -0
  442. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1403_en +0 -0
  443. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1404_en +0 -0
  444. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1405_en +0 -0
  445. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1406_en +0 -0
  446. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1407_en +0 -0
  447. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1408_en +0 -0
  448. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1409_en +0 -0
  449. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1410_en +0 -0
  450. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1412_en +0 -0
  451. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1413_en +0 -0
  452. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1414_en +0 -0
  453. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1415_en +0 -0
  454. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1416_en +0 -0
  455. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1417_en +0 -0
  456. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1418_en +0 -0
  457. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1419_en +0 -0
  458. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1423_en +0 -0
  459. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1424_en +0 -0
  460. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1425_en +0 -0
  461. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1430_en +0 -0
  462. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1431_en +0 -0
  463. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1432_en +0 -0
  464. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1434_en +0 -0
  465. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1435_en +0 -0
  466. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1437_en +0 -0
  467. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1438_en +0 -0
  468. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1440_en +0 -0
  469. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1441_en +0 -0
  470. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1443_en +0 -0
  471. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1450_en +0 -0
  472. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1469_en +0 -0
  473. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1478_en +0 -0
  474. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1479_en +0 -0
  475. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1480_en +0 -0
  476. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1484_en +0 -0
  477. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1501_en +0 -0
  478. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1502_en +0 -0
  479. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1503_en +0 -0
  480. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1504_en +0 -0
  481. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1505_en +0 -0
  482. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1506_en +0 -0
  483. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1507_en +0 -0
  484. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1508_en +0 -0
  485. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1509_en +0 -0
  486. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1510_en +0 -0
  487. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1512_en +0 -0
  488. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1513_en +0 -0
  489. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1514_en +0 -0
  490. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1515_en +0 -0
  491. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1516_en +0 -0
  492. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1517_en +0 -0
  493. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1518_en +0 -0
  494. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1519_en +0 -0
  495. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1520_en +0 -0
  496. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1530_en +0 -0
  497. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1540_en +0 -0
  498. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1541_en +0 -0
  499. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1548_en +0 -0
  500. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1551_en +0 -0
  501. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1559_en +0 -0
  502. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1561_en +0 -0
  503. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1562_en +0 -0
  504. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1563_en +0 -0
  505. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1567_en +0 -0
  506. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1570_en +0 -0
  507. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1571_en +0 -0
  508. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1573_en +0 -0
  509. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1574_en +0 -0
  510. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1575_en +0 -0
  511. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1580_en +0 -0
  512. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1585_en +0 -0
  513. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1586_en +0 -0
  514. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1587_en +0 -0
  515. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1601_en +0 -0
  516. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1602_en +0 -0
  517. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1603_en +0 -0
  518. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1604_en +0 -0
  519. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1605_en +0 -0
  520. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1606_en +0 -0
  521. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1607_en +0 -0
  522. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1608_en +0 -0
  523. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1609_en +0 -0
  524. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1610_en +0 -0
  525. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1612_en +0 -0
  526. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1613_en +0 -0
  527. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1614_en +0 -0
  528. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1615_en +0 -0
  529. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1616_en +0 -0
  530. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1617_en +0 -0
  531. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1618_en +0 -0
  532. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1619_en +0 -0
  533. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1620_en +0 -0
  534. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1623_en +0 -0
  535. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1626_en +0 -0
  536. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1628_en +0 -0
  537. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1629_en +0 -0
  538. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1630_en +0 -0
  539. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1631_en +0 -0
  540. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1636_en +0 -0
  541. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1639_en +0 -0
  542. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1641_en +0 -0
  543. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1646_en +0 -0
  544. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1647_en +0 -0
  545. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1649_en +0 -0
  546. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1650_en +0 -0
  547. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1651_en +0 -0
  548. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1657_en +0 -0
  549. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1660_en +0 -0
  550. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1661_en +0 -0
  551. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1662_en +0 -0
  552. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1667_en +0 -0
  553. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1669_en +0 -0
  554. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1671_en +0 -0
  555. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1678_en +0 -0
  556. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1682_en +0 -0
  557. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1701_en +0 -0
  558. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1702_en +0 -0
  559. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1703_en +0 -0
  560. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1704_en +0 -0
  561. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1705_en +0 -0
  562. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1706_en +0 -0
  563. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1707_en +0 -0
  564. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1708_en +0 -0
  565. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1709_en +0 -0
  566. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1712_en +0 -0
  567. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1713_en +0 -0
  568. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1714_en +0 -0
  569. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1715_en +0 -0
  570. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1716_en +0 -0
  571. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1717_en +0 -0
  572. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1718_en +0 -0
  573. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1719_en +0 -0
  574. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1720_en +0 -0
  575. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1724_en +0 -0
  576. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1725_en +0 -0
  577. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1727_en +0 -0
  578. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1731_en +0 -0
  579. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1732_en +0 -0
  580. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1734_en +0 -0
  581. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1737_en +0 -0
  582. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1740_en +0 -0
  583. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1743_en +0 -0
  584. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1747_en +0 -0
  585. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1754_en +0 -0
  586. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1757_en +0 -0
  587. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1760_en +0 -0
  588. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1763_en +0 -0
  589. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1765_en +0 -0
  590. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1769_en +0 -0
  591. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1770_en +0 -0
  592. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1772_en +0 -0
  593. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1773_en +0 -0
  594. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1774_en +0 -0
  595. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1775_en +0 -0
  596. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1778_en +0 -0
  597. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1779_en +0 -0
  598. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1780_en +0 -0
  599. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1781_en +0 -0
  600. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1782_en +0 -0
  601. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1785_en +0 -0
  602. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1786_en +0 -0
  603. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1801_en +0 -0
  604. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1802_en +0 -0
  605. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1803_en +0 -0
  606. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1804_en +0 -0
  607. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1805_en +0 -0
  608. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1806_en +0 -0
  609. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1807_en +0 -0
  610. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1808_en +0 -0
  611. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1809_en +0 -0
  612. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1810_en +0 -0
  613. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1812_en +0 -0
  614. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1813_en +0 -0
  615. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1814_en +0 -0
  616. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1815_en +0 -0
  617. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1816_en +0 -0
  618. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1817_en +0 -0
  619. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1818_en +0 -0
  620. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1819_en +0 -0
  621. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1825_en +0 -0
  622. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1828_en +0 -0
  623. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1830_en +0 -0
  624. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1831_en +0 -0
  625. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1832_en +0 -0
  626. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1843_en +0 -0
  627. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1845_en +0 -0
  628. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1847_en +0 -0
  629. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1848_en +0 -0
  630. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1850_en +0 -0
  631. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1854_en +0 -0
  632. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1856_en +0 -0
  633. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1857_en +0 -0
  634. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1858_en +0 -0
  635. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1859_en +0 -0
  636. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1860_en +0 -0
  637. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1862_en +0 -0
  638. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1863_en +0 -0
  639. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1864_en +0 -0
  640. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1865_en +0 -0
  641. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1867_en +0 -0
  642. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1870_en +0 -0
  643. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1872_en +0 -0
  644. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1873_en +0 -0
  645. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1876_en +0 -0
  646. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1878_en +0 -0
  647. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1901_en +0 -0
  648. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1902_en +0 -0
  649. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1903_en +0 -0
  650. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1904_en +0 -0
  651. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1905_en +0 -0
  652. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1906_en +0 -0
  653. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1907_en +0 -0
  654. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1908_en +0 -0
  655. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1909_en +0 -0
  656. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1910_en +0 -0
  657. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1912_en +0 -0
  658. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1913_en +0 -0
  659. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1914_en +0 -0
  660. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1915_en +0 -0
  661. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1916_en +0 -0
  662. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1917_en +0 -0
  663. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1918_en +0 -0
  664. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1919_en +0 -0
  665. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1920_en +0 -0
  666. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1925_en +0 -0
  667. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1928_en +0 -0
  668. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1929_en +0 -0
  669. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1930_en +0 -0
  670. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1931_en +0 -0
  671. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1934_en +0 -0
  672. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1936_en +0 -0
  673. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1937_en +0 -0
  674. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1938_en +0 -0
  675. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1940_en +0 -0
  676. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1941_en +0 -0
  677. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1947_en +0 -0
  678. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1949_en +0 -0
  679. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1951_en +0 -0
  680. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1952_en +0 -0
  681. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1954_en +0 -0
  682. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1956_en +0 -0
  683. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1959_en +0 -0
  684. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1970_en +0 -0
  685. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1971_en +0 -0
  686. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1972_en +0 -0
  687. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1973_en +0 -0
  688. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1978_en +0 -0
  689. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1979_en +0 -0
  690. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1980_en +0 -0
  691. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1984_en +0 -0
  692. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1985_en +0 -0
  693. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1989_en +0 -0
  694. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/20_en +0 -0
  695. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/212_en +0 -0
  696. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/212_fr +0 -0
  697. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/213_en +0 -0
  698. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/216_en +0 -0
  699. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/220_en +0 -0
  700. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/221_en +0 -0
  701. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/222_en +0 -0
  702. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/222_fr +0 -0
  703. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/223_en +0 -0
  704. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/224_en +0 -0
  705. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/225_en +0 -0
  706. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/226_en +0 -0
  707. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/228_en +0 -0
  708. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/228_es +0 -0
  709. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/228_fr +0 -0
  710. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/229_en +0 -0
  711. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/229_fr +0 -0
  712. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/230_en +0 -0
  713. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/230_es +0 -0
  714. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/230_fr +0 -0
  715. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/232_en +0 -0
  716. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/233_en +0 -0
  717. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/234_en +0 -0
  718. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/237_en +0 -0
  719. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/238_en +0 -0
  720. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/239_en +0 -0
  721. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/239_pt +0 -0
  722. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/241_en +0 -0
  723. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/242_en +0 -0
  724. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/243_en +0 -0
  725. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/243_fr +0 -0
  726. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/244_en +0 -0
  727. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/244_pt +0 -0
  728. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/245_en +0 -0
  729. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/245_pt +0 -0
  730. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/247_en +0 -0
  731. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/249_en +0 -0
  732. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/251_en +0 -0
  733. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/252_en +0 -0
  734. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/254_en +0 -0
  735. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/256_en +0 -0
  736. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/257_en +0 -0
  737. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/258_en +0 -0
  738. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/258_pt +0 -0
  739. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/260_en +0 -0
  740. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/261_en +0 -0
  741. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/263_en +0 -0
  742. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/264_en +0 -0
  743. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/266_en +0 -0
  744. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/267_en +0 -0
  745. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/268_en +0 -0
  746. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/269_en +0 -0
  747. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/27_en +0 -0
  748. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/290_en +0 -0
  749. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/290_fr +0 -0
  750. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/299_en +0 -0
  751. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/30_el +0 -0
  752. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/30_en +0 -0
  753. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/31_en +0 -0
  754. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/31_nl +0 -0
  755. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/32_de +0 -0
  756. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/32_en +0 -0
  757. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/32_fr +0 -0
  758. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/32_nl +0 -0
  759. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/33_en +0 -0
  760. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/33_fr +0 -0
  761. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/34_en +0 -0
  762. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/34_es +0 -0
  763. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/351_en +0 -0
  764. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/351_pt +0 -0
  765. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/352_de +0 -0
  766. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/352_en +0 -0
  767. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/352_fr +0 -0
  768. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/353_en +0 -0
  769. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/354_en +0 -0
  770. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/355_en +0 -0
  771. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/358_en +0 -0
  772. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/358_fi +0 -0
  773. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/358_se +0 -0
  774. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/359_bg +0 -0
  775. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/359_en +0 -0
  776. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/36_en +0 -0
  777. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/36_hu +0 -0
  778. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/370_en +0 -0
  779. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/371_en +0 -0
  780. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/372_en +0 -0
  781. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/373_en +0 -0
  782. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/373_ro +0 -0
  783. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/373_ru +0 -0
  784. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/374_am +0 -0
  785. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/374_en +0 -0
  786. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/374_ru +0 -0
  787. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/375_be +0 -0
  788. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/375_en +0 -0
  789. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/375_ru +0 -0
  790. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/381_en +0 -0
  791. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/381_sr +0 -0
  792. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/389_en +0 -0
  793. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/39_en +0 -0
  794. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/39_it +0 -0
  795. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/40_en +0 -0
  796. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/40_ro +0 -0
  797. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/41_de +0 -0
  798. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/41_en +0 -0
  799. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/41_fr +0 -0
  800. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/41_it +0 -0
  801. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/420_en +0 -0
  802. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/421_en +0 -0
  803. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/43_de +0 -0
  804. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/43_en +0 -0
  805. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/44_en +0 -0
  806. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/46_en +0 -0
  807. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/46_sv +0 -0
  808. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/47_en +0 -0
  809. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/48_en +0 -0
  810. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/48_pl +0 -0
  811. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/49_de +0 -0
  812. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/49_en +0 -0
  813. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/501_en +0 -0
  814. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/504_en +0 -0
  815. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/51_en +0 -0
  816. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/53_en +0 -0
  817. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/54_en +0 -0
  818. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/54_es +0 -0
  819. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/55_en +0 -0
  820. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/55_pt +0 -0
  821. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/56_en +0 -0
  822. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/56_es +0 -0
  823. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/57_en +0 -0
  824. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/58_en +0 -0
  825. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/58_es +0 -0
  826. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/592_en +0 -0
  827. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/599_en +0 -0
  828. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/62_en +0 -0
  829. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/62_id +0 -0
  830. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/64_en +0 -0
  831. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/66_en +0 -0
  832. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/66_th +0 -0
  833. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/686_en +0 -0
  834. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/688_en +0 -0
  835. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/7_en +0 -0
  836. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/7_ru +0 -0
  837. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/81_en +0 -0
  838. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/81_ja +0 -0
  839. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_ar +0 -0
  840. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_bg +0 -0
  841. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_ca +0 -0
  842. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_cs +0 -0
  843. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_el +0 -0
  844. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_en +0 -0
  845. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_es +0 -0
  846. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_fi +0 -0
  847. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_fr +0 -0
  848. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_hi +0 -0
  849. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_hu +0 -0
  850. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_iw +0 -0
  851. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_ja +0 -0
  852. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_ko +0 -0
  853. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_tr +0 -0
  854. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_zh +0 -0
  855. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/82_zh_Hant +0 -0
  856. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/84_en +0 -0
  857. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/84_vi +0 -0
  858. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/86_en +0 -0
  859. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/86_zh +0 -0
  860. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/886_en +0 -0
  861. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/886_zh +0 -0
  862. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/886_zh_Hant +0 -0
  863. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/90_en +0 -0
  864. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/90_tr +0 -0
  865. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/91_en +0 -0
  866. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/93_en +0 -0
  867. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/93_fa +0 -0
  868. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/94_en +0 -0
  869. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/95_en +0 -0
  870. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/962_en +0 -0
  871. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/966_ar +0 -0
  872. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/966_en +0 -0
  873. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/968_en +0 -0
  874. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/972_en +0 -0
  875. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/975_en +0 -0
  876. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/98_en +0 -0
  877. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/98_fa +0 -0
  878. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/992_en +0 -0
  879. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/994_en +0 -0
  880. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/config +0 -0
  881. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/timezones/data/map_data +0 -0
  882. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/PhoneNumberToTimeZonesMapperTest.java +0 -136
  883. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/PhoneNumberOfflineGeocoderTest.java +0 -170
  884. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1201_de +0 -0
  885. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1201_en +0 -0
  886. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1212_en +0 -0
  887. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1617_en +0 -0
  888. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1650_de +0 -0
  889. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1650_en +0 -0
  890. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/1989_en +0 -0
  891. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/54_en +0 -0
  892. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/82_en +0 -0
  893. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/82_ko +0 -0
  894. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/testing_data/config +0 -0
  895. data/data/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/timezones/testing_data/map_data +0 -0
  896. data/data/libphonenumber/java/internal/prefixmapper/pom.xml +0 -58
  897. data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/DefaultMapStorage.java +0 -94
  898. data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/FlyweightMapStorage.java +0 -263
  899. data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/MappingFileProvider.java +0 -229
  900. data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/PhonePrefixMap.java +0 -216
  901. data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/PhonePrefixMapStorageStrategy.java +0 -108
  902. data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/PrefixFileReader.java +0 -143
  903. data/data/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/PrefixTimeZonesMap.java +0 -126
  904. data/data/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/FlyweightMapStorageTest.java +0 -107
  905. data/data/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/MappingFileProviderTest.java +0 -93
  906. data/data/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/PhonePrefixMapTest.java +0 -193
  907. data/data/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/PrefixFileReaderTest.java +0 -75
  908. data/data/libphonenumber/java/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/PrefixTimeZonesMapTest.java +0 -176
  909. data/data/libphonenumber/java/lib/junit-4.8.1.jar +0 -0
  910. data/data/libphonenumber/java/lib/protobuf-javanano-3.0.0-alpha-7.jar +0 -0
  911. data/data/libphonenumber/java/lib/protobuf-javanano-readme.md +0 -20
  912. data/data/libphonenumber/java/libphonenumber/pom.xml +0 -64
  913. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/AlternateFormatsCountryCodeSet.java +0 -79
  914. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java +0 -664
  915. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMap.java +0 -938
  916. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/MetadataLoader.java +0 -35
  917. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/MetadataManager.java +0 -183
  918. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/MetadataSource.java +0 -38
  919. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/MultiFileMetadataSourceImpl.java +0 -133
  920. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/NumberParseException.java +0 -62
  921. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatch.java +0 -123
  922. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java +0 -727
  923. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java +0 -3312
  924. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/Phonenumber.java +0 -285
  925. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/RegexCache.java +0 -78
  926. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/ShortNumberInfo.java +0 -608
  927. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/ShortNumbersRegionCodeSet.java +0 -274
  928. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/SingleFileMetadataSourceImpl.java +0 -122
  929. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_255 +0 -0
  930. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_27 +0 -0
  931. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_30 +0 -0
  932. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_31 +0 -0
  933. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_34 +0 -0
  934. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_350 +0 -0
  935. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_351 +0 -0
  936. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_352 +0 -0
  937. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_358 +0 -0
  938. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_359 +0 -0
  939. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_36 +0 -0
  940. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_372 +0 -0
  941. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_373 +0 -0
  942. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_375 +0 -0
  943. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_380 +0 -0
  944. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_381 +0 -0
  945. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_385 +0 -0
  946. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_43 +0 -0
  947. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_44 +0 -0
  948. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_49 +0 -0
  949. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_505 +0 -0
  950. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_506 +0 -0
  951. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_54 +0 -0
  952. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_55 +0 -0
  953. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_58 +0 -0
  954. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_595 +0 -0
  955. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_61 +0 -0
  956. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_62 +0 -0
  957. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_63 +0 -0
  958. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_66 +0 -0
  959. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_675 +0 -0
  960. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_676 +0 -0
  961. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_679 +0 -0
  962. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_7 +0 -0
  963. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_81 +0 -0
  964. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_84 +0 -0
  965. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_855 +0 -0
  966. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_90 +0 -0
  967. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_91 +0 -0
  968. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_94 +0 -0
  969. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_95 +0 -0
  970. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_971 +0 -0
  971. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_972 +0 -0
  972. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberAlternateFormatsProto_995 +0 -0
  973. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_800 +0 -0
  974. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_808 +0 -0
  975. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_870 +0 -0
  976. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_878 +0 -0
  977. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_881 +0 -0
  978. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_882 +0 -0
  979. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_883 +0 -0
  980. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_888 +0 -0
  981. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_979 +0 -0
  982. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AC +0 -0
  983. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AD +0 -0
  984. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AE +0 -0
  985. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AF +0 -0
  986. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AG +0 -0
  987. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AI +0 -0
  988. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AL +0 -0
  989. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AM +0 -0
  990. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AO +0 -0
  991. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AR +0 -0
  992. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AS +0 -0
  993. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AT +0 -0
  994. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AU +0 -0
  995. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AW +0 -0
  996. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AX +0 -0
  997. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AZ +0 -0
  998. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BA +0 -0
  999. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BB +0 -0
  1000. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BD +0 -0
  1001. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BE +0 -0
  1002. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BF +0 -0
  1003. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BG +0 -0
  1004. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BH +0 -0
  1005. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BI +0 -0
  1006. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BJ +0 -0
  1007. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BL +0 -0
  1008. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BM +0 -0
  1009. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BN +0 -0
  1010. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BO +0 -0
  1011. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BQ +0 -0
  1012. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BR +0 -0
  1013. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BS +0 -0
  1014. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BT +0 -0
  1015. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BW +0 -0
  1016. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BY +0 -0
  1017. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BZ +0 -0
  1018. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CA +0 -0
  1019. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CC +0 -0
  1020. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CD +0 -0
  1021. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CF +0 -0
  1022. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CG +0 -0
  1023. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CH +0 -0
  1024. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CI +0 -0
  1025. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CK +0 -0
  1026. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CL +0 -0
  1027. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CM +0 -0
  1028. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CN +0 -0
  1029. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CO +0 -0
  1030. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CR +0 -0
  1031. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CU +0 -0
  1032. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CV +0 -0
  1033. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CW +0 -0
  1034. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CX +0 -0
  1035. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CY +0 -0
  1036. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CZ +0 -0
  1037. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DE +0 -0
  1038. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DJ +0 -0
  1039. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DK +0 -0
  1040. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DM +0 -0
  1041. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DO +0 -0
  1042. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DZ +0 -0
  1043. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_EC +0 -0
  1044. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_EE +0 -0
  1045. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_EG +0 -0
  1046. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_EH +0 -0
  1047. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ER +0 -0
  1048. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ES +0 -0
  1049. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ET +0 -0
  1050. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FI +0 -0
  1051. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FJ +0 -0
  1052. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FK +0 -0
  1053. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FM +0 -0
  1054. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FO +0 -0
  1055. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FR +0 -0
  1056. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GA +0 -0
  1057. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GB +0 -0
  1058. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GD +0 -0
  1059. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GE +0 -0
  1060. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GF +0 -0
  1061. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GG +0 -0
  1062. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GH +0 -0
  1063. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GI +0 -0
  1064. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GL +0 -0
  1065. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GM +0 -0
  1066. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GN +0 -0
  1067. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GP +0 -0
  1068. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GQ +0 -0
  1069. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GR +0 -0
  1070. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GT +0 -0
  1071. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GU +0 -0
  1072. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GW +0 -0
  1073. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GY +0 -0
  1074. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HK +0 -0
  1075. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HN +0 -0
  1076. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HR +0 -0
  1077. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HT +0 -0
  1078. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HU +0 -0
  1079. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ID +0 -0
  1080. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IE +0 -0
  1081. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IL +0 -0
  1082. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IM +0 -0
  1083. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IN +0 -0
  1084. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IO +0 -0
  1085. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IQ +0 -0
  1086. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IR +0 -0
  1087. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IS +0 -0
  1088. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IT +0 -0
  1089. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JE +0 -0
  1090. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JM +0 -0
  1091. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JO +0 -0
  1092. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JP +0 -0
  1093. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KE +0 -0
  1094. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KG +0 -0
  1095. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KH +0 -0
  1096. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KI +0 -0
  1097. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KM +0 -0
  1098. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KN +0 -0
  1099. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KP +0 -0
  1100. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KR +0 -0
  1101. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KW +0 -0
  1102. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KY +0 -0
  1103. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KZ +0 -0
  1104. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LA +0 -0
  1105. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LB +0 -0
  1106. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LC +0 -0
  1107. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LI +0 -0
  1108. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LK +0 -0
  1109. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LR +0 -0
  1110. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LS +0 -0
  1111. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LT +0 -0
  1112. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LU +0 -0
  1113. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LV +0 -0
  1114. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LY +0 -0
  1115. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MA +0 -0
  1116. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MC +0 -0
  1117. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MD +0 -0
  1118. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ME +0 -0
  1119. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MF +0 -0
  1120. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MG +0 -0
  1121. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MH +0 -0
  1122. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MK +0 -0
  1123. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ML +0 -0
  1124. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MM +0 -0
  1125. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MN +0 -0
  1126. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MO +0 -0
  1127. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MP +0 -0
  1128. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MQ +0 -0
  1129. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MR +0 -0
  1130. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MS +0 -0
  1131. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MT +0 -0
  1132. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MU +0 -0
  1133. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MV +0 -0
  1134. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MW +0 -0
  1135. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MX +0 -0
  1136. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MY +0 -0
  1137. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MZ +0 -0
  1138. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NA +0 -0
  1139. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NC +0 -0
  1140. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NE +0 -0
  1141. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NF +0 -0
  1142. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NG +0 -0
  1143. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NI +0 -0
  1144. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NL +0 -0
  1145. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NO +0 -0
  1146. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NP +0 -0
  1147. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NR +0 -0
  1148. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NU +0 -0
  1149. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NZ +0 -0
  1150. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_OM +0 -0
  1151. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PA +0 -0
  1152. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PE +0 -0
  1153. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PF +0 -0
  1154. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PG +0 -0
  1155. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PH +0 -0
  1156. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PK +0 -0
  1157. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PL +0 -0
  1158. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PM +0 -0
  1159. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PR +0 -0
  1160. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PS +0 -0
  1161. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PT +0 -0
  1162. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PW +0 -0
  1163. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PY +0 -0
  1164. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_QA +0 -0
  1165. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RE +0 -0
  1166. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RO +0 -0
  1167. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RS +0 -0
  1168. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RU +0 -0
  1169. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RW +0 -0
  1170. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SA +0 -0
  1171. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SB +0 -0
  1172. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SC +0 -0
  1173. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SD +0 -0
  1174. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SE +0 -0
  1175. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SG +0 -0
  1176. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SH +0 -0
  1177. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SI +0 -0
  1178. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SJ +0 -0
  1179. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SK +0 -0
  1180. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SL +0 -0
  1181. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SM +0 -0
  1182. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SN +0 -0
  1183. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SO +0 -0
  1184. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SR +0 -0
  1185. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SS +0 -0
  1186. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ST +0 -0
  1187. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SV +0 -0
  1188. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SX +0 -0
  1189. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SY +0 -0
  1190. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SZ +0 -0
  1191. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TA +0 -0
  1192. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TC +0 -0
  1193. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TD +0 -0
  1194. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TG +0 -0
  1195. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TH +0 -0
  1196. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TJ +0 -0
  1197. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TK +0 -0
  1198. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TL +0 -0
  1199. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TM +0 -0
  1200. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TN +0 -0
  1201. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TO +0 -0
  1202. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TR +0 -0
  1203. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TT +0 -0
  1204. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TV +0 -0
  1205. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TW +0 -0
  1206. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TZ +0 -0
  1207. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UA +0 -0
  1208. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UG +0 -0
  1209. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_US +0 -0
  1210. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UY +0 -0
  1211. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UZ +0 -0
  1212. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VA +0 -0
  1213. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VC +0 -0
  1214. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VE +0 -0
  1215. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VG +0 -0
  1216. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VI +0 -0
  1217. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VN +0 -0
  1218. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VU +0 -0
  1219. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_WF +0 -0
  1220. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_WS +0 -0
  1221. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_YE +0 -0
  1222. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_YT +0 -0
  1223. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ZA +0 -0
  1224. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ZM +0 -0
  1225. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ZW +0 -0
  1226. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AC +0 -0
  1227. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AD +0 -0
  1228. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AE +0 -0
  1229. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AF +0 -0
  1230. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AG +0 -0
  1231. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AI +0 -0
  1232. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AL +0 -0
  1233. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AM +0 -0
  1234. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AO +0 -0
  1235. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AR +0 -0
  1236. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AS +0 -0
  1237. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AT +0 -0
  1238. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AU +0 -0
  1239. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AW +0 -0
  1240. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AX +0 -0
  1241. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_AZ +0 -0
  1242. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BA +0 -0
  1243. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BB +0 -0
  1244. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BD +0 -0
  1245. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BE +0 -0
  1246. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BF +0 -0
  1247. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BG +0 -0
  1248. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BH +0 -0
  1249. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BI +0 -0
  1250. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BJ +0 -0
  1251. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BL +0 -0
  1252. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BM +0 -0
  1253. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BN +0 -0
  1254. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BO +0 -0
  1255. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BQ +0 -0
  1256. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BR +0 -0
  1257. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BS +0 -0
  1258. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BT +0 -0
  1259. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BW +0 -0
  1260. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BY +0 -0
  1261. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_BZ +0 -0
  1262. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CA +0 -0
  1263. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CC +0 -0
  1264. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CD +0 -0
  1265. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CF +0 -0
  1266. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CG +0 -0
  1267. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CH +0 -0
  1268. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CI +0 -0
  1269. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CK +0 -0
  1270. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CL +0 -0
  1271. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CM +0 -0
  1272. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CN +0 -0
  1273. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CO +0 -0
  1274. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CR +0 -0
  1275. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CU +0 -0
  1276. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CV +0 -0
  1277. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CW +0 -0
  1278. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CX +0 -0
  1279. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CY +0 -0
  1280. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_CZ +0 -0
  1281. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DE +0 -0
  1282. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DJ +0 -0
  1283. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DK +0 -0
  1284. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DM +0 -0
  1285. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DO +0 -0
  1286. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_DZ +0 -0
  1287. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_EC +0 -0
  1288. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_EE +0 -0
  1289. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_EG +0 -0
  1290. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_EH +0 -0
  1291. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ER +0 -0
  1292. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ES +0 -0
  1293. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ET +0 -0
  1294. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FI +0 -0
  1295. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FJ +0 -0
  1296. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FK +0 -0
  1297. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FM +0 -0
  1298. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FO +0 -0
  1299. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_FR +0 -0
  1300. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GA +0 -0
  1301. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GB +0 -0
  1302. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GD +0 -0
  1303. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GE +0 -0
  1304. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GF +0 -0
  1305. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GG +0 -0
  1306. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GH +0 -0
  1307. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GI +0 -0
  1308. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GL +0 -0
  1309. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GM +0 -0
  1310. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GN +0 -0
  1311. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GP +0 -0
  1312. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GR +0 -0
  1313. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GT +0 -0
  1314. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GU +0 -0
  1315. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GW +0 -0
  1316. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_GY +0 -0
  1317. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_HK +0 -0
  1318. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_HN +0 -0
  1319. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_HR +0 -0
  1320. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_HT +0 -0
  1321. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_HU +0 -0
  1322. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ID +0 -0
  1323. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IE +0 -0
  1324. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IL +0 -0
  1325. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IM +0 -0
  1326. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IN +0 -0
  1327. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IQ +0 -0
  1328. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IR +0 -0
  1329. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IS +0 -0
  1330. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_IT +0 -0
  1331. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_JE +0 -0
  1332. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_JM +0 -0
  1333. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_JO +0 -0
  1334. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_JP +0 -0
  1335. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KE +0 -0
  1336. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KG +0 -0
  1337. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KH +0 -0
  1338. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KI +0 -0
  1339. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KM +0 -0
  1340. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KN +0 -0
  1341. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KP +0 -0
  1342. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KR +0 -0
  1343. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KW +0 -0
  1344. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KY +0 -0
  1345. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KZ +0 -0
  1346. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LA +0 -0
  1347. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LB +0 -0
  1348. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LC +0 -0
  1349. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LI +0 -0
  1350. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LK +0 -0
  1351. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LR +0 -0
  1352. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LS +0 -0
  1353. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LT +0 -0
  1354. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LU +0 -0
  1355. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LV +0 -0
  1356. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_LY +0 -0
  1357. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MA +0 -0
  1358. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MC +0 -0
  1359. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MD +0 -0
  1360. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ME +0 -0
  1361. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MF +0 -0
  1362. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MG +0 -0
  1363. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MH +0 -0
  1364. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MK +0 -0
  1365. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ML +0 -0
  1366. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MM +0 -0
  1367. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MN +0 -0
  1368. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MO +0 -0
  1369. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MP +0 -0
  1370. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MQ +0 -0
  1371. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MR +0 -0
  1372. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MS +0 -0
  1373. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MT +0 -0
  1374. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MU +0 -0
  1375. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MV +0 -0
  1376. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MW +0 -0
  1377. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MX +0 -0
  1378. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MY +0 -0
  1379. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_MZ +0 -0
  1380. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NA +0 -0
  1381. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NC +0 -0
  1382. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NE +0 -0
  1383. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NF +0 -0
  1384. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NG +0 -0
  1385. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NI +0 -0
  1386. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NL +0 -0
  1387. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NO +0 -0
  1388. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NP +0 -0
  1389. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NR +0 -0
  1390. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NU +0 -0
  1391. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_NZ +0 -0
  1392. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_OM +0 -0
  1393. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PA +0 -0
  1394. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PE +0 -0
  1395. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PF +0 -0
  1396. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PG +0 -0
  1397. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PH +0 -0
  1398. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PK +0 -0
  1399. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PL +0 -0
  1400. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PM +0 -0
  1401. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PR +0 -0
  1402. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PT +0 -0
  1403. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PW +0 -0
  1404. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PY +0 -0
  1405. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_QA +0 -0
  1406. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_RE +0 -0
  1407. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_RO +0 -0
  1408. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_RS +0 -0
  1409. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_RU +0 -0
  1410. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_RW +0 -0
  1411. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SA +0 -0
  1412. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SB +0 -0
  1413. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SC +0 -0
  1414. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SD +0 -0
  1415. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SE +0 -0
  1416. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SG +0 -0
  1417. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SH +0 -0
  1418. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SI +0 -0
  1419. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SJ +0 -0
  1420. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SK +0 -0
  1421. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SL +0 -0
  1422. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SM +0 -0
  1423. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SN +0 -0
  1424. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SO +0 -0
  1425. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SR +0 -0
  1426. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ST +0 -0
  1427. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SV +0 -0
  1428. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SX +0 -0
  1429. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SY +0 -0
  1430. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_SZ +0 -0
  1431. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TC +0 -0
  1432. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TD +0 -0
  1433. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TG +0 -0
  1434. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TH +0 -0
  1435. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TJ +0 -0
  1436. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TL +0 -0
  1437. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TM +0 -0
  1438. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TN +0 -0
  1439. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TO +0 -0
  1440. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TR +0 -0
  1441. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TT +0 -0
  1442. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TV +0 -0
  1443. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TW +0 -0
  1444. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_TZ +0 -0
  1445. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_UA +0 -0
  1446. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_UG +0 -0
  1447. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_US +0 -0
  1448. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_UY +0 -0
  1449. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_UZ +0 -0
  1450. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VA +0 -0
  1451. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VC +0 -0
  1452. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VE +0 -0
  1453. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VG +0 -0
  1454. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VI +0 -0
  1455. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VN +0 -0
  1456. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_VU +0 -0
  1457. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_WF +0 -0
  1458. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_WS +0 -0
  1459. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_YE +0 -0
  1460. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_YT +0 -0
  1461. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ZA +0 -0
  1462. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ZM +0 -0
  1463. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_ZW +0 -0
  1464. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/internal/MatcherApi.java +0 -38
  1465. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/internal/RegexBasedMatcher.java +0 -52
  1466. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/nano/Phonemetadata.java +0 -1040
  1467. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java +0 -1173
  1468. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMapForTesting.java +0 -146
  1469. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ExampleNumbersTest.java +0 -274
  1470. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/MetadataManagerTest.java +0 -51
  1471. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/MultiFileMetadataSourceImplTest.java +0 -67
  1472. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberMatchTest.java +0 -70
  1473. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberMatcherTest.java +0 -1090
  1474. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java +0 -2591
  1475. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/PhonenumberTest.java +0 -112
  1476. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/RegexCacheTest.java +0 -55
  1477. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/RegionCode.java +0 -61
  1478. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ShortNumberInfoTest.java +0 -355
  1479. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/SingleFileMetadataSourceImplTest.java +0 -40
  1480. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/TestMetadataTestCase.java +0 -47
  1481. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_800 +0 -0
  1482. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_979 +0 -0
  1483. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AD +0 -0
  1484. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AE +0 -0
  1485. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AO +0 -0
  1486. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AR +0 -0
  1487. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AU +0 -0
  1488. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_BB +0 -0
  1489. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_BR +0 -0
  1490. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_BS +0 -0
  1491. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_BY +0 -0
  1492. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_CA +0 -0
  1493. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_CC +0 -0
  1494. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_CN +0 -0
  1495. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_CX +0 -0
  1496. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_DE +0 -0
  1497. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_FR +0 -0
  1498. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_GB +0 -0
  1499. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_GG +0 -0
  1500. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_HU +0 -0
  1501. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_IT +0 -0
  1502. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_JP +0 -0
  1503. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_KR +0 -0
  1504. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_MX +0 -0
  1505. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_NZ +0 -0
  1506. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_PL +0 -0
  1507. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_RE +0 -0
  1508. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_SE +0 -0
  1509. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_SG +0 -0
  1510. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_US +0 -0
  1511. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_YT +0 -0
  1512. data/data/libphonenumber/java/pending_code_changes.txt +0 -1
  1513. data/data/libphonenumber/java/pom.xml +0 -185
  1514. data/data/libphonenumber/java/release_notes.txt +0 -1306
  1515. data/data/libphonenumber/javadoc/allclasses-frame.html +0 -49
  1516. data/data/libphonenumber/javadoc/allclasses-noframe.html +0 -49
  1517. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/AsYouTypeFormatter.html +0 -302
  1518. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/NumberParseException.ErrorType.html +0 -369
  1519. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/NumberParseException.html +0 -311
  1520. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberMatch.html +0 -378
  1521. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.Leniency.html +0 -330
  1522. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.MatchType.html +0 -373
  1523. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.PhoneNumberFormat.html +0 -365
  1524. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.PhoneNumberType.html +0 -469
  1525. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.ValidationResult.html +0 -357
  1526. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/PhoneNumberUtil.html +0 -1405
  1527. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/package-frame.html +0 -68
  1528. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/package-summary.html +0 -211
  1529. data/data/libphonenumber/javadoc/com/google/i18n/phonenumbers/package-tree.html +0 -161
  1530. data/data/libphonenumber/javadoc/constant-values.html +0 -142
  1531. data/data/libphonenumber/javadoc/deprecated-list.html +0 -142
  1532. data/data/libphonenumber/javadoc/help-doc.html +0 -209
  1533. data/data/libphonenumber/javadoc/index-all.html +0 -413
  1534. data/data/libphonenumber/javadoc/index.html +0 -36
  1535. data/data/libphonenumber/javadoc/overview-tree.html +0 -163
  1536. data/data/libphonenumber/javadoc/package-list +0 -1
  1537. data/data/libphonenumber/javadoc/resources/inherit.gif +0 -0
  1538. data/data/libphonenumber/javadoc/serialized-form.html +0 -184
  1539. data/data/libphonenumber/javadoc/stylesheet.css +0 -29
  1540. data/data/libphonenumber/javascript/README.md +0 -86
  1541. data/data/libphonenumber/javascript/build.xml +0 -137
  1542. data/data/libphonenumber/javascript/i18n/phonenumbers/asyoutypeformatter.js +0 -1113
  1543. data/data/libphonenumber/javascript/i18n/phonenumbers/asyoutypeformatter_test.html +0 -38
  1544. data/data/libphonenumber/javascript/i18n/phonenumbers/asyoutypeformatter_test.js +0 -1207
  1545. data/data/libphonenumber/javascript/i18n/phonenumbers/demo-compiled.html +0 -53
  1546. data/data/libphonenumber/javascript/i18n/phonenumbers/demo-compiled.js +0 -459
  1547. data/data/libphonenumber/javascript/i18n/phonenumbers/demo.html +0 -62
  1548. data/data/libphonenumber/javascript/i18n/phonenumbers/demo.js +0 -161
  1549. data/data/libphonenumber/javascript/i18n/phonenumbers/metadata.js +0 -5234
  1550. data/data/libphonenumber/javascript/i18n/phonenumbers/metadatafortesting.js +0 -632
  1551. data/data/libphonenumber/javascript/i18n/phonenumbers/metadatalite.js +0 -5234
  1552. data/data/libphonenumber/javascript/i18n/phonenumbers/phonemetadata.pb.js +0 -2443
  1553. data/data/libphonenumber/javascript/i18n/phonenumbers/phonenumber.pb.js +0 -536
  1554. data/data/libphonenumber/javascript/i18n/phonenumbers/phonenumberutil.js +0 -4223
  1555. data/data/libphonenumber/javascript/i18n/phonenumbers/phonenumberutil_test.html +0 -37
  1556. data/data/libphonenumber/javascript/i18n/phonenumbers/phonenumberutil_test.js +0 -3330
  1557. data/data/libphonenumber/javascript/i18n/phonenumbers/regioncodefortesting.js +0 -66
  1558. data/data/libphonenumber/pom.xml +0 -26
  1559. data/data/libphonenumber/resources/PhoneNumberAlternateFormats.xml +0 -1869
  1560. data/data/libphonenumber/resources/PhoneNumberMetadata.xml +0 -25723
  1561. data/data/libphonenumber/resources/PhoneNumberMetadataForTesting.xml +0 -973
  1562. data/data/libphonenumber/resources/ShortNumberMetadata.xml +0 -9837
  1563. data/data/libphonenumber/resources/carrier/README +0 -2
  1564. data/data/libphonenumber/resources/carrier/ar/965.txt +0 -17
  1565. data/data/libphonenumber/resources/carrier/be/375.txt +0 -28
  1566. data/data/libphonenumber/resources/carrier/en/1.txt +0 -479
  1567. data/data/libphonenumber/resources/carrier/en/20.txt +0 -17
  1568. data/data/libphonenumber/resources/carrier/en/211.txt +0 -18
  1569. data/data/libphonenumber/resources/carrier/en/212.txt +0 -124
  1570. data/data/libphonenumber/resources/carrier/en/213.txt +0 -20
  1571. data/data/libphonenumber/resources/carrier/en/216.txt +0 -28
  1572. data/data/libphonenumber/resources/carrier/en/220.txt +0 -19
  1573. data/data/libphonenumber/resources/carrier/en/221.txt +0 -23
  1574. data/data/libphonenumber/resources/carrier/en/222.txt +0 -19
  1575. data/data/libphonenumber/resources/carrier/en/223.txt +0 -31
  1576. data/data/libphonenumber/resources/carrier/en/224.txt +0 -21
  1577. data/data/libphonenumber/resources/carrier/en/225.txt +0 -56
  1578. data/data/libphonenumber/resources/carrier/en/226.txt +0 -36
  1579. data/data/libphonenumber/resources/carrier/en/227.txt +0 -26
  1580. data/data/libphonenumber/resources/carrier/en/228.txt +0 -16
  1581. data/data/libphonenumber/resources/carrier/en/229.txt +0 -29
  1582. data/data/libphonenumber/resources/carrier/en/230.txt +0 -63
  1583. data/data/libphonenumber/resources/carrier/en/231.txt +0 -22
  1584. data/data/libphonenumber/resources/carrier/en/232.txt +0 -31
  1585. data/data/libphonenumber/resources/carrier/en/233.txt +0 -28
  1586. data/data/libphonenumber/resources/carrier/en/234.txt +0 -257
  1587. data/data/libphonenumber/resources/carrier/en/235.txt +0 -17
  1588. data/data/libphonenumber/resources/carrier/en/236.txt +0 -18
  1589. data/data/libphonenumber/resources/carrier/en/237.txt +0 -28
  1590. data/data/libphonenumber/resources/carrier/en/238.txt +0 -20
  1591. data/data/libphonenumber/resources/carrier/en/239.txt +0 -17
  1592. data/data/libphonenumber/resources/carrier/en/240.txt +0 -17
  1593. data/data/libphonenumber/resources/carrier/en/241.txt +0 -35
  1594. data/data/libphonenumber/resources/carrier/en/242.txt +0 -19
  1595. data/data/libphonenumber/resources/carrier/en/243.txt +0 -23
  1596. data/data/libphonenumber/resources/carrier/en/244.txt +0 -19
  1597. data/data/libphonenumber/resources/carrier/en/245.txt +0 -18
  1598. data/data/libphonenumber/resources/carrier/en/248.txt +0 -18
  1599. data/data/libphonenumber/resources/carrier/en/249.txt +0 -20
  1600. data/data/libphonenumber/resources/carrier/en/250.txt +0 -15
  1601. data/data/libphonenumber/resources/carrier/en/251.txt +0 -21
  1602. data/data/libphonenumber/resources/carrier/en/252.txt +0 -34
  1603. data/data/libphonenumber/resources/carrier/en/253.txt +0 -17
  1604. data/data/libphonenumber/resources/carrier/en/254.txt +0 -63
  1605. data/data/libphonenumber/resources/carrier/en/255.txt +0 -29
  1606. data/data/libphonenumber/resources/carrier/en/256.txt +0 -26
  1607. data/data/libphonenumber/resources/carrier/en/257.txt +0 -28
  1608. data/data/libphonenumber/resources/carrier/en/258.txt +0 -18
  1609. data/data/libphonenumber/resources/carrier/en/260.txt +0 -17
  1610. data/data/libphonenumber/resources/carrier/en/261.txt +0 -18
  1611. data/data/libphonenumber/resources/carrier/en/263.txt +0 -18
  1612. data/data/libphonenumber/resources/carrier/en/265.txt +0 -16
  1613. data/data/libphonenumber/resources/carrier/en/267.txt +0 -57
  1614. data/data/libphonenumber/resources/carrier/en/268.txt +0 -15
  1615. data/data/libphonenumber/resources/carrier/en/27.txt +0 -70
  1616. data/data/libphonenumber/resources/carrier/en/297.txt +0 -29
  1617. data/data/libphonenumber/resources/carrier/en/298.txt +0 -18
  1618. data/data/libphonenumber/resources/carrier/en/299.txt +0 -17
  1619. data/data/libphonenumber/resources/carrier/en/30.txt +0 -20
  1620. data/data/libphonenumber/resources/carrier/en/31.txt +0 -65
  1621. data/data/libphonenumber/resources/carrier/en/32.txt +0 -36
  1622. data/data/libphonenumber/resources/carrier/en/33.txt +0 -72
  1623. data/data/libphonenumber/resources/carrier/en/350.txt +0 -19
  1624. data/data/libphonenumber/resources/carrier/en/351.txt +0 -26
  1625. data/data/libphonenumber/resources/carrier/en/352.txt +0 -27
  1626. data/data/libphonenumber/resources/carrier/en/353.txt +0 -20
  1627. data/data/libphonenumber/resources/carrier/en/354.txt +0 -55
  1628. data/data/libphonenumber/resources/carrier/en/355.txt +0 -18
  1629. data/data/libphonenumber/resources/carrier/en/356.txt +0 -27
  1630. data/data/libphonenumber/resources/carrier/en/357.txt +0 -20
  1631. data/data/libphonenumber/resources/carrier/en/358.txt +0 -44
  1632. data/data/libphonenumber/resources/carrier/en/359.txt +0 -19
  1633. data/data/libphonenumber/resources/carrier/en/36.txt +0 -17
  1634. data/data/libphonenumber/resources/carrier/en/370.txt +0 -50
  1635. data/data/libphonenumber/resources/carrier/en/372.txt +0 -30
  1636. data/data/libphonenumber/resources/carrier/en/373.txt +0 -44
  1637. data/data/libphonenumber/resources/carrier/en/374.txt +0 -29
  1638. data/data/libphonenumber/resources/carrier/en/375.txt +0 -28
  1639. data/data/libphonenumber/resources/carrier/en/376.txt +0 -15
  1640. data/data/libphonenumber/resources/carrier/en/380.txt +0 -26
  1641. data/data/libphonenumber/resources/carrier/en/381.txt +0 -23
  1642. data/data/libphonenumber/resources/carrier/en/382.txt +0 -29
  1643. data/data/libphonenumber/resources/carrier/en/385.txt +0 -22
  1644. data/data/libphonenumber/resources/carrier/en/386.txt +0 -23
  1645. data/data/libphonenumber/resources/carrier/en/387.txt +0 -20
  1646. data/data/libphonenumber/resources/carrier/en/389.txt +0 -23
  1647. data/data/libphonenumber/resources/carrier/en/39.txt +0 -23
  1648. data/data/libphonenumber/resources/carrier/en/40.txt +0 -21
  1649. data/data/libphonenumber/resources/carrier/en/41.txt +0 -18
  1650. data/data/libphonenumber/resources/carrier/en/420.txt +0 -32
  1651. data/data/libphonenumber/resources/carrier/en/421.txt +0 -38
  1652. data/data/libphonenumber/resources/carrier/en/43.txt +0 -26
  1653. data/data/libphonenumber/resources/carrier/en/45.txt +0 -599
  1654. data/data/libphonenumber/resources/carrier/en/47.txt +0 -239
  1655. data/data/libphonenumber/resources/carrier/en/48.txt +0 -118
  1656. data/data/libphonenumber/resources/carrier/en/49.txt +0 -50
  1657. data/data/libphonenumber/resources/carrier/en/501.txt +0 -16
  1658. data/data/libphonenumber/resources/carrier/en/505.txt +0 -101
  1659. data/data/libphonenumber/resources/carrier/en/506.txt +0 -50
  1660. data/data/libphonenumber/resources/carrier/en/507.txt +0 -84
  1661. data/data/libphonenumber/resources/carrier/en/509.txt +0 -24
  1662. data/data/libphonenumber/resources/carrier/en/51.txt +0 -584
  1663. data/data/libphonenumber/resources/carrier/en/53.txt +0 -15
  1664. data/data/libphonenumber/resources/carrier/en/54.txt +0 -98
  1665. data/data/libphonenumber/resources/carrier/en/55.txt +0 -9479
  1666. data/data/libphonenumber/resources/carrier/en/56.txt +0 -538
  1667. data/data/libphonenumber/resources/carrier/en/57.txt +0 -38
  1668. data/data/libphonenumber/resources/carrier/en/58.txt +0 -18
  1669. data/data/libphonenumber/resources/carrier/en/591.txt +0 -51
  1670. data/data/libphonenumber/resources/carrier/en/592.txt +0 -15
  1671. data/data/libphonenumber/resources/carrier/en/595.txt +0 -19
  1672. data/data/libphonenumber/resources/carrier/en/597.txt +0 -33
  1673. data/data/libphonenumber/resources/carrier/en/598.txt +0 -25
  1674. data/data/libphonenumber/resources/carrier/en/599.txt +0 -49
  1675. data/data/libphonenumber/resources/carrier/en/60.txt +0 -301
  1676. data/data/libphonenumber/resources/carrier/en/61.txt +0 -95
  1677. data/data/libphonenumber/resources/carrier/en/62.txt +0 -702
  1678. data/data/libphonenumber/resources/carrier/en/63.txt +0 -55
  1679. data/data/libphonenumber/resources/carrier/en/64.txt +0 -22
  1680. data/data/libphonenumber/resources/carrier/en/65.txt +0 -591
  1681. data/data/libphonenumber/resources/carrier/en/66.txt +0 -48
  1682. data/data/libphonenumber/resources/carrier/en/670.txt +0 -16
  1683. data/data/libphonenumber/resources/carrier/en/673.txt +0 -22
  1684. data/data/libphonenumber/resources/carrier/en/675.txt +0 -30
  1685. data/data/libphonenumber/resources/carrier/en/676.txt +0 -39
  1686. data/data/libphonenumber/resources/carrier/en/677.txt +0 -44
  1687. data/data/libphonenumber/resources/carrier/en/678.txt +0 -35
  1688. data/data/libphonenumber/resources/carrier/en/679.txt +0 -23
  1689. data/data/libphonenumber/resources/carrier/en/685.txt +0 -17
  1690. data/data/libphonenumber/resources/carrier/en/686.txt +0 -20
  1691. data/data/libphonenumber/resources/carrier/en/689.txt +0 -16
  1692. data/data/libphonenumber/resources/carrier/en/7.txt +0 -25
  1693. data/data/libphonenumber/resources/carrier/en/84.txt +0 -27
  1694. data/data/libphonenumber/resources/carrier/en/852.txt +0 -282
  1695. data/data/libphonenumber/resources/carrier/en/853.txt +0 -326
  1696. data/data/libphonenumber/resources/carrier/en/855.txt +0 -36
  1697. data/data/libphonenumber/resources/carrier/en/856.txt +0 -18
  1698. data/data/libphonenumber/resources/carrier/en/86.txt +0 -64
  1699. data/data/libphonenumber/resources/carrier/en/880.txt +0 -20
  1700. data/data/libphonenumber/resources/carrier/en/90.txt +0 -26
  1701. data/data/libphonenumber/resources/carrier/en/91.txt +0 -2883
  1702. data/data/libphonenumber/resources/carrier/en/92.txt +0 -51
  1703. data/data/libphonenumber/resources/carrier/en/93.txt +0 -24
  1704. data/data/libphonenumber/resources/carrier/en/94.txt +0 -22
  1705. data/data/libphonenumber/resources/carrier/en/95.txt +0 -46
  1706. data/data/libphonenumber/resources/carrier/en/960.txt +0 -16
  1707. data/data/libphonenumber/resources/carrier/en/961.txt +0 -35
  1708. data/data/libphonenumber/resources/carrier/en/962.txt +0 -20
  1709. data/data/libphonenumber/resources/carrier/en/963.txt +0 -50
  1710. data/data/libphonenumber/resources/carrier/en/964.txt +0 -27
  1711. data/data/libphonenumber/resources/carrier/en/965.txt +0 -17
  1712. data/data/libphonenumber/resources/carrier/en/966.txt +0 -27
  1713. data/data/libphonenumber/resources/carrier/en/967.txt +0 -21
  1714. data/data/libphonenumber/resources/carrier/en/968.txt +0 -34
  1715. data/data/libphonenumber/resources/carrier/en/970.txt +0 -16
  1716. data/data/libphonenumber/resources/carrier/en/971.txt +0 -19
  1717. data/data/libphonenumber/resources/carrier/en/972.txt +0 -40
  1718. data/data/libphonenumber/resources/carrier/en/973.txt +0 -32
  1719. data/data/libphonenumber/resources/carrier/en/974.txt +0 -18
  1720. data/data/libphonenumber/resources/carrier/en/975.txt +0 -17
  1721. data/data/libphonenumber/resources/carrier/en/976.txt +0 -21
  1722. data/data/libphonenumber/resources/carrier/en/977.txt +0 -26
  1723. data/data/libphonenumber/resources/carrier/en/98.txt +0 -30
  1724. data/data/libphonenumber/resources/carrier/en/992.txt +0 -27
  1725. data/data/libphonenumber/resources/carrier/en/993.txt +0 -19
  1726. data/data/libphonenumber/resources/carrier/en/994.txt +0 -23
  1727. data/data/libphonenumber/resources/carrier/en/995.txt +0 -34
  1728. data/data/libphonenumber/resources/carrier/en/996.txt +0 -22
  1729. data/data/libphonenumber/resources/carrier/en/998.txt +0 -33
  1730. data/data/libphonenumber/resources/carrier/fa/93.txt +0 -24
  1731. data/data/libphonenumber/resources/carrier/fa/98.txt +0 -30
  1732. data/data/libphonenumber/resources/carrier/ru/374.txt +0 -28
  1733. data/data/libphonenumber/resources/carrier/ru/375.txt +0 -28
  1734. data/data/libphonenumber/resources/carrier/zh/852.txt +0 -283
  1735. data/data/libphonenumber/resources/carrier/zh/86.txt +0 -64
  1736. data/data/libphonenumber/resources/carrier/zh_Hant/852.txt +0 -283
  1737. data/data/libphonenumber/resources/carrier/zh_Hant/86.txt +0 -64
  1738. data/data/libphonenumber/resources/geocoding/am/374.txt +0 -177
  1739. data/data/libphonenumber/resources/geocoding/ar/82.txt +0 -34
  1740. data/data/libphonenumber/resources/geocoding/ar/966.txt +0 -27
  1741. data/data/libphonenumber/resources/geocoding/be/375.txt +0 -144
  1742. data/data/libphonenumber/resources/geocoding/bg/359.txt +0 -2105
  1743. data/data/libphonenumber/resources/geocoding/bg/82.txt +0 -34
  1744. data/data/libphonenumber/resources/geocoding/ca/82.txt +0 -34
  1745. data/data/libphonenumber/resources/geocoding/cs/82.txt +0 -35
  1746. data/data/libphonenumber/resources/geocoding/de/32.txt +0 -59
  1747. data/data/libphonenumber/resources/geocoding/de/352.txt +0 -229
  1748. data/data/libphonenumber/resources/geocoding/de/41.txt +0 -37
  1749. data/data/libphonenumber/resources/geocoding/de/43.txt +0 -1037
  1750. data/data/libphonenumber/resources/geocoding/de/49.txt +0 -5219
  1751. data/data/libphonenumber/resources/geocoding/el/30.txt +0 -259
  1752. data/data/libphonenumber/resources/geocoding/el/82.txt +0 -28
  1753. data/data/libphonenumber/resources/geocoding/en/1.txt +0 -36238
  1754. data/data/libphonenumber/resources/geocoding/en/20.txt +0 -45
  1755. data/data/libphonenumber/resources/geocoding/en/212.txt +0 -86
  1756. data/data/libphonenumber/resources/geocoding/en/213.txt +0 -30
  1757. data/data/libphonenumber/resources/geocoding/en/216.txt +0 -26
  1758. data/data/libphonenumber/resources/geocoding/en/220.txt +0 -59
  1759. data/data/libphonenumber/resources/geocoding/en/221.txt +0 -19
  1760. data/data/libphonenumber/resources/geocoding/en/222.txt +0 -28
  1761. data/data/libphonenumber/resources/geocoding/en/223.txt +0 -37
  1762. data/data/libphonenumber/resources/geocoding/en/224.txt +0 -38
  1763. data/data/libphonenumber/resources/geocoding/en/225.txt +0 -28
  1764. data/data/libphonenumber/resources/geocoding/en/226.txt +0 -50
  1765. data/data/libphonenumber/resources/geocoding/en/228.txt +0 -24
  1766. data/data/libphonenumber/resources/geocoding/en/229.txt +0 -52
  1767. data/data/libphonenumber/resources/geocoding/en/230.txt +0 -25
  1768. data/data/libphonenumber/resources/geocoding/en/232.txt +0 -20
  1769. data/data/libphonenumber/resources/geocoding/en/233.txt +0 -86
  1770. data/data/libphonenumber/resources/geocoding/en/234.txt +0 -79
  1771. data/data/libphonenumber/resources/geocoding/en/237.txt +0 -125
  1772. data/data/libphonenumber/resources/geocoding/en/238.txt +0 -54
  1773. data/data/libphonenumber/resources/geocoding/en/239.txt +0 -35
  1774. data/data/libphonenumber/resources/geocoding/en/241.txt +0 -48
  1775. data/data/libphonenumber/resources/geocoding/en/242.txt +0 -23
  1776. data/data/libphonenumber/resources/geocoding/en/243.txt +0 -22
  1777. data/data/libphonenumber/resources/geocoding/en/244.txt +0 -54
  1778. data/data/libphonenumber/resources/geocoding/en/245.txt +0 -38
  1779. data/data/libphonenumber/resources/geocoding/en/247.txt +0 -27
  1780. data/data/libphonenumber/resources/geocoding/en/249.txt +0 -28
  1781. data/data/libphonenumber/resources/geocoding/en/251.txt +0 -386
  1782. data/data/libphonenumber/resources/geocoding/en/252.txt +0 -21
  1783. data/data/libphonenumber/resources/geocoding/en/254.txt +0 -46
  1784. data/data/libphonenumber/resources/geocoding/en/256.txt +0 -30
  1785. data/data/libphonenumber/resources/geocoding/en/257.txt +0 -28
  1786. data/data/libphonenumber/resources/geocoding/en/258.txt +0 -27
  1787. data/data/libphonenumber/resources/geocoding/en/260.txt +0 -26
  1788. data/data/libphonenumber/resources/geocoding/en/261.txt +0 -40
  1789. data/data/libphonenumber/resources/geocoding/en/263.txt +0 -134
  1790. data/data/libphonenumber/resources/geocoding/en/264.txt +0 -1047
  1791. data/data/libphonenumber/resources/geocoding/en/266.txt +0 -18
  1792. data/data/libphonenumber/resources/geocoding/en/267.txt +0 -35
  1793. data/data/libphonenumber/resources/geocoding/en/268.txt +0 -54
  1794. data/data/libphonenumber/resources/geocoding/en/269.txt +0 -32
  1795. data/data/libphonenumber/resources/geocoding/en/27.txt +0 -57
  1796. data/data/libphonenumber/resources/geocoding/en/290.txt +0 -24
  1797. data/data/libphonenumber/resources/geocoding/en/299.txt +0 -43
  1798. data/data/libphonenumber/resources/geocoding/en/30.txt +0 -261
  1799. data/data/libphonenumber/resources/geocoding/en/31.txt +0 -137
  1800. data/data/libphonenumber/resources/geocoding/en/32.txt +0 -59
  1801. data/data/libphonenumber/resources/geocoding/en/33.txt +0 -5592
  1802. data/data/libphonenumber/resources/geocoding/en/34.txt +0 -123
  1803. data/data/libphonenumber/resources/geocoding/en/351.txt +0 -67
  1804. data/data/libphonenumber/resources/geocoding/en/352.txt +0 -229
  1805. data/data/libphonenumber/resources/geocoding/en/353.txt +0 -71
  1806. data/data/libphonenumber/resources/geocoding/en/354.txt +0 -23
  1807. data/data/libphonenumber/resources/geocoding/en/355.txt +0 -188
  1808. data/data/libphonenumber/resources/geocoding/en/358.txt +0 -74
  1809. data/data/libphonenumber/resources/geocoding/en/359.txt +0 -2102
  1810. data/data/libphonenumber/resources/geocoding/en/36.txt +0 -70
  1811. data/data/libphonenumber/resources/geocoding/en/370.txt +0 -64
  1812. data/data/libphonenumber/resources/geocoding/en/371.txt +0 -56
  1813. data/data/libphonenumber/resources/geocoding/en/372.txt +0 -35
  1814. data/data/libphonenumber/resources/geocoding/en/373.txt +0 -62
  1815. data/data/libphonenumber/resources/geocoding/en/374.txt +0 -184
  1816. data/data/libphonenumber/resources/geocoding/en/375.txt +0 -142
  1817. data/data/libphonenumber/resources/geocoding/en/381.txt +0 -50
  1818. data/data/libphonenumber/resources/geocoding/en/389.txt +0 -28
  1819. data/data/libphonenumber/resources/geocoding/en/39.txt +0 -137
  1820. data/data/libphonenumber/resources/geocoding/en/40.txt +0 -98
  1821. data/data/libphonenumber/resources/geocoding/en/41.txt +0 -37
  1822. data/data/libphonenumber/resources/geocoding/en/420.txt +0 -37
  1823. data/data/libphonenumber/resources/geocoding/en/421.txt +0 -42
  1824. data/data/libphonenumber/resources/geocoding/en/43.txt +0 -1036
  1825. data/data/libphonenumber/resources/geocoding/en/44.txt +0 -870
  1826. data/data/libphonenumber/resources/geocoding/en/46.txt +0 -280
  1827. data/data/libphonenumber/resources/geocoding/en/47.txt +0 -49
  1828. data/data/libphonenumber/resources/geocoding/en/48.txt +0 -65
  1829. data/data/libphonenumber/resources/geocoding/en/49.txt +0 -5218
  1830. data/data/libphonenumber/resources/geocoding/en/501.txt +0 -23
  1831. data/data/libphonenumber/resources/geocoding/en/504.txt +0 -19
  1832. data/data/libphonenumber/resources/geocoding/en/51.txt +0 -42
  1833. data/data/libphonenumber/resources/geocoding/en/53.txt +0 -33
  1834. data/data/libphonenumber/resources/geocoding/en/54.txt +0 -236
  1835. data/data/libphonenumber/resources/geocoding/en/55.txt +0 -15271
  1836. data/data/libphonenumber/resources/geocoding/en/56.txt +0 -41
  1837. data/data/libphonenumber/resources/geocoding/en/57.txt +0 -186
  1838. data/data/libphonenumber/resources/geocoding/en/58.txt +0 -73
  1839. data/data/libphonenumber/resources/geocoding/en/592.txt +0 -82
  1840. data/data/libphonenumber/resources/geocoding/en/599.txt +0 -22
  1841. data/data/libphonenumber/resources/geocoding/en/62.txt +0 -325
  1842. data/data/libphonenumber/resources/geocoding/en/64.txt +0 -124
  1843. data/data/libphonenumber/resources/geocoding/en/66.txt +0 -40
  1844. data/data/libphonenumber/resources/geocoding/en/686.txt +0 -50
  1845. data/data/libphonenumber/resources/geocoding/en/688.txt +0 -25
  1846. data/data/libphonenumber/resources/geocoding/en/7.txt +0 -355
  1847. data/data/libphonenumber/resources/geocoding/en/81.txt +0 -1547
  1848. data/data/libphonenumber/resources/geocoding/en/82.txt +0 -35
  1849. data/data/libphonenumber/resources/geocoding/en/84.txt +0 -88
  1850. data/data/libphonenumber/resources/geocoding/en/86.txt +0 -154830
  1851. data/data/libphonenumber/resources/geocoding/en/886.txt +0 -30
  1852. data/data/libphonenumber/resources/geocoding/en/90.txt +0 -182
  1853. data/data/libphonenumber/resources/geocoding/en/91.txt +0 -2666
  1854. data/data/libphonenumber/resources/geocoding/en/93.txt +0 -52
  1855. data/data/libphonenumber/resources/geocoding/en/94.txt +0 -46
  1856. data/data/libphonenumber/resources/geocoding/en/95.txt +0 -17
  1857. data/data/libphonenumber/resources/geocoding/en/962.txt +0 -32
  1858. data/data/libphonenumber/resources/geocoding/en/966.txt +0 -29
  1859. data/data/libphonenumber/resources/geocoding/en/968.txt +0 -18
  1860. data/data/libphonenumber/resources/geocoding/en/972.txt +0 -20
  1861. data/data/libphonenumber/resources/geocoding/en/975.txt +0 -21
  1862. data/data/libphonenumber/resources/geocoding/en/98.txt +0 -51
  1863. data/data/libphonenumber/resources/geocoding/en/992.txt +0 -77
  1864. data/data/libphonenumber/resources/geocoding/en/994.txt +0 -98
  1865. data/data/libphonenumber/resources/geocoding/es/228.txt +0 -23
  1866. data/data/libphonenumber/resources/geocoding/es/230.txt +0 -23
  1867. data/data/libphonenumber/resources/geocoding/es/34.txt +0 -124
  1868. data/data/libphonenumber/resources/geocoding/es/54.txt +0 -238
  1869. data/data/libphonenumber/resources/geocoding/es/56.txt +0 -43
  1870. data/data/libphonenumber/resources/geocoding/es/57.txt +0 -186
  1871. data/data/libphonenumber/resources/geocoding/es/58.txt +0 -72
  1872. data/data/libphonenumber/resources/geocoding/es/82.txt +0 -33
  1873. data/data/libphonenumber/resources/geocoding/fa/93.txt +0 -53
  1874. data/data/libphonenumber/resources/geocoding/fa/98.txt +0 -48
  1875. data/data/libphonenumber/resources/geocoding/fi/358.txt +0 -74
  1876. data/data/libphonenumber/resources/geocoding/fi/82.txt +0 -34
  1877. data/data/libphonenumber/resources/geocoding/fr/212.txt +0 -85
  1878. data/data/libphonenumber/resources/geocoding/fr/222.txt +0 -29
  1879. data/data/libphonenumber/resources/geocoding/fr/225.txt +0 -30
  1880. data/data/libphonenumber/resources/geocoding/fr/228.txt +0 -24
  1881. data/data/libphonenumber/resources/geocoding/fr/229.txt +0 -55
  1882. data/data/libphonenumber/resources/geocoding/fr/230.txt +0 -23
  1883. data/data/libphonenumber/resources/geocoding/fr/242.txt +0 -25
  1884. data/data/libphonenumber/resources/geocoding/fr/243.txt +0 -24
  1885. data/data/libphonenumber/resources/geocoding/fr/269.txt +0 -34
  1886. data/data/libphonenumber/resources/geocoding/fr/290.txt +0 -24
  1887. data/data/libphonenumber/resources/geocoding/fr/32.txt +0 -59
  1888. data/data/libphonenumber/resources/geocoding/fr/33.txt +0 -5593
  1889. data/data/libphonenumber/resources/geocoding/fr/352.txt +0 -231
  1890. data/data/libphonenumber/resources/geocoding/fr/41.txt +0 -37
  1891. data/data/libphonenumber/resources/geocoding/fr/82.txt +0 -33
  1892. data/data/libphonenumber/resources/geocoding/hi/82.txt +0 -36
  1893. data/data/libphonenumber/resources/geocoding/hu/36.txt +0 -71
  1894. data/data/libphonenumber/resources/geocoding/hu/82.txt +0 -35
  1895. data/data/libphonenumber/resources/geocoding/id/62.txt +0 -326
  1896. data/data/libphonenumber/resources/geocoding/it/39.txt +0 -248
  1897. data/data/libphonenumber/resources/geocoding/it/41.txt +0 -37
  1898. data/data/libphonenumber/resources/geocoding/iw/82.txt +0 -37
  1899. data/data/libphonenumber/resources/geocoding/ja/81.txt +0 -1546
  1900. data/data/libphonenumber/resources/geocoding/ja/82.txt +0 -35
  1901. data/data/libphonenumber/resources/geocoding/ko/82.txt +0 -35
  1902. data/data/libphonenumber/resources/geocoding/nl/31.txt +0 -145
  1903. data/data/libphonenumber/resources/geocoding/nl/32.txt +0 -59
  1904. data/data/libphonenumber/resources/geocoding/pl/48.txt +0 -66
  1905. data/data/libphonenumber/resources/geocoding/pt/238.txt +0 -58
  1906. data/data/libphonenumber/resources/geocoding/pt/239.txt +0 -37
  1907. data/data/libphonenumber/resources/geocoding/pt/244.txt +0 -59
  1908. data/data/libphonenumber/resources/geocoding/pt/245.txt +0 -37
  1909. data/data/libphonenumber/resources/geocoding/pt/258.txt +0 -29
  1910. data/data/libphonenumber/resources/geocoding/pt/351.txt +0 -69
  1911. data/data/libphonenumber/resources/geocoding/pt/55.txt +0 -15269
  1912. data/data/libphonenumber/resources/geocoding/ro/373.txt +0 -61
  1913. data/data/libphonenumber/resources/geocoding/ro/40.txt +0 -99
  1914. data/data/libphonenumber/resources/geocoding/ru/373.txt +0 -61
  1915. data/data/libphonenumber/resources/geocoding/ru/374.txt +0 -177
  1916. data/data/libphonenumber/resources/geocoding/ru/375.txt +0 -143
  1917. data/data/libphonenumber/resources/geocoding/ru/7.txt +0 -108
  1918. data/data/libphonenumber/resources/geocoding/se/358.txt +0 -74
  1919. data/data/libphonenumber/resources/geocoding/sr/381.txt +0 -51
  1920. data/data/libphonenumber/resources/geocoding/sv/46.txt +0 -266
  1921. data/data/libphonenumber/resources/geocoding/th/66.txt +0 -39
  1922. data/data/libphonenumber/resources/geocoding/tr/82.txt +0 -35
  1923. data/data/libphonenumber/resources/geocoding/tr/90.txt +0 -182
  1924. data/data/libphonenumber/resources/geocoding/vi/84.txt +0 -80
  1925. data/data/libphonenumber/resources/geocoding/zh/82.txt +0 -35
  1926. data/data/libphonenumber/resources/geocoding/zh/86.txt +0 -154830
  1927. data/data/libphonenumber/resources/geocoding/zh/886.txt +0 -30
  1928. data/data/libphonenumber/resources/geocoding/zh_Hant/82.txt +0 -35
  1929. data/data/libphonenumber/resources/geocoding/zh_Hant/886.txt +0 -30
  1930. data/data/libphonenumber/resources/phonemetadata.proto +0 -282
  1931. data/data/libphonenumber/resources/phonenumber.proto +0 -124
  1932. data/data/libphonenumber/resources/test/carrier/en/1.txt +0 -16
  1933. data/data/libphonenumber/resources/test/carrier/en/244.txt +0 -16
  1934. data/data/libphonenumber/resources/test/carrier/en/44.txt +0 -17
  1935. data/data/libphonenumber/resources/test/carrier/sv/44.txt +0 -15
  1936. data/data/libphonenumber/resources/test/geocoding/de/1.txt +0 -16
  1937. data/data/libphonenumber/resources/test/geocoding/en/1.txt +0 -21
  1938. data/data/libphonenumber/resources/test/geocoding/en/54.txt +0 -15
  1939. data/data/libphonenumber/resources/test/geocoding/en/82.txt +0 -31
  1940. data/data/libphonenumber/resources/test/geocoding/ko/82.txt +0 -29
  1941. data/data/libphonenumber/resources/test/timezones/map_data.txt +0 -24
  1942. data/data/libphonenumber/resources/timezones/map_data.txt +0 -2070
  1943. data/data/libphonenumber/tools/cpp/CMakeLists.txt +0 -57
  1944. data/data/libphonenumber/tools/cpp/gtest.cmake +0 -47
  1945. data/data/libphonenumber/tools/cpp/src/base/basictypes.h +0 -330
  1946. data/data/libphonenumber/tools/cpp/src/cpp-build/generate_geocoding_data.cc +0 -655
  1947. data/data/libphonenumber/tools/cpp/src/cpp-build/generate_geocoding_data.h +0 -37
  1948. data/data/libphonenumber/tools/cpp/src/cpp-build/generate_geocoding_data_main.cc +0 -21
  1949. data/data/libphonenumber/tools/cpp/test/cpp-build/generate_geocoding_data_test.cc +0 -39
  1950. data/data/libphonenumber/tools/cpp/test/cpp-build/run_tests.cc +0 -21
  1951. data/data/libphonenumber/tools/java/common/pom.xml +0 -69
  1952. data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/BuildMetadataFromXml.java +0 -530
  1953. data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/Command.java +0 -51
  1954. data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/CommandDispatcher.java +0 -78
  1955. data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/CopyrightNotice.java +0 -66
  1956. data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/FileUtils.java +0 -52
  1957. data/data/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/BuildMetadataFromXmlTest.java +0 -654
  1958. data/data/libphonenumber/tools/java/cpp-build/pom.xml +0 -114
  1959. data/data/libphonenumber/tools/java/cpp-build/src/com/google/i18n/phonenumbers/BuildMetadataCppFromXml.java +0 -230
  1960. data/data/libphonenumber/tools/java/cpp-build/src/com/google/i18n/phonenumbers/CppMetadataGenerator.java +0 -197
  1961. data/data/libphonenumber/tools/java/cpp-build/src/com/google/i18n/phonenumbers/EntryPoint.java +0 -33
  1962. data/data/libphonenumber/tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar +0 -0
  1963. data/data/libphonenumber/tools/java/cpp-build/test/com/google/i18n/phonenumbers/BuildMetadataCppFromXmlTest.java +0 -185
  1964. data/data/libphonenumber/tools/java/cpp-build/test/com/google/i18n/phonenumbers/CppMetadataGeneratorTest.java +0 -122
  1965. data/data/libphonenumber/tools/java/data/README +0 -16
  1966. data/data/libphonenumber/tools/java/data/pom.xml +0 -101
  1967. data/data/libphonenumber/tools/java/data/src/com/google/i18n/phonenumbers/CombineGeoData.java +0 -287
  1968. data/data/libphonenumber/tools/java/data/src/com/google/i18n/phonenumbers/CombineGeoDataServlet.java +0 -46
  1969. data/data/libphonenumber/tools/java/data/test/com/google/i18n/phonenumbers/CombineGeoDataTest.java +0 -233
  1970. data/data/libphonenumber/tools/java/data/webapp/WEB-INF/appengine-web.xml +0 -8
  1971. data/data/libphonenumber/tools/java/data/webapp/WEB-INF/logging.properties +0 -13
  1972. data/data/libphonenumber/tools/java/data/webapp/WEB-INF/web.xml +0 -18
  1973. data/data/libphonenumber/tools/java/data/webapp/index.html +0 -22
  1974. data/data/libphonenumber/tools/java/java-build/pom.xml +0 -121
  1975. data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/BuildMetadataJsonFromXml.java +0 -397
  1976. data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/BuildMetadataProtoFromXml.java +0 -381
  1977. data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/EntryPoint.java +0 -39
  1978. data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/JSArrayBuilder.java +0 -142
  1979. data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/AbstractPhonePrefixDataIOHandler.java +0 -62
  1980. data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/GeneratePhonePrefixData.java +0 -483
  1981. data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/GeneratePhonePrefixDataEntryPoint.java +0 -58
  1982. data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/GenerateTimeZonesMapData.java +0 -143
  1983. data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/GenerateTimeZonesMapDataEntryPoint.java +0 -60
  1984. data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/PhonePrefixDataIOHandler.java +0 -59
  1985. data/data/libphonenumber/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar +0 -0
  1986. data/data/libphonenumber/tools/java/java-build/test/com/google/i18n/phonenumbers/buildtools/GeneratePhonePrefixDataTest.java +0 -291
  1987. data/data/libphonenumber/tools/java/java-build/test/com/google/i18n/phonenumbers/buildtools/GenerateTimeZonesMapDataTest.java +0 -136
  1988. data/data/libphonenumber/tools/java/pom.xml +0 -29
  1989. data/data/libphonenumber/tools/script/continuous-integration.sh +0 -96
@@ -1,3992 +0,0 @@
1
- // Copyright (C) 2009 The Libphonenumber Authors
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- // Author: Shaopeng Jia
16
- // Author: Lara Rennie
17
- // Open-sourced by: Philippe Liard
18
- //
19
- // Note that these tests use the metadata contained in the test metadata file,
20
- // not the normal metadata file, so should not be used for regression test
21
- // purposes - these tests are illustrative only and test functionality.
22
-
23
- #include "phonenumbers/phonenumberutil.h"
24
-
25
- #include <algorithm>
26
- #include <iostream>
27
- #include <list>
28
- #include <set>
29
- #include <string>
30
-
31
- #include <gtest/gtest.h>
32
-
33
- #include "phonenumbers/default_logger.h"
34
- #include "phonenumbers/phonemetadata.pb.h"
35
- #include "phonenumbers/phonenumber.h"
36
- #include "phonenumbers/phonenumber.pb.h"
37
- #include "phonenumbers/test_util.h"
38
-
39
- namespace i18n {
40
- namespace phonenumbers {
41
-
42
- using std::find;
43
- using std::ostream;
44
-
45
- using google::protobuf::RepeatedPtrField;
46
-
47
- static const int kInvalidCountryCode = 2;
48
-
49
- class PhoneNumberUtilTest : public testing::Test {
50
- protected:
51
- PhoneNumberUtilTest() : phone_util_(*PhoneNumberUtil::GetInstance()) {
52
- PhoneNumberUtil::GetInstance()->SetLogger(new StdoutLogger());
53
- }
54
-
55
- // Wrapper functions for private functions that we want to test.
56
- const PhoneMetadata* GetPhoneMetadata(const string& region_code) const {
57
- return phone_util_.GetMetadataForRegion(region_code);
58
- }
59
-
60
- const PhoneMetadata* GetMetadataForNonGeographicalRegion(
61
- int country_code) const {
62
- return phone_util_.GetMetadataForNonGeographicalRegion(country_code);
63
- }
64
-
65
- void GetSupportedRegions(set<string>* regions) {
66
- phone_util_.GetSupportedRegions(regions);
67
- }
68
-
69
- void GetRegionCodesForCountryCallingCode(
70
- int country_calling_code,
71
- list<string>* regions) {
72
- phone_util_.GetRegionCodesForCountryCallingCode(country_calling_code,
73
- regions);
74
- }
75
-
76
- void ExtractPossibleNumber(const string& number,
77
- string* extracted_number) const {
78
- phone_util_.ExtractPossibleNumber(number, extracted_number);
79
- }
80
-
81
- bool CanBeInternationallyDialled(const PhoneNumber& number) const {
82
- return phone_util_.CanBeInternationallyDialled(number);
83
- }
84
-
85
- bool IsViablePhoneNumber(const string& number) const {
86
- return phone_util_.IsViablePhoneNumber(number);
87
- }
88
-
89
- void Normalize(string* number) const {
90
- phone_util_.Normalize(number);
91
- }
92
-
93
- void NormalizeDiallableCharsOnly(string* number) const {
94
- phone_util_.NormalizeDiallableCharsOnly(number);
95
- }
96
-
97
- bool IsNumberGeographical(const PhoneNumber& phone_number) const {
98
- return phone_util_.IsNumberGeographical(phone_number);
99
- }
100
-
101
- bool IsLeadingZeroPossible(int country_calling_code) const {
102
- return phone_util_.IsLeadingZeroPossible(country_calling_code);
103
- }
104
-
105
- PhoneNumber::CountryCodeSource MaybeStripInternationalPrefixAndNormalize(
106
- const string& possible_idd_prefix,
107
- string* number) const {
108
- return phone_util_.MaybeStripInternationalPrefixAndNormalize(
109
- possible_idd_prefix,
110
- number);
111
- }
112
-
113
- void MaybeStripNationalPrefixAndCarrierCode(const PhoneMetadata& metadata,
114
- string* number,
115
- string* carrier_code) const {
116
- phone_util_.MaybeStripNationalPrefixAndCarrierCode(metadata, number,
117
- carrier_code);
118
- }
119
-
120
- bool MaybeStripExtension(string* number, string* extension) const {
121
- return phone_util_.MaybeStripExtension(number, extension);
122
- }
123
-
124
- PhoneNumberUtil::ErrorType MaybeExtractCountryCode(
125
- const PhoneMetadata* default_region_metadata,
126
- bool keep_raw_input,
127
- string* national_number,
128
- PhoneNumber* phone_number) const {
129
- return phone_util_.MaybeExtractCountryCode(default_region_metadata,
130
- keep_raw_input,
131
- national_number,
132
- phone_number);
133
- }
134
-
135
- static bool Equals(const PhoneNumberDesc& expected_number,
136
- const PhoneNumberDesc& actual_number) {
137
- return ExactlySameAs(expected_number, actual_number);
138
- }
139
-
140
- bool ContainsOnlyValidDigits(const string& s) const {
141
- return phone_util_.ContainsOnlyValidDigits(s);
142
- }
143
-
144
- void GetNddPrefixForRegion(const string& region,
145
- bool strip_non_digits,
146
- string* ndd_prefix) const {
147
- // For testing purposes, we check this is empty first.
148
- ndd_prefix->clear();
149
- phone_util_.GetNddPrefixForRegion(region, strip_non_digits, ndd_prefix);
150
- }
151
-
152
- const PhoneNumberUtil& phone_util_;
153
-
154
- private:
155
- DISALLOW_COPY_AND_ASSIGN(PhoneNumberUtilTest);
156
- };
157
-
158
- TEST_F(PhoneNumberUtilTest, ContainsOnlyValidDigits) {
159
- EXPECT_TRUE(ContainsOnlyValidDigits(""));
160
- EXPECT_TRUE(ContainsOnlyValidDigits("2"));
161
- EXPECT_TRUE(ContainsOnlyValidDigits("25"));
162
- EXPECT_TRUE(ContainsOnlyValidDigits("\xEF\xBC\x96" /* "6" */));
163
- EXPECT_FALSE(ContainsOnlyValidDigits("a"));
164
- EXPECT_FALSE(ContainsOnlyValidDigits("2a"));
165
- }
166
-
167
- TEST_F(PhoneNumberUtilTest, GetSupportedRegions) {
168
- set<string> regions;
169
-
170
- GetSupportedRegions(&regions);
171
- EXPECT_GT(regions.size(), 0U);
172
- }
173
-
174
- TEST_F(PhoneNumberUtilTest, GetSupportedGlobalNetworkCallingCodes) {
175
- set<int> calling_codes;
176
-
177
- phone_util_.GetSupportedGlobalNetworkCallingCodes(&calling_codes);
178
- EXPECT_GT(calling_codes.size(), 0U);
179
- for (set<int>::const_iterator it = calling_codes.begin();
180
- it != calling_codes.end(); ++it) {
181
- EXPECT_GT(*it, 0);
182
- string region_code;
183
- phone_util_.GetRegionCodeForCountryCode(*it, &region_code);
184
- EXPECT_EQ(RegionCode::UN001(), region_code);
185
- }
186
- }
187
-
188
- TEST_F(PhoneNumberUtilTest, GetRegionCodesForCountryCallingCode) {
189
- list<string> regions;
190
-
191
- GetRegionCodesForCountryCallingCode(1, &regions);
192
- EXPECT_TRUE(find(regions.begin(), regions.end(), RegionCode::US())
193
- != regions.end());
194
- EXPECT_TRUE(find(regions.begin(), regions.end(), RegionCode::BS())
195
- != regions.end());
196
-
197
- regions.clear();
198
- GetRegionCodesForCountryCallingCode(44, &regions);
199
- EXPECT_TRUE(find(regions.begin(), regions.end(), RegionCode::GB())
200
- != regions.end());
201
-
202
- regions.clear();
203
- GetRegionCodesForCountryCallingCode(49, &regions);
204
- EXPECT_TRUE(find(regions.begin(), regions.end(), RegionCode::DE())
205
- != regions.end());
206
-
207
- regions.clear();
208
- GetRegionCodesForCountryCallingCode(800, &regions);
209
- EXPECT_TRUE(find(regions.begin(), regions.end(), RegionCode::UN001())
210
- != regions.end());
211
-
212
- regions.clear();
213
- GetRegionCodesForCountryCallingCode(kInvalidCountryCode, &regions);
214
- EXPECT_TRUE(regions.empty());
215
- }
216
-
217
- TEST_F(PhoneNumberUtilTest, GetInstanceLoadUSMetadata) {
218
- const PhoneMetadata* metadata = GetPhoneMetadata(RegionCode::US());
219
- EXPECT_EQ("US", metadata->id());
220
- EXPECT_EQ(1, metadata->country_code());
221
- EXPECT_EQ("011", metadata->international_prefix());
222
- EXPECT_TRUE(metadata->has_national_prefix());
223
- ASSERT_EQ(2, metadata->number_format_size());
224
- EXPECT_EQ("(\\d{3})(\\d{3})(\\d{4})",
225
- metadata->number_format(1).pattern());
226
- EXPECT_EQ("$1 $2 $3", metadata->number_format(1).format());
227
- EXPECT_EQ("[13-689]\\d{9}|2[0-35-9]\\d{8}",
228
- metadata->general_desc().national_number_pattern());
229
- EXPECT_EQ("\\d{7}(?:\\d{3})?",
230
- metadata->general_desc().possible_number_pattern());
231
- EXPECT_TRUE(Equals(metadata->general_desc(), metadata->fixed_line()));
232
- EXPECT_EQ("\\d{10}", metadata->toll_free().possible_number_pattern());
233
- EXPECT_EQ("900\\d{7}", metadata->premium_rate().national_number_pattern());
234
- // No shared-cost data is available, so it should be initialised to "NA".
235
- EXPECT_EQ("NA", metadata->shared_cost().national_number_pattern());
236
- EXPECT_EQ("NA", metadata->shared_cost().possible_number_pattern());
237
- }
238
-
239
- TEST_F(PhoneNumberUtilTest, GetInstanceLoadDEMetadata) {
240
- const PhoneMetadata* metadata = GetPhoneMetadata(RegionCode::DE());
241
- EXPECT_EQ("DE", metadata->id());
242
- EXPECT_EQ(49, metadata->country_code());
243
- EXPECT_EQ("00", metadata->international_prefix());
244
- EXPECT_EQ("0", metadata->national_prefix());
245
- ASSERT_EQ(6, metadata->number_format_size());
246
- EXPECT_EQ(1, metadata->number_format(5).leading_digits_pattern_size());
247
- EXPECT_EQ("900", metadata->number_format(5).leading_digits_pattern(0));
248
- EXPECT_EQ("(\\d{3})(\\d{3,4})(\\d{4})",
249
- metadata->number_format(5).pattern());
250
- EXPECT_EQ("$1 $2 $3", metadata->number_format(5).format());
251
- EXPECT_EQ("(?:[24-6]\\d{2}|3[03-9]\\d|[789](?:[1-9]\\d|0[2-9]))\\d{1,8}",
252
- metadata->fixed_line().national_number_pattern());
253
- EXPECT_EQ("\\d{2,14}", metadata->fixed_line().possible_number_pattern());
254
- EXPECT_EQ("30123456", metadata->fixed_line().example_number());
255
- EXPECT_EQ("\\d{10}", metadata->toll_free().possible_number_pattern());
256
- EXPECT_EQ("900([135]\\d{6}|9\\d{7})",
257
- metadata->premium_rate().national_number_pattern());
258
- }
259
-
260
- TEST_F(PhoneNumberUtilTest, GetInstanceLoadARMetadata) {
261
- const PhoneMetadata* metadata = GetPhoneMetadata(RegionCode::AR());
262
- EXPECT_EQ("AR", metadata->id());
263
- EXPECT_EQ(54, metadata->country_code());
264
- EXPECT_EQ("00", metadata->international_prefix());
265
- EXPECT_EQ("0", metadata->national_prefix());
266
- EXPECT_EQ("0(?:(11|343|3715)15)?", metadata->national_prefix_for_parsing());
267
- EXPECT_EQ("9$1", metadata->national_prefix_transform_rule());
268
- ASSERT_EQ(5, metadata->number_format_size());
269
- EXPECT_EQ("$2 15 $3-$4", metadata->number_format(2).format());
270
- EXPECT_EQ("(9)(\\d{4})(\\d{2})(\\d{4})",
271
- metadata->number_format(3).pattern());
272
- EXPECT_EQ("(9)(\\d{4})(\\d{2})(\\d{4})",
273
- metadata->intl_number_format(3).pattern());
274
- EXPECT_EQ("$1 $2 $3 $4", metadata->intl_number_format(3).format());
275
- }
276
-
277
- TEST_F(PhoneNumberUtilTest, GetInstanceLoadInternationalTollFreeMetadata) {
278
- const PhoneMetadata* metadata = GetMetadataForNonGeographicalRegion(800);
279
- EXPECT_FALSE(metadata == NULL);
280
- EXPECT_EQ("001", metadata->id());
281
- EXPECT_EQ(800, metadata->country_code());
282
- EXPECT_EQ("$1 $2", metadata->number_format(0).format());
283
- EXPECT_EQ("(\\d{4})(\\d{4})", metadata->number_format(0).pattern());
284
- EXPECT_EQ("12345678", metadata->general_desc().example_number());
285
- EXPECT_EQ("12345678", metadata->toll_free().example_number());
286
- }
287
-
288
- TEST_F(PhoneNumberUtilTest, GetNationalSignificantNumber) {
289
- PhoneNumber number;
290
- number.set_country_code(1);
291
- number.set_national_number(6502530000ULL);
292
- string national_significant_number;
293
- phone_util_.GetNationalSignificantNumber(number,
294
- &national_significant_number);
295
- EXPECT_EQ("6502530000", national_significant_number);
296
-
297
- // An Italian mobile number.
298
- national_significant_number.clear();
299
- number.set_country_code(39);
300
- number.set_national_number(312345678ULL);
301
- phone_util_.GetNationalSignificantNumber(number,
302
- &national_significant_number);
303
- EXPECT_EQ("312345678", national_significant_number);
304
-
305
- // An Italian fixed line number.
306
- national_significant_number.clear();
307
- number.set_country_code(39);
308
- number.set_national_number(236618300ULL);
309
- number.set_italian_leading_zero(true);
310
- phone_util_.GetNationalSignificantNumber(number,
311
- &national_significant_number);
312
- EXPECT_EQ("0236618300", national_significant_number);
313
-
314
- national_significant_number.clear();
315
- number.Clear();
316
- number.set_country_code(800);
317
- number.set_national_number(12345678ULL);
318
- phone_util_.GetNationalSignificantNumber(number,
319
- &national_significant_number);
320
- EXPECT_EQ("12345678", national_significant_number);
321
- }
322
-
323
- TEST_F(PhoneNumberUtilTest, GetExampleNumber) {
324
- PhoneNumber de_number;
325
- de_number.set_country_code(49);
326
- de_number.set_national_number(30123456ULL);
327
- PhoneNumber test_number;
328
- bool success = phone_util_.GetExampleNumber(RegionCode::DE(), &test_number);
329
- EXPECT_TRUE(success);
330
- EXPECT_EQ(de_number, test_number);
331
-
332
- success = phone_util_.GetExampleNumberForType(RegionCode::DE(),
333
- PhoneNumberUtil::FIXED_LINE,
334
- &test_number);
335
- EXPECT_TRUE(success);
336
- EXPECT_EQ(de_number, test_number);
337
-
338
- success = phone_util_.GetExampleNumberForType(RegionCode::DE(),
339
- PhoneNumberUtil::MOBILE,
340
- &test_number);
341
- // Here we test that an example number was not returned, and that the number
342
- // passed in was not modified.
343
- test_number.Clear();
344
- EXPECT_FALSE(success);
345
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
346
-
347
- // For the US, the example number is placed under general description, and
348
- // hence should be used for both fixed line and mobile, so neither of these
349
- // should return null.
350
- success = phone_util_.GetExampleNumberForType(RegionCode::US(),
351
- PhoneNumberUtil::FIXED_LINE,
352
- &test_number);
353
- // Here we test that the call to get an example number succeeded, and that the
354
- // number passed in was modified.
355
- EXPECT_TRUE(success);
356
- EXPECT_NE(PhoneNumber::default_instance(), test_number);
357
- success = phone_util_.GetExampleNumberForType(RegionCode::US(),
358
- PhoneNumberUtil::MOBILE,
359
- &test_number);
360
- EXPECT_TRUE(success);
361
- EXPECT_NE(PhoneNumber::default_instance(), test_number);
362
-
363
- // CS is an invalid region, so we have no data for it. We should return false.
364
- test_number.Clear();
365
- EXPECT_FALSE(phone_util_.GetExampleNumberForType(RegionCode::CS(),
366
- PhoneNumberUtil::MOBILE,
367
- &test_number));
368
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
369
-
370
- // RegionCode 001 is reserved for supporting non-geographical country calling
371
- // code. We don't support getting an example number for it with this method.
372
- EXPECT_FALSE(phone_util_.GetExampleNumber(RegionCode::UN001(), &test_number));
373
- }
374
-
375
- TEST_F(PhoneNumberUtilTest, GetInvalidExampleNumber) {
376
- // RegionCode 001 is reserved for supporting non-geographical country calling
377
- // codes. We don't support getting an invalid example number for it with
378
- // GetInvalidExampleNumber.
379
- PhoneNumber test_number;
380
- EXPECT_FALSE(phone_util_.GetInvalidExampleNumber(RegionCode::UN001(),
381
- &test_number));
382
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
383
- EXPECT_FALSE(phone_util_.GetInvalidExampleNumber(RegionCode::CS(),
384
- &test_number));
385
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
386
-
387
- EXPECT_TRUE(phone_util_.GetInvalidExampleNumber(RegionCode::US(),
388
- &test_number));
389
- // At least the country calling code should be set correctly.
390
- EXPECT_EQ(1, test_number.country_code());
391
- EXPECT_NE(0, test_number.national_number());
392
- }
393
-
394
- TEST_F(PhoneNumberUtilTest, GetExampleNumberForNonGeoEntity) {
395
- PhoneNumber toll_free_number;
396
- toll_free_number.set_country_code(800);
397
- toll_free_number.set_national_number(12345678ULL);
398
- PhoneNumber test_number;
399
- bool success =
400
- phone_util_.GetExampleNumberForNonGeoEntity(800 , &test_number);
401
- EXPECT_TRUE(success);
402
- EXPECT_EQ(toll_free_number, test_number);
403
-
404
- PhoneNumber universal_premium_rate;
405
- universal_premium_rate.set_country_code(979);
406
- universal_premium_rate.set_national_number(123456789ULL);
407
- success = phone_util_.GetExampleNumberForNonGeoEntity(979 , &test_number);
408
- EXPECT_TRUE(success);
409
- EXPECT_EQ(universal_premium_rate, test_number);
410
- }
411
-
412
- TEST_F(PhoneNumberUtilTest, GetExampleNumberWithoutRegion) {
413
- // In our test metadata we don't cover all types: in our real metadata, we do.
414
- PhoneNumber test_number;
415
- bool success = phone_util_.GetExampleNumberForType(
416
- PhoneNumberUtil::FIXED_LINE,
417
- &test_number);
418
- // We test that the call to get an example number succeeded, and that the
419
- // number passed in was modified.
420
- EXPECT_TRUE(success);
421
- EXPECT_NE(PhoneNumber::default_instance(), test_number);
422
- test_number.Clear();
423
-
424
- success = phone_util_.GetExampleNumberForType(PhoneNumberUtil::MOBILE,
425
- &test_number);
426
- EXPECT_TRUE(success);
427
- EXPECT_NE(PhoneNumber::default_instance(), test_number);
428
- test_number.Clear();
429
-
430
- success = phone_util_.GetExampleNumberForType(PhoneNumberUtil::PREMIUM_RATE,
431
- &test_number);
432
- EXPECT_TRUE(success);
433
- EXPECT_NE(PhoneNumber::default_instance(), test_number);
434
- }
435
-
436
- TEST_F(PhoneNumberUtilTest, FormatUSNumber) {
437
- PhoneNumber test_number;
438
- string formatted_number;
439
- test_number.set_country_code(1);
440
- test_number.set_national_number(6502530000ULL);
441
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
442
- EXPECT_EQ("650 253 0000", formatted_number);
443
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
444
- &formatted_number);
445
- EXPECT_EQ("+1 650 253 0000", formatted_number);
446
-
447
- test_number.set_national_number(8002530000ULL);
448
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
449
- EXPECT_EQ("800 253 0000", formatted_number);
450
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
451
- &formatted_number);
452
- EXPECT_EQ("+1 800 253 0000", formatted_number);
453
-
454
- test_number.set_national_number(9002530000ULL);
455
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
456
- EXPECT_EQ("900 253 0000", formatted_number);
457
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
458
- &formatted_number);
459
- EXPECT_EQ("+1 900 253 0000", formatted_number);
460
- phone_util_.Format(test_number, PhoneNumberUtil::RFC3966, &formatted_number);
461
- EXPECT_EQ("tel:+1-900-253-0000", formatted_number);
462
- test_number.set_national_number(0ULL);
463
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
464
- EXPECT_EQ("0", formatted_number);
465
- // Numbers with all zeros in the national number part will be formatted by
466
- // using the raw_input if that is available no matter which format is
467
- // specified.
468
- test_number.set_raw_input("000-000-0000");
469
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
470
- EXPECT_EQ("000-000-0000", formatted_number);
471
- }
472
-
473
- TEST_F(PhoneNumberUtilTest, FormatBSNumber) {
474
- PhoneNumber test_number;
475
- string formatted_number;
476
- test_number.set_country_code(1);
477
- test_number.set_national_number(2421234567ULL);
478
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
479
- EXPECT_EQ("242 123 4567", formatted_number);
480
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
481
- &formatted_number);
482
- EXPECT_EQ("+1 242 123 4567", formatted_number);
483
-
484
- test_number.set_national_number(8002530000ULL);
485
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
486
- EXPECT_EQ("800 253 0000", formatted_number);
487
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
488
- &formatted_number);
489
- EXPECT_EQ("+1 800 253 0000", formatted_number);
490
-
491
- test_number.set_national_number(9002530000ULL);
492
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
493
- EXPECT_EQ("900 253 0000", formatted_number);
494
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
495
- &formatted_number);
496
- EXPECT_EQ("+1 900 253 0000", formatted_number);
497
- }
498
-
499
- TEST_F(PhoneNumberUtilTest, FormatGBNumber) {
500
- PhoneNumber test_number;
501
- string formatted_number;
502
- test_number.set_country_code(44);
503
- test_number.set_national_number(2087389353ULL);
504
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
505
- EXPECT_EQ("(020) 8738 9353", formatted_number);
506
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
507
- &formatted_number);
508
- EXPECT_EQ("+44 20 8738 9353", formatted_number);
509
-
510
- test_number.set_national_number(7912345678ULL);
511
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
512
- EXPECT_EQ("(07912) 345 678", formatted_number);
513
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
514
- &formatted_number);
515
- EXPECT_EQ("+44 7912 345 678", formatted_number);
516
- }
517
-
518
- TEST_F(PhoneNumberUtilTest, FormatDENumber) {
519
- PhoneNumber test_number;
520
- string formatted_number;
521
- test_number.set_country_code(49);
522
- test_number.set_national_number(301234ULL);
523
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
524
- EXPECT_EQ("030/1234", formatted_number);
525
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
526
- &formatted_number);
527
- EXPECT_EQ("+49 30/1234", formatted_number);
528
- phone_util_.Format(test_number, PhoneNumberUtil::RFC3966, &formatted_number);
529
- EXPECT_EQ("tel:+49-30-1234", formatted_number);
530
-
531
- test_number.set_national_number(291123ULL);
532
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
533
- EXPECT_EQ("0291 123", formatted_number);
534
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
535
- &formatted_number);
536
- EXPECT_EQ("+49 291 123", formatted_number);
537
-
538
- test_number.set_national_number(29112345678ULL);
539
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
540
- EXPECT_EQ("0291 12345678", formatted_number);
541
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
542
- &formatted_number);
543
- EXPECT_EQ("+49 291 12345678", formatted_number);
544
-
545
- test_number.set_national_number(9123123ULL);
546
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
547
- EXPECT_EQ("09123 123", formatted_number);
548
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
549
- &formatted_number);
550
- EXPECT_EQ("+49 9123 123", formatted_number);
551
-
552
- test_number.set_national_number(80212345ULL);
553
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
554
- EXPECT_EQ("08021 2345", formatted_number);
555
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
556
- &formatted_number);
557
- EXPECT_EQ("+49 8021 2345", formatted_number);
558
-
559
- test_number.set_national_number(1234ULL);
560
- // Note this number is correctly formatted without national prefix. Most of
561
- // the numbers that are treated as invalid numbers by the library are short
562
- // numbers, and they are usually not dialed with national prefix.
563
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
564
- EXPECT_EQ("1234", formatted_number);
565
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
566
- &formatted_number);
567
- EXPECT_EQ("+49 1234", formatted_number);
568
- }
569
-
570
- TEST_F(PhoneNumberUtilTest, FormatITNumber) {
571
- PhoneNumber test_number;
572
- string formatted_number;
573
- test_number.set_country_code(39);
574
- test_number.set_national_number(236618300ULL);
575
- test_number.set_italian_leading_zero(true);
576
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
577
- EXPECT_EQ("02 3661 8300", formatted_number);
578
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
579
- &formatted_number);
580
- EXPECT_EQ("+39 02 3661 8300", formatted_number);
581
- phone_util_.Format(test_number, PhoneNumberUtil::E164,
582
- &formatted_number);
583
- EXPECT_EQ("+390236618300", formatted_number);
584
-
585
- test_number.set_national_number(345678901ULL);
586
- test_number.set_italian_leading_zero(false);
587
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
588
- EXPECT_EQ("345 678 901", formatted_number);
589
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
590
- &formatted_number);
591
- EXPECT_EQ("+39 345 678 901", formatted_number);
592
- phone_util_.Format(test_number, PhoneNumberUtil::E164,
593
- &formatted_number);
594
- EXPECT_EQ("+39345678901", formatted_number);
595
- }
596
-
597
- TEST_F(PhoneNumberUtilTest, FormatAUNumber) {
598
- PhoneNumber test_number;
599
- string formatted_number;
600
- test_number.set_country_code(61);
601
- test_number.set_national_number(236618300ULL);
602
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
603
- EXPECT_EQ("02 3661 8300", formatted_number);
604
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
605
- &formatted_number);
606
- EXPECT_EQ("+61 2 3661 8300", formatted_number);
607
- phone_util_.Format(test_number, PhoneNumberUtil::E164,
608
- &formatted_number);
609
- EXPECT_EQ("+61236618300", formatted_number);
610
-
611
- test_number.set_national_number(1800123456ULL);
612
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
613
- EXPECT_EQ("1800 123 456", formatted_number);
614
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
615
- &formatted_number);
616
- EXPECT_EQ("+61 1800 123 456", formatted_number);
617
- phone_util_.Format(test_number, PhoneNumberUtil::E164,
618
- &formatted_number);
619
- EXPECT_EQ("+611800123456", formatted_number);
620
- }
621
-
622
- TEST_F(PhoneNumberUtilTest, FormatARNumber) {
623
- PhoneNumber test_number;
624
- string formatted_number;
625
- test_number.set_country_code(54);
626
- test_number.set_national_number(1187654321ULL);
627
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
628
- EXPECT_EQ("011 8765-4321", formatted_number);
629
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
630
- &formatted_number);
631
- EXPECT_EQ("+54 11 8765-4321", formatted_number);
632
- phone_util_.Format(test_number, PhoneNumberUtil::E164,
633
- &formatted_number);
634
- EXPECT_EQ("+541187654321", formatted_number);
635
-
636
- test_number.set_national_number(91187654321ULL);
637
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
638
- EXPECT_EQ("011 15 8765-4321", formatted_number);
639
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
640
- &formatted_number);
641
- EXPECT_EQ("+54 9 11 8765 4321", formatted_number);
642
- phone_util_.Format(test_number, PhoneNumberUtil::E164,
643
- &formatted_number);
644
- EXPECT_EQ("+5491187654321", formatted_number);
645
- }
646
-
647
- TEST_F(PhoneNumberUtilTest, FormatMXNumber) {
648
- PhoneNumber test_number;
649
- string formatted_number;
650
- test_number.set_country_code(52);
651
- test_number.set_national_number(12345678900ULL);
652
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
653
- EXPECT_EQ("045 234 567 8900", formatted_number);
654
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
655
- &formatted_number);
656
- EXPECT_EQ("+52 1 234 567 8900", formatted_number);
657
- phone_util_.Format(test_number, PhoneNumberUtil::E164,
658
- &formatted_number);
659
- EXPECT_EQ("+5212345678900", formatted_number);
660
-
661
- test_number.set_national_number(15512345678ULL);
662
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
663
- EXPECT_EQ("045 55 1234 5678", formatted_number);
664
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
665
- &formatted_number);
666
- EXPECT_EQ("+52 1 55 1234 5678", formatted_number);
667
- phone_util_.Format(test_number, PhoneNumberUtil::E164,
668
- &formatted_number);
669
- EXPECT_EQ("+5215512345678", formatted_number);
670
-
671
- test_number.set_national_number(3312345678LL);
672
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
673
- EXPECT_EQ("01 33 1234 5678", formatted_number);
674
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
675
- &formatted_number);
676
- EXPECT_EQ("+52 33 1234 5678", formatted_number);
677
- phone_util_.Format(test_number, PhoneNumberUtil::E164,
678
- &formatted_number);
679
- EXPECT_EQ("+523312345678", formatted_number);
680
-
681
- test_number.set_national_number(8211234567LL);
682
- phone_util_.Format(test_number, PhoneNumberUtil::NATIONAL, &formatted_number);
683
- EXPECT_EQ("01 821 123 4567", formatted_number);
684
- phone_util_.Format(test_number, PhoneNumberUtil::INTERNATIONAL,
685
- &formatted_number);
686
- EXPECT_EQ("+52 821 123 4567", formatted_number);
687
- phone_util_.Format(test_number, PhoneNumberUtil::E164,
688
- &formatted_number);
689
- EXPECT_EQ("+528211234567", formatted_number);
690
- }
691
-
692
- TEST_F(PhoneNumberUtilTest, FormatOutOfCountryCallingNumber) {
693
- PhoneNumber test_number;
694
- string formatted_number;
695
- test_number.set_country_code(1);
696
- test_number.set_national_number(9002530000ULL);
697
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::DE(),
698
- &formatted_number);
699
- EXPECT_EQ("00 1 900 253 0000", formatted_number);
700
-
701
- test_number.set_national_number(6502530000ULL);
702
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::BS(),
703
- &formatted_number);
704
- EXPECT_EQ("1 650 253 0000", formatted_number);
705
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::PL(),
706
- &formatted_number);
707
- EXPECT_EQ("00 1 650 253 0000", formatted_number);
708
-
709
- test_number.set_country_code(44);
710
- test_number.set_national_number(7912345678ULL);
711
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::US(),
712
- &formatted_number);
713
- EXPECT_EQ("011 44 7912 345 678", formatted_number);
714
-
715
- test_number.set_country_code(49);
716
- test_number.set_national_number(1234ULL);
717
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::GB(),
718
- &formatted_number);
719
- EXPECT_EQ("00 49 1234", formatted_number);
720
- // Note this number is correctly formatted without national prefix. Most of
721
- // the numbers that are treated as invalid numbers by the library are short
722
- // numbers, and they are usually not dialed with national prefix.
723
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::DE(),
724
- &formatted_number);
725
- EXPECT_EQ("1234", formatted_number);
726
-
727
- test_number.set_country_code(39);
728
- test_number.set_national_number(236618300ULL);
729
- test_number.set_italian_leading_zero(true);
730
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::US(),
731
- &formatted_number);
732
- EXPECT_EQ("011 39 02 3661 8300", formatted_number);
733
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::IT(),
734
- &formatted_number);
735
- EXPECT_EQ("02 3661 8300", formatted_number);
736
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::SG(),
737
- &formatted_number);
738
- EXPECT_EQ("+39 02 3661 8300", formatted_number);
739
-
740
- test_number.set_country_code(65);
741
- test_number.set_national_number(94777892ULL);
742
- test_number.set_italian_leading_zero(false);
743
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::SG(),
744
- &formatted_number);
745
- EXPECT_EQ("9477 7892", formatted_number);
746
-
747
- test_number.set_country_code(800);
748
- test_number.set_national_number(12345678ULL);
749
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::US(),
750
- &formatted_number);
751
- EXPECT_EQ("011 800 1234 5678", formatted_number);
752
-
753
- test_number.set_country_code(54);
754
- test_number.set_national_number(91187654321ULL);
755
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::US(),
756
- &formatted_number);
757
- EXPECT_EQ("011 54 9 11 8765 4321", formatted_number);
758
-
759
- test_number.set_extension("1234");
760
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::US(),
761
- &formatted_number);
762
- EXPECT_EQ("011 54 9 11 8765 4321 ext. 1234", formatted_number);
763
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::AU(),
764
- &formatted_number);
765
- EXPECT_EQ("0011 54 9 11 8765 4321 ext. 1234", formatted_number);
766
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::AR(),
767
- &formatted_number);
768
- EXPECT_EQ("011 15 8765-4321 ext. 1234", formatted_number);
769
- }
770
-
771
- TEST_F(PhoneNumberUtilTest, FormatOutOfCountryWithInvalidRegion) {
772
- PhoneNumber test_number;
773
- string formatted_number;
774
- test_number.set_country_code(1);
775
- test_number.set_national_number(6502530000ULL);
776
- // AQ/Antarctica isn't a valid region code for phone number formatting,
777
- // so this falls back to intl formatting.
778
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::AQ(),
779
- &formatted_number);
780
- EXPECT_EQ("+1 650 253 0000", formatted_number);
781
- // For region code 001, the out-of-country format always turns into the
782
- // international format.
783
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::UN001(),
784
- &formatted_number);
785
- EXPECT_EQ("+1 650 253 0000", formatted_number);
786
- }
787
-
788
- TEST_F(PhoneNumberUtilTest, FormatOutOfCountryWithPreferredIntlPrefix) {
789
- PhoneNumber test_number;
790
- string formatted_number;
791
- test_number.set_country_code(39);
792
- test_number.set_national_number(236618300ULL);
793
- test_number.set_italian_leading_zero(true);
794
- // This should use 0011, since that is the preferred international prefix
795
- // (both 0011 and 0012 are accepted as possible international prefixes in our
796
- // test metadta.)
797
- phone_util_.FormatOutOfCountryCallingNumber(test_number, RegionCode::AU(),
798
- &formatted_number);
799
- EXPECT_EQ("0011 39 02 3661 8300", formatted_number);
800
- }
801
-
802
- TEST_F(PhoneNumberUtilTest, FormatOutOfCountryKeepingAlphaChars) {
803
- PhoneNumber alpha_numeric_number;
804
- string formatted_number;
805
- alpha_numeric_number.set_country_code(1);
806
- alpha_numeric_number.set_national_number(8007493524ULL);
807
- alpha_numeric_number.set_raw_input("1800 six-flag");
808
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
809
- RegionCode::AU(),
810
- &formatted_number);
811
- EXPECT_EQ("0011 1 800 SIX-FLAG", formatted_number);
812
-
813
- formatted_number.clear();
814
- alpha_numeric_number.set_raw_input("1-800-SIX-flag");
815
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
816
- RegionCode::AU(),
817
- &formatted_number);
818
- EXPECT_EQ("0011 1 800-SIX-FLAG", formatted_number);
819
-
820
- formatted_number.clear();
821
- alpha_numeric_number.set_raw_input("Call us from UK: 00 1 800 SIX-flag");
822
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
823
- RegionCode::AU(),
824
- &formatted_number);
825
- EXPECT_EQ("0011 1 800 SIX-FLAG", formatted_number);
826
-
827
- formatted_number.clear();
828
- alpha_numeric_number.set_raw_input("800 SIX-flag");
829
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
830
- RegionCode::AU(),
831
- &formatted_number);
832
- EXPECT_EQ("0011 1 800 SIX-FLAG", formatted_number);
833
-
834
- // Formatting from within the NANPA region.
835
- formatted_number.clear();
836
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
837
- RegionCode::US(),
838
- &formatted_number);
839
- EXPECT_EQ("1 800 SIX-FLAG", formatted_number);
840
- formatted_number.clear();
841
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
842
- RegionCode::BS(),
843
- &formatted_number);
844
- EXPECT_EQ("1 800 SIX-FLAG", formatted_number);
845
-
846
- // Testing that if the raw input doesn't exist, it is formatted using
847
- // FormatOutOfCountryCallingNumber.
848
- alpha_numeric_number.clear_raw_input();
849
- formatted_number.clear();
850
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
851
- RegionCode::DE(),
852
- &formatted_number);
853
- EXPECT_EQ("00 1 800 749 3524", formatted_number);
854
-
855
- // Testing AU alpha number formatted from Australia.
856
- alpha_numeric_number.set_country_code(61);
857
- alpha_numeric_number.set_national_number(827493524ULL);
858
- alpha_numeric_number.set_raw_input("+61 82749-FLAG");
859
- formatted_number.clear();
860
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
861
- RegionCode::AU(),
862
- &formatted_number);
863
- // This number should have the national prefix prefixed.
864
- EXPECT_EQ("082749-FLAG", formatted_number);
865
-
866
- alpha_numeric_number.set_raw_input("082749-FLAG");
867
- formatted_number.clear();
868
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
869
- RegionCode::AU(),
870
- &formatted_number);
871
- EXPECT_EQ("082749-FLAG", formatted_number);
872
-
873
- alpha_numeric_number.set_national_number(18007493524ULL);
874
- alpha_numeric_number.set_raw_input("1-800-SIX-flag");
875
- formatted_number.clear();
876
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
877
- RegionCode::AU(),
878
- &formatted_number);
879
- // This number should not have the national prefix prefixed, in accordance
880
- // with the override for this specific formatting rule.
881
- EXPECT_EQ("1-800-SIX-FLAG", formatted_number);
882
- // The metadata should not be permanently changed, since we copied it before
883
- // modifying patterns. Here we check this.
884
- formatted_number.clear();
885
- alpha_numeric_number.set_national_number(1800749352ULL);
886
- phone_util_.FormatOutOfCountryCallingNumber(alpha_numeric_number,
887
- RegionCode::AU(),
888
- &formatted_number);
889
- EXPECT_EQ("1800 749 352", formatted_number);
890
-
891
- // Testing a country with multiple international prefixes.
892
- formatted_number.clear();
893
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
894
- RegionCode::SG(),
895
- &formatted_number);
896
- EXPECT_EQ("+61 1-800-SIX-FLAG", formatted_number);
897
- // Testing the case of calling from a non-supported region.
898
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
899
- RegionCode::AQ(),
900
- &formatted_number);
901
- EXPECT_EQ("+61 1-800-SIX-FLAG", formatted_number);
902
-
903
- // Testing the case with an invalid country code.
904
- formatted_number.clear();
905
- alpha_numeric_number.set_country_code(0);
906
- alpha_numeric_number.set_national_number(18007493524ULL);
907
- alpha_numeric_number.set_raw_input("1-800-SIX-flag");
908
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
909
- RegionCode::DE(),
910
- &formatted_number);
911
- // Uses the raw input only.
912
- EXPECT_EQ("1-800-SIX-flag", formatted_number);
913
-
914
- // Testing the case of an invalid alpha number.
915
- formatted_number.clear();
916
- alpha_numeric_number.set_country_code(1);
917
- alpha_numeric_number.set_national_number(80749ULL);
918
- alpha_numeric_number.set_raw_input("180-SIX");
919
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
920
- RegionCode::DE(),
921
- &formatted_number);
922
- // No country-code stripping can be done.
923
- EXPECT_EQ("00 1 180-SIX", formatted_number);
924
- // Testing the case of calling from a non-supported region.
925
- phone_util_.FormatOutOfCountryKeepingAlphaChars(alpha_numeric_number,
926
- RegionCode::AQ(),
927
- &formatted_number);
928
- // No country-code stripping can be done since the number is invalid.
929
- EXPECT_EQ("+1 180-SIX", formatted_number);
930
- }
931
-
932
- TEST_F(PhoneNumberUtilTest, FormatWithCarrierCode) {
933
- // We only support this for AR in our test metadata.
934
- PhoneNumber ar_number;
935
- string formatted_number;
936
- ar_number.set_country_code(54);
937
- ar_number.set_national_number(91234125678ULL);
938
- phone_util_.Format(ar_number, PhoneNumberUtil::NATIONAL, &formatted_number);
939
- EXPECT_EQ("01234 12-5678", formatted_number);
940
- // Test formatting with a carrier code.
941
- phone_util_.FormatNationalNumberWithCarrierCode(ar_number, "15",
942
- &formatted_number);
943
- EXPECT_EQ("01234 15 12-5678", formatted_number);
944
- phone_util_.FormatNationalNumberWithCarrierCode(ar_number, "",
945
- &formatted_number);
946
- EXPECT_EQ("01234 12-5678", formatted_number);
947
- // Here the international rule is used, so no carrier code should be present.
948
- phone_util_.Format(ar_number, PhoneNumberUtil::E164, &formatted_number);
949
- EXPECT_EQ("+5491234125678", formatted_number);
950
-
951
- // We don't support this for the US so there should be no change.
952
- PhoneNumber us_number;
953
- us_number.set_country_code(1);
954
- us_number.set_national_number(4241231234ULL);
955
- phone_util_.Format(us_number, PhoneNumberUtil::NATIONAL, &formatted_number);
956
- EXPECT_EQ("424 123 1234", formatted_number);
957
- phone_util_.FormatNationalNumberWithCarrierCode(us_number, "15",
958
- &formatted_number);
959
- EXPECT_EQ("424 123 1234", formatted_number);
960
-
961
- // Invalid country code should just get the NSN.
962
- PhoneNumber invalid_number;
963
- invalid_number.set_country_code(kInvalidCountryCode);
964
- invalid_number.set_national_number(12345ULL);
965
- phone_util_.FormatNationalNumberWithCarrierCode(invalid_number, "89",
966
- &formatted_number);
967
- EXPECT_EQ("12345", formatted_number);
968
- }
969
-
970
- TEST_F(PhoneNumberUtilTest, FormatWithPreferredCarrierCode) {
971
- // We only support this for AR in our test metadata.
972
- PhoneNumber ar_number;
973
- string formatted_number;
974
- ar_number.set_country_code(54);
975
- ar_number.set_national_number(91234125678ULL);
976
- // Test formatting with no preferred carrier code stored in the number itself.
977
- phone_util_.FormatNationalNumberWithPreferredCarrierCode(ar_number, "15",
978
- &formatted_number);
979
- EXPECT_EQ("01234 15 12-5678", formatted_number);
980
- phone_util_.FormatNationalNumberWithPreferredCarrierCode(ar_number, "",
981
- &formatted_number);
982
- EXPECT_EQ("01234 12-5678", formatted_number);
983
- // Test formatting with preferred carrier code present.
984
- ar_number.set_preferred_domestic_carrier_code("19");
985
- phone_util_.Format(ar_number, PhoneNumberUtil::NATIONAL, &formatted_number);
986
- EXPECT_EQ("01234 12-5678", formatted_number);
987
- phone_util_.FormatNationalNumberWithPreferredCarrierCode(ar_number, "15",
988
- &formatted_number);
989
- EXPECT_EQ("01234 19 12-5678", formatted_number);
990
- phone_util_.FormatNationalNumberWithPreferredCarrierCode(ar_number, "",
991
- &formatted_number);
992
- EXPECT_EQ("01234 19 12-5678", formatted_number);
993
- // When the preferred_domestic_carrier_code is present (even when it contains
994
- // an empty string), use it instead of the default carrier code passed in.
995
- ar_number.set_preferred_domestic_carrier_code("");
996
- phone_util_.FormatNationalNumberWithPreferredCarrierCode(ar_number, "15",
997
- &formatted_number);
998
- EXPECT_EQ("01234 12-5678", formatted_number);
999
- // We don't support this for the US so there should be no change.
1000
- PhoneNumber us_number;
1001
- us_number.set_country_code(1);
1002
- us_number.set_national_number(4241231234ULL);
1003
- us_number.set_preferred_domestic_carrier_code("99");
1004
- phone_util_.Format(us_number, PhoneNumberUtil::NATIONAL, &formatted_number);
1005
- EXPECT_EQ("424 123 1234", formatted_number);
1006
- phone_util_.FormatNationalNumberWithPreferredCarrierCode(us_number, "15",
1007
- &formatted_number);
1008
- EXPECT_EQ("424 123 1234", formatted_number);
1009
- }
1010
-
1011
- TEST_F(PhoneNumberUtilTest, FormatNumberForMobileDialing) {
1012
- PhoneNumber test_number;
1013
- string formatted_number;
1014
-
1015
- // Numbers are normally dialed in national format in-country, and
1016
- // international format from outside the country.
1017
- test_number.set_country_code(49);
1018
- test_number.set_national_number(30123456ULL);
1019
- phone_util_.FormatNumberForMobileDialing(
1020
- test_number, RegionCode::DE(), false, /* remove formatting */
1021
- &formatted_number);
1022
- EXPECT_EQ("030123456", formatted_number);
1023
- phone_util_.FormatNumberForMobileDialing(
1024
- test_number, RegionCode::CH(), false, /* remove formatting */
1025
- &formatted_number);
1026
- EXPECT_EQ("+4930123456", formatted_number);
1027
-
1028
- test_number.set_extension("1234");
1029
- phone_util_.FormatNumberForMobileDialing(
1030
- test_number, RegionCode::DE(), false, /* remove formatting */
1031
- &formatted_number);
1032
- EXPECT_EQ("030123456", formatted_number);
1033
- phone_util_.FormatNumberForMobileDialing(
1034
- test_number, RegionCode::CH(), false, /* remove formatting */
1035
- &formatted_number);
1036
- EXPECT_EQ("+4930123456", formatted_number);
1037
-
1038
- test_number.set_country_code(1);
1039
- test_number.clear_extension();
1040
- // US toll free numbers are marked as noInternationalDialling in the test
1041
- // metadata for testing purposes. For such numbers, we expect nothing to be
1042
- // returned when the region code is not the same one.
1043
- test_number.set_national_number(8002530000ULL);
1044
- phone_util_.FormatNumberForMobileDialing(
1045
- test_number, RegionCode::US(), true, /* keep formatting */
1046
- &formatted_number);
1047
- EXPECT_EQ("800 253 0000", formatted_number);
1048
- phone_util_.FormatNumberForMobileDialing(
1049
- test_number, RegionCode::CN(), true, &formatted_number);
1050
- EXPECT_EQ("", formatted_number);
1051
- phone_util_.FormatNumberForMobileDialing(
1052
- test_number, RegionCode::US(), false, /* remove formatting */
1053
- &formatted_number);
1054
- EXPECT_EQ("8002530000", formatted_number);
1055
- phone_util_.FormatNumberForMobileDialing(
1056
- test_number, RegionCode::CN(), false, &formatted_number);
1057
- EXPECT_EQ("", formatted_number);
1058
-
1059
- test_number.set_national_number(6502530000ULL);
1060
- phone_util_.FormatNumberForMobileDialing(
1061
- test_number, RegionCode::US(), true, &formatted_number);
1062
- EXPECT_EQ("+1 650 253 0000", formatted_number);
1063
- phone_util_.FormatNumberForMobileDialing(
1064
- test_number, RegionCode::US(), false, &formatted_number);
1065
- EXPECT_EQ("+16502530000", formatted_number);
1066
-
1067
- test_number.set_extension("1234");
1068
- phone_util_.FormatNumberForMobileDialing(
1069
- test_number, RegionCode::US(), true, &formatted_number);
1070
- EXPECT_EQ("+1 650 253 0000", formatted_number);
1071
- phone_util_.FormatNumberForMobileDialing(
1072
- test_number, RegionCode::US(), false, &formatted_number);
1073
- EXPECT_EQ("+16502530000", formatted_number);
1074
-
1075
- // An invalid US number, which is one digit too long.
1076
- test_number.set_national_number(65025300001ULL);
1077
- phone_util_.FormatNumberForMobileDialing(
1078
- test_number, RegionCode::US(), true, &formatted_number);
1079
- EXPECT_EQ("+1 65025300001", formatted_number);
1080
- phone_util_.FormatNumberForMobileDialing(
1081
- test_number, RegionCode::US(), false, &formatted_number);
1082
- EXPECT_EQ("+165025300001", formatted_number);
1083
-
1084
- // Star numbers. In real life they appear in Israel, but we have them in JP
1085
- // in our test metadata.
1086
- test_number.set_country_code(81);
1087
- test_number.set_national_number(2345ULL);
1088
- phone_util_.FormatNumberForMobileDialing(
1089
- test_number, RegionCode::JP(), true, &formatted_number);
1090
- EXPECT_EQ("*2345", formatted_number);
1091
- phone_util_.FormatNumberForMobileDialing(
1092
- test_number, RegionCode::JP(), false, &formatted_number);
1093
- EXPECT_EQ("*2345", formatted_number);
1094
-
1095
- test_number.set_country_code(800);
1096
- test_number.set_national_number(12345678ULL);
1097
- phone_util_.FormatNumberForMobileDialing(
1098
- test_number, RegionCode::JP(), false, &formatted_number);
1099
- EXPECT_EQ("+80012345678", formatted_number);
1100
- phone_util_.FormatNumberForMobileDialing(
1101
- test_number, RegionCode::JP(), true, &formatted_number);
1102
- EXPECT_EQ("+800 1234 5678", formatted_number);
1103
-
1104
- // UAE numbers beginning with 600 (classified as UAN) need to be dialled
1105
- // without +971 locally.
1106
- test_number.set_country_code(971);
1107
- test_number.set_national_number(600123456ULL);
1108
- phone_util_.FormatNumberForMobileDialing(
1109
- test_number, RegionCode::JP(), false, &formatted_number);
1110
- EXPECT_EQ("+971600123456", formatted_number);
1111
- phone_util_.FormatNumberForMobileDialing(
1112
- test_number, RegionCode::AE(), true, &formatted_number);
1113
- EXPECT_EQ("600123456", formatted_number);
1114
-
1115
- test_number.set_country_code(52);
1116
- test_number.set_national_number(3312345678ULL);
1117
- phone_util_.FormatNumberForMobileDialing(
1118
- test_number, RegionCode::MX(), false, &formatted_number);
1119
- EXPECT_EQ("+523312345678", formatted_number);
1120
- phone_util_.FormatNumberForMobileDialing(
1121
- test_number, RegionCode::US(), false, &formatted_number);
1122
- EXPECT_EQ("+523312345678", formatted_number);
1123
-
1124
- // Non-geographical numbers should always be dialed in international format.
1125
- test_number.set_country_code(800);
1126
- test_number.set_national_number(12345678ULL);
1127
- phone_util_.FormatNumberForMobileDialing(
1128
- test_number, RegionCode::US(), false, &formatted_number);
1129
- EXPECT_EQ("+80012345678", formatted_number);
1130
- phone_util_.FormatNumberForMobileDialing(
1131
- test_number, RegionCode::UN001(), false, &formatted_number);
1132
- EXPECT_EQ("+80012345678", formatted_number);
1133
-
1134
- // Test that a short number is formatted correctly for mobile dialing within
1135
- // the region, and is not diallable from outside the region.
1136
- test_number.set_country_code(49);
1137
- test_number.set_national_number(123L);
1138
- phone_util_.FormatNumberForMobileDialing(
1139
- test_number, RegionCode::DE(), false, &formatted_number);
1140
- EXPECT_EQ("123", formatted_number);
1141
- phone_util_.FormatNumberForMobileDialing(
1142
- test_number, RegionCode::IT(), false, &formatted_number);
1143
- EXPECT_EQ("", formatted_number);
1144
-
1145
- // Test the special logic for Hungary, where the national prefix must be
1146
- // added before dialing from a mobile phone for regular length numbers, but
1147
- // not for short numbers.
1148
- test_number.set_country_code(36);
1149
- test_number.set_national_number(301234567L);
1150
- phone_util_.FormatNumberForMobileDialing(
1151
- test_number, RegionCode::HU(), false, &formatted_number);
1152
- EXPECT_EQ("06301234567", formatted_number);
1153
- phone_util_.FormatNumberForMobileDialing(
1154
- test_number, RegionCode::JP(), false, &formatted_number);
1155
- EXPECT_EQ("+36301234567", formatted_number);
1156
- test_number.set_national_number(104L);
1157
- phone_util_.FormatNumberForMobileDialing(
1158
- test_number, RegionCode::HU(), false, &formatted_number);
1159
- EXPECT_EQ("104", formatted_number);
1160
- phone_util_.FormatNumberForMobileDialing(
1161
- test_number, RegionCode::JP(), false, &formatted_number);
1162
- EXPECT_EQ("", formatted_number);
1163
-
1164
- // Test the special logic for NANPA countries, for which regular length phone
1165
- // numbers are always output in international format, but short numbers are
1166
- // in national format.
1167
- test_number.set_country_code(1);
1168
- test_number.set_national_number(6502530000L);
1169
- phone_util_.FormatNumberForMobileDialing(
1170
- test_number, RegionCode::US(), false, &formatted_number);
1171
- EXPECT_EQ("+16502530000", formatted_number);
1172
- phone_util_.FormatNumberForMobileDialing(
1173
- test_number, RegionCode::CA(), false, &formatted_number);
1174
- EXPECT_EQ("+16502530000", formatted_number);
1175
- phone_util_.FormatNumberForMobileDialing(
1176
- test_number, RegionCode::BR(), false, &formatted_number);
1177
- EXPECT_EQ("+16502530000", formatted_number);
1178
- test_number.set_national_number(911L);
1179
- phone_util_.FormatNumberForMobileDialing(
1180
- test_number, RegionCode::US(), false, &formatted_number);
1181
- EXPECT_EQ("911", formatted_number);
1182
- phone_util_.FormatNumberForMobileDialing(
1183
- test_number, RegionCode::CA(), false, &formatted_number);
1184
- EXPECT_EQ("", formatted_number);
1185
- phone_util_.FormatNumberForMobileDialing(
1186
- test_number, RegionCode::BR(), false, &formatted_number);
1187
- EXPECT_EQ("", formatted_number);
1188
- // Test that the Australian emergency number 000 is formatted correctly.
1189
- test_number.set_country_code(61);
1190
- test_number.set_national_number(0L);
1191
- test_number.set_italian_leading_zero(true);
1192
- test_number.set_number_of_leading_zeros(2);
1193
- phone_util_.FormatNumberForMobileDialing(
1194
- test_number, RegionCode::AU(), false, &formatted_number);
1195
- EXPECT_EQ("000", formatted_number);
1196
- phone_util_.FormatNumberForMobileDialing(
1197
- test_number, RegionCode::NZ(), false, &formatted_number);
1198
- EXPECT_EQ("", formatted_number);
1199
- }
1200
-
1201
- TEST_F(PhoneNumberUtilTest, FormatByPattern) {
1202
- PhoneNumber test_number;
1203
- string formatted_number;
1204
- test_number.set_country_code(1);
1205
- test_number.set_national_number(6502530000ULL);
1206
-
1207
- RepeatedPtrField<NumberFormat> number_formats;
1208
- NumberFormat* number_format = number_formats.Add();
1209
- number_format->set_pattern("(\\d{3})(\\d{3})(\\d{4})");
1210
- number_format->set_format("($1) $2-$3");
1211
- phone_util_.FormatByPattern(test_number, PhoneNumberUtil::NATIONAL,
1212
- number_formats,
1213
- &formatted_number);
1214
- EXPECT_EQ("(650) 253-0000", formatted_number);
1215
- phone_util_.FormatByPattern(test_number, PhoneNumberUtil::INTERNATIONAL,
1216
- number_formats,
1217
- &formatted_number);
1218
- EXPECT_EQ("+1 (650) 253-0000", formatted_number);
1219
- phone_util_.FormatByPattern(test_number, PhoneNumberUtil::RFC3966,
1220
- number_formats,
1221
- &formatted_number);
1222
- EXPECT_EQ("tel:+1-650-253-0000", formatted_number);
1223
-
1224
- // $NP is set to '1' for the US. Here we check that for other NANPA countries
1225
- // the US rules are followed.
1226
- number_format->set_national_prefix_formatting_rule("$NP ($FG)");
1227
- number_format->set_format("$1 $2-$3");
1228
- test_number.set_country_code(1);
1229
- test_number.set_national_number(4168819999ULL);
1230
- phone_util_.FormatByPattern(test_number, PhoneNumberUtil::NATIONAL,
1231
- number_formats,
1232
- &formatted_number);
1233
- EXPECT_EQ("1 (416) 881-9999", formatted_number);
1234
- phone_util_.FormatByPattern(test_number, PhoneNumberUtil::INTERNATIONAL,
1235
- number_formats,
1236
- &formatted_number);
1237
- EXPECT_EQ("+1 416 881-9999", formatted_number);
1238
-
1239
- test_number.set_country_code(39);
1240
- test_number.set_national_number(236618300ULL);
1241
- test_number.set_italian_leading_zero(true);
1242
- number_format->set_pattern("(\\d{2})(\\d{5})(\\d{3})");
1243
- number_format->set_format("$1-$2 $3");
1244
- phone_util_.FormatByPattern(test_number, PhoneNumberUtil::NATIONAL,
1245
- number_formats,
1246
- &formatted_number);
1247
- EXPECT_EQ("02-36618 300", formatted_number);
1248
- phone_util_.FormatByPattern(test_number, PhoneNumberUtil::INTERNATIONAL,
1249
- number_formats,
1250
- &formatted_number);
1251
- EXPECT_EQ("+39 02-36618 300", formatted_number);
1252
-
1253
- test_number.set_country_code(44);
1254
- test_number.set_national_number(2012345678ULL);
1255
- test_number.set_italian_leading_zero(false);
1256
- number_format->set_national_prefix_formatting_rule("$NP$FG");
1257
- number_format->set_pattern("(\\d{2})(\\d{4})(\\d{4})");
1258
- number_format->set_format("$1 $2 $3");
1259
- phone_util_.FormatByPattern(test_number, PhoneNumberUtil::NATIONAL,
1260
- number_formats,
1261
- &formatted_number);
1262
- EXPECT_EQ("020 1234 5678", formatted_number);
1263
-
1264
- number_format->set_national_prefix_formatting_rule("($NP$FG)");
1265
- phone_util_.FormatByPattern(test_number, PhoneNumberUtil::NATIONAL,
1266
- number_formats,
1267
- &formatted_number);
1268
- EXPECT_EQ("(020) 1234 5678", formatted_number);
1269
- number_format->set_national_prefix_formatting_rule("");
1270
- phone_util_.FormatByPattern(test_number, PhoneNumberUtil::NATIONAL,
1271
- number_formats,
1272
- &formatted_number);
1273
- EXPECT_EQ("20 1234 5678", formatted_number);
1274
- number_format->set_national_prefix_formatting_rule("");
1275
- phone_util_.FormatByPattern(test_number, PhoneNumberUtil::INTERNATIONAL,
1276
- number_formats,
1277
- &formatted_number);
1278
- EXPECT_EQ("+44 20 1234 5678", formatted_number);
1279
- }
1280
-
1281
- TEST_F(PhoneNumberUtilTest, FormatE164Number) {
1282
- PhoneNumber test_number;
1283
- string formatted_number;
1284
- test_number.set_country_code(1);
1285
- test_number.set_national_number(6502530000ULL);
1286
- phone_util_.Format(test_number, PhoneNumberUtil::E164, &formatted_number);
1287
- EXPECT_EQ("+16502530000", formatted_number);
1288
-
1289
- test_number.set_country_code(49);
1290
- test_number.set_national_number(301234ULL);
1291
- phone_util_.Format(test_number, PhoneNumberUtil::E164, &formatted_number);
1292
- EXPECT_EQ("+49301234", formatted_number);
1293
-
1294
- test_number.set_country_code(800);
1295
- test_number.set_national_number(12345678ULL);
1296
- phone_util_.Format(test_number, PhoneNumberUtil::E164, &formatted_number);
1297
- EXPECT_EQ("+80012345678", formatted_number);
1298
- }
1299
-
1300
- TEST_F(PhoneNumberUtilTest, FormatNumberWithExtension) {
1301
- PhoneNumber nz_number;
1302
- nz_number.set_country_code(64);
1303
- nz_number.set_national_number(33316005ULL);
1304
- nz_number.set_extension("1234");
1305
- string formatted_number;
1306
- // Uses default extension prefix:
1307
- phone_util_.Format(nz_number, PhoneNumberUtil::NATIONAL, &formatted_number);
1308
- EXPECT_EQ("03-331 6005 ext. 1234", formatted_number);
1309
- // Uses RFC 3966 syntax.
1310
- phone_util_.Format(nz_number, PhoneNumberUtil::RFC3966, &formatted_number);
1311
- EXPECT_EQ("tel:+64-3-331-6005;ext=1234", formatted_number);
1312
- // Extension prefix overridden in the territory information for the US:
1313
- PhoneNumber us_number_with_extension;
1314
- us_number_with_extension.set_country_code(1);
1315
- us_number_with_extension.set_national_number(6502530000ULL);
1316
- us_number_with_extension.set_extension("4567");
1317
- phone_util_.Format(us_number_with_extension,
1318
- PhoneNumberUtil::NATIONAL, &formatted_number);
1319
- EXPECT_EQ("650 253 0000 extn. 4567", formatted_number);
1320
- }
1321
-
1322
- TEST_F(PhoneNumberUtilTest, GetLengthOfGeographicalAreaCode) {
1323
- PhoneNumber number;
1324
- // Google MTV, which has area code "650".
1325
- number.set_country_code(1);
1326
- number.set_national_number(6502530000ULL);
1327
- EXPECT_EQ(3, phone_util_.GetLengthOfGeographicalAreaCode(number));
1328
-
1329
- // A North America toll-free number, which has no area code.
1330
- number.set_country_code(1);
1331
- number.set_national_number(8002530000ULL);
1332
- EXPECT_EQ(0, phone_util_.GetLengthOfGeographicalAreaCode(number));
1333
-
1334
- // An invalid US number (1 digit shorter), which has no area code.
1335
- number.set_country_code(1);
1336
- number.set_national_number(650253000ULL);
1337
- EXPECT_EQ(0, phone_util_.GetLengthOfGeographicalAreaCode(number));
1338
-
1339
- // Google London, which has area code "20".
1340
- number.set_country_code(44);
1341
- number.set_national_number(2070313000ULL);
1342
- EXPECT_EQ(2, phone_util_.GetLengthOfGeographicalAreaCode(number));
1343
-
1344
- // A mobile number in the UK does not have an area code (by default, mobile
1345
- // numbers do not, unless they have been added to our list of exceptions).
1346
- number.set_country_code(44);
1347
- number.set_national_number(7912345678ULL);
1348
- EXPECT_EQ(0, phone_util_.GetLengthOfGeographicalAreaCode(number));
1349
-
1350
- // Google Buenos Aires, which has area code "11".
1351
- number.set_country_code(54);
1352
- number.set_national_number(1155303000ULL);
1353
- EXPECT_EQ(2, phone_util_.GetLengthOfGeographicalAreaCode(number));
1354
-
1355
- // A mobile number in Argentina also has an area code.
1356
- number.set_country_code(54);
1357
- number.set_national_number(91187654321);
1358
- EXPECT_EQ(3, phone_util_.GetLengthOfGeographicalAreaCode(number));
1359
-
1360
- // Google Sydney, which has area code "2".
1361
- number.set_country_code(61);
1362
- number.set_national_number(293744000ULL);
1363
- EXPECT_EQ(1, phone_util_.GetLengthOfGeographicalAreaCode(number));
1364
-
1365
- // Italian numbers - there is no national prefix, but it still has an area
1366
- // code.
1367
- number.set_country_code(39);
1368
- number.set_national_number(236618300ULL);
1369
- number.set_italian_leading_zero(true);
1370
- EXPECT_EQ(2, phone_util_.GetLengthOfGeographicalAreaCode(number));
1371
-
1372
- // Google Singapore. Singapore has no area code and no national prefix.
1373
- number.set_country_code(65);
1374
- number.set_national_number(65218000ULL);
1375
- number.set_italian_leading_zero(false);
1376
- EXPECT_EQ(0, phone_util_.GetLengthOfGeographicalAreaCode(number));
1377
-
1378
- // An international toll free number, which has no area code.
1379
- number.set_country_code(800);
1380
- number.set_national_number(12345678ULL);
1381
- EXPECT_EQ(0, phone_util_.GetLengthOfGeographicalAreaCode(number));
1382
-
1383
- // A mobile number from China is geographical, but does not have an area code.
1384
- PhoneNumber cn_mobile;
1385
- cn_mobile.set_country_code(86);
1386
- cn_mobile.set_national_number(18912341234ULL);
1387
- EXPECT_EQ(0, phone_util_.GetLengthOfGeographicalAreaCode(cn_mobile));
1388
- }
1389
-
1390
- TEST_F(PhoneNumberUtilTest, GetLengthOfNationalDestinationCode) {
1391
- PhoneNumber number;
1392
- // Google MTV, which has national destination code (NDC) "650".
1393
- number.set_country_code(1);
1394
- number.set_national_number(6502530000ULL);
1395
- EXPECT_EQ(3, phone_util_.GetLengthOfNationalDestinationCode(number));
1396
-
1397
- // A North America toll-free number, which has NDC "800".
1398
- number.set_country_code(1);
1399
- number.set_national_number(8002530000ULL);
1400
- EXPECT_EQ(3, phone_util_.GetLengthOfNationalDestinationCode(number));
1401
-
1402
- // Google London, which has NDC "20".
1403
- number.set_country_code(44);
1404
- number.set_national_number(2070313000ULL);
1405
- EXPECT_EQ(2, phone_util_.GetLengthOfNationalDestinationCode(number));
1406
-
1407
- // A UK mobile phone, which has NDC "7912"
1408
- number.set_country_code(44);
1409
- number.set_national_number(7912345678ULL);
1410
- EXPECT_EQ(4, phone_util_.GetLengthOfNationalDestinationCode(number));
1411
-
1412
- // Google Buenos Aires, which has NDC "11".
1413
- number.set_country_code(54);
1414
- number.set_national_number(1155303000ULL);
1415
- EXPECT_EQ(2, phone_util_.GetLengthOfNationalDestinationCode(number));
1416
-
1417
- // An Argentinian mobile which has NDC "911".
1418
- number.set_country_code(54);
1419
- number.set_national_number(91187654321ULL);
1420
- EXPECT_EQ(3, phone_util_.GetLengthOfNationalDestinationCode(number));
1421
-
1422
- // Google Sydney, which has NDC "2".
1423
- number.set_country_code(61);
1424
- number.set_national_number(293744000ULL);
1425
- EXPECT_EQ(1, phone_util_.GetLengthOfNationalDestinationCode(number));
1426
-
1427
- // Google Singapore. Singapore has NDC "6521".
1428
- number.set_country_code(65);
1429
- number.set_national_number(65218000ULL);
1430
- EXPECT_EQ(4, phone_util_.GetLengthOfNationalDestinationCode(number));
1431
-
1432
- // An invalid US number (1 digit shorter), which has no NDC.
1433
- number.set_country_code(1);
1434
- number.set_national_number(650253000ULL);
1435
- EXPECT_EQ(0, phone_util_.GetLengthOfNationalDestinationCode(number));
1436
-
1437
- // A number containing an invalid country code, which shouldn't have any NDC.
1438
- number.set_country_code(123);
1439
- number.set_national_number(650253000ULL);
1440
- EXPECT_EQ(0, phone_util_.GetLengthOfNationalDestinationCode(number));
1441
-
1442
- // A number that has only one group of digits after country code when
1443
- // formatted in the international format.
1444
- number.set_country_code(376);
1445
- number.set_national_number(12345ULL);
1446
- EXPECT_EQ(0, phone_util_.GetLengthOfNationalDestinationCode(number));
1447
-
1448
- // The same number above, but with an extension.
1449
- number.set_country_code(376);
1450
- number.set_national_number(12345ULL);
1451
- number.set_extension("321");
1452
- EXPECT_EQ(0, phone_util_.GetLengthOfNationalDestinationCode(number));
1453
-
1454
- // An international toll free number, which has NDC "1234".
1455
- number.Clear();
1456
- number.set_country_code(800);
1457
- number.set_national_number(12345678ULL);
1458
- EXPECT_EQ(4, phone_util_.GetLengthOfNationalDestinationCode(number));
1459
-
1460
- // A mobile number from China is geographical, but does not have an area code:
1461
- // however it still can be considered to have a national destination code.
1462
- PhoneNumber cn_mobile;
1463
- cn_mobile.set_country_code(86);
1464
- cn_mobile.set_national_number(18912341234ULL);
1465
- EXPECT_EQ(3, phone_util_.GetLengthOfNationalDestinationCode(cn_mobile));
1466
- }
1467
-
1468
- TEST_F(PhoneNumberUtilTest, GetCountryMobileToken) {
1469
- int country_calling_code;
1470
- string mobile_token;
1471
-
1472
- country_calling_code = phone_util_.GetCountryCodeForRegion(RegionCode::MX());
1473
- phone_util_.GetCountryMobileToken(country_calling_code, &mobile_token);
1474
- EXPECT_EQ("1", mobile_token);
1475
-
1476
- // Country calling code for Sweden, which has no mobile token.
1477
- country_calling_code = phone_util_.GetCountryCodeForRegion(RegionCode::SE());
1478
- phone_util_.GetCountryMobileToken(country_calling_code, &mobile_token);
1479
- EXPECT_EQ("", mobile_token);
1480
- }
1481
-
1482
- TEST_F(PhoneNumberUtilTest, ExtractPossibleNumber) {
1483
- // Removes preceding funky punctuation and letters but leaves the rest
1484
- // untouched.
1485
- string extracted_number;
1486
- ExtractPossibleNumber("Tel:0800-345-600", &extracted_number);
1487
- EXPECT_EQ("0800-345-600", extracted_number);
1488
- ExtractPossibleNumber("Tel:0800 FOR PIZZA", &extracted_number);
1489
- EXPECT_EQ("0800 FOR PIZZA", extracted_number);
1490
-
1491
- // Should not remove plus sign.
1492
- ExtractPossibleNumber("Tel:+800-345-600", &extracted_number);
1493
- EXPECT_EQ("+800-345-600", extracted_number);
1494
- // Should recognise wide digits as possible start values.
1495
- ExtractPossibleNumber("\xEF\xBC\x90\xEF\xBC\x92\xEF\xBC\x93" /* "023" */,
1496
- &extracted_number);
1497
- EXPECT_EQ("\xEF\xBC\x90\xEF\xBC\x92\xEF\xBC\x93" /* "023" */,
1498
- extracted_number);
1499
- // Dashes are not possible start values and should be removed.
1500
- ExtractPossibleNumber("Num-\xEF\xBC\x91\xEF\xBC\x92\xEF\xBC\x93"
1501
- /* "Num-123" */, &extracted_number);
1502
- EXPECT_EQ("\xEF\xBC\x91\xEF\xBC\x92\xEF\xBC\x93" /* "123" */,
1503
- extracted_number);
1504
- // If not possible number present, return empty string.
1505
- ExtractPossibleNumber("Num-....", &extracted_number);
1506
- EXPECT_EQ("", extracted_number);
1507
- // Leading brackets are stripped - these are not used when parsing.
1508
- ExtractPossibleNumber("(650) 253-0000", &extracted_number);
1509
- EXPECT_EQ("650) 253-0000", extracted_number);
1510
-
1511
- // Trailing non-alpha-numeric characters should be removed.
1512
- ExtractPossibleNumber("(650) 253-0000..- ..", &extracted_number);
1513
- EXPECT_EQ("650) 253-0000", extracted_number);
1514
- ExtractPossibleNumber("(650) 253-0000.", &extracted_number);
1515
- EXPECT_EQ("650) 253-0000", extracted_number);
1516
- // This case has a trailing RTL char.
1517
- ExtractPossibleNumber("(650) 253-0000\xE2\x80\x8F"
1518
- /* "(650) 253-0000‏" */, &extracted_number);
1519
- EXPECT_EQ("650) 253-0000", extracted_number);
1520
- }
1521
-
1522
- TEST_F(PhoneNumberUtilTest, IsNANPACountry) {
1523
- EXPECT_TRUE(phone_util_.IsNANPACountry(RegionCode::US()));
1524
- EXPECT_TRUE(phone_util_.IsNANPACountry(RegionCode::BS()));
1525
- EXPECT_FALSE(phone_util_.IsNANPACountry(RegionCode::DE()));
1526
- EXPECT_FALSE(phone_util_.IsNANPACountry(RegionCode::GetUnknown()));
1527
- EXPECT_FALSE(phone_util_.IsNANPACountry(RegionCode::UN001()));
1528
- }
1529
-
1530
- TEST_F(PhoneNumberUtilTest, IsValidNumber) {
1531
- PhoneNumber us_number;
1532
- us_number.set_country_code(1);
1533
- us_number.set_national_number(6502530000ULL);
1534
- EXPECT_TRUE(phone_util_.IsValidNumber(us_number));
1535
-
1536
- PhoneNumber it_number;
1537
- it_number.set_country_code(39);
1538
- it_number.set_national_number(236618300ULL);
1539
- it_number.set_italian_leading_zero(true);
1540
- EXPECT_TRUE(phone_util_.IsValidNumber(it_number));
1541
-
1542
- PhoneNumber gb_number;
1543
- gb_number.set_country_code(44);
1544
- gb_number.set_national_number(7912345678ULL);
1545
- EXPECT_TRUE(phone_util_.IsValidNumber(gb_number));
1546
-
1547
- PhoneNumber nz_number;
1548
- nz_number.set_country_code(64);
1549
- nz_number.set_national_number(21387835ULL);
1550
- EXPECT_TRUE(phone_util_.IsValidNumber(nz_number));
1551
-
1552
- PhoneNumber intl_toll_free_number;
1553
- intl_toll_free_number.set_country_code(800);
1554
- intl_toll_free_number.set_national_number(12345678ULL);
1555
- EXPECT_TRUE(phone_util_.IsValidNumber(intl_toll_free_number));
1556
-
1557
- PhoneNumber universal_premium_rate;
1558
- universal_premium_rate.set_country_code(979);
1559
- universal_premium_rate.set_national_number(123456789ULL);
1560
- EXPECT_TRUE(phone_util_.IsValidNumber(universal_premium_rate));
1561
- }
1562
-
1563
- TEST_F(PhoneNumberUtilTest, IsValidForRegion) {
1564
- // This number is valid for the Bahamas, but is not a valid US number.
1565
- PhoneNumber bs_number;
1566
- bs_number.set_country_code(1);
1567
- bs_number.set_national_number(2423232345ULL);
1568
- EXPECT_TRUE(phone_util_.IsValidNumber(bs_number));
1569
- EXPECT_TRUE(phone_util_.IsValidNumberForRegion(bs_number, RegionCode::BS()));
1570
- EXPECT_FALSE(phone_util_.IsValidNumberForRegion(bs_number, RegionCode::US()));
1571
- bs_number.set_national_number(2421232345ULL);
1572
- // This number is no longer valid.
1573
- EXPECT_FALSE(phone_util_.IsValidNumber(bs_number));
1574
-
1575
- // La Mayotte and Réunion use 'leadingDigits' to differentiate them.
1576
- PhoneNumber re_number;
1577
- re_number.set_country_code(262);
1578
- re_number.set_national_number(262123456ULL);
1579
- EXPECT_TRUE(phone_util_.IsValidNumber(re_number));
1580
- EXPECT_TRUE(phone_util_.IsValidNumberForRegion(re_number, RegionCode::RE()));
1581
- EXPECT_FALSE(phone_util_.IsValidNumberForRegion(re_number, RegionCode::YT()));
1582
- // Now change the number to be a number for La Mayotte.
1583
- re_number.set_national_number(269601234ULL);
1584
- EXPECT_TRUE(phone_util_.IsValidNumberForRegion(re_number, RegionCode::YT()));
1585
- EXPECT_FALSE(phone_util_.IsValidNumberForRegion(re_number, RegionCode::RE()));
1586
- // This number is no longer valid.
1587
- re_number.set_national_number(269123456ULL);
1588
- EXPECT_FALSE(phone_util_.IsValidNumberForRegion(re_number, RegionCode::YT()));
1589
- EXPECT_FALSE(phone_util_.IsValidNumberForRegion(re_number, RegionCode::RE()));
1590
- EXPECT_FALSE(phone_util_.IsValidNumber(re_number));
1591
- // However, it should be recognised as from La Mayotte.
1592
- string region_code;
1593
- phone_util_.GetRegionCodeForNumber(re_number, &region_code);
1594
- EXPECT_EQ(RegionCode::YT(), region_code);
1595
- // This number is valid in both places.
1596
- re_number.set_national_number(800123456ULL);
1597
- EXPECT_TRUE(phone_util_.IsValidNumberForRegion(re_number, RegionCode::YT()));
1598
- EXPECT_TRUE(phone_util_.IsValidNumberForRegion(re_number, RegionCode::RE()));
1599
-
1600
- PhoneNumber intl_toll_free_number;
1601
- intl_toll_free_number.set_country_code(800);
1602
- intl_toll_free_number.set_national_number(12345678ULL);
1603
- EXPECT_TRUE(phone_util_.IsValidNumberForRegion(intl_toll_free_number,
1604
- RegionCode::UN001()));
1605
- EXPECT_FALSE(phone_util_.IsValidNumberForRegion(intl_toll_free_number,
1606
- RegionCode::US()));
1607
- EXPECT_FALSE(phone_util_.IsValidNumberForRegion(intl_toll_free_number,
1608
- RegionCode::ZZ()));
1609
-
1610
- PhoneNumber invalid_number;
1611
- // Invalid country calling codes.
1612
- invalid_number.set_country_code(3923);
1613
- invalid_number.set_national_number(2366ULL);
1614
- EXPECT_FALSE(phone_util_.IsValidNumberForRegion(invalid_number,
1615
- RegionCode::ZZ()));
1616
- invalid_number.set_country_code(3923);
1617
- invalid_number.set_national_number(2366ULL);
1618
- EXPECT_FALSE(phone_util_.IsValidNumberForRegion(invalid_number,
1619
- RegionCode::UN001()));
1620
- invalid_number.set_country_code(0);
1621
- invalid_number.set_national_number(2366ULL);
1622
- EXPECT_FALSE(phone_util_.IsValidNumberForRegion(invalid_number,
1623
- RegionCode::UN001()));
1624
- invalid_number.set_country_code(0);
1625
- EXPECT_FALSE(phone_util_.IsValidNumberForRegion(invalid_number,
1626
- RegionCode::ZZ()));
1627
- }
1628
-
1629
- TEST_F(PhoneNumberUtilTest, IsNotValidNumber) {
1630
- PhoneNumber us_number;
1631
- us_number.set_country_code(1);
1632
- us_number.set_national_number(2530000ULL);
1633
- EXPECT_FALSE(phone_util_.IsValidNumber(us_number));
1634
-
1635
- PhoneNumber it_number;
1636
- it_number.set_country_code(39);
1637
- it_number.set_national_number(23661830000ULL);
1638
- it_number.set_italian_leading_zero(true);
1639
- EXPECT_FALSE(phone_util_.IsValidNumber(it_number));
1640
-
1641
- PhoneNumber gb_number;
1642
- gb_number.set_country_code(44);
1643
- gb_number.set_national_number(791234567ULL);
1644
- EXPECT_FALSE(phone_util_.IsValidNumber(gb_number));
1645
-
1646
- PhoneNumber de_number;
1647
- de_number.set_country_code(49);
1648
- de_number.set_national_number(1234ULL);
1649
- EXPECT_FALSE(phone_util_.IsValidNumber(de_number));
1650
-
1651
- PhoneNumber nz_number;
1652
- nz_number.set_country_code(64);
1653
- nz_number.set_national_number(3316005ULL);
1654
- EXPECT_FALSE(phone_util_.IsValidNumber(nz_number));
1655
-
1656
- PhoneNumber invalid_number;
1657
- // Invalid country calling codes.
1658
- invalid_number.set_country_code(3923);
1659
- invalid_number.set_national_number(2366ULL);
1660
- EXPECT_FALSE(phone_util_.IsValidNumber(invalid_number));
1661
- invalid_number.set_country_code(0);
1662
- EXPECT_FALSE(phone_util_.IsValidNumber(invalid_number));
1663
-
1664
- PhoneNumber intl_toll_free_number_too_long;
1665
- intl_toll_free_number_too_long.set_country_code(800);
1666
- intl_toll_free_number_too_long.set_national_number(123456789ULL);
1667
- EXPECT_FALSE(phone_util_.IsValidNumber(intl_toll_free_number_too_long));
1668
- }
1669
-
1670
- TEST_F(PhoneNumberUtilTest, GetRegionCodeForCountryCode) {
1671
- string region_code;
1672
- phone_util_.GetRegionCodeForCountryCode(1, &region_code);
1673
- EXPECT_EQ(RegionCode::US(), region_code);
1674
- phone_util_.GetRegionCodeForCountryCode(44, &region_code);
1675
- EXPECT_EQ(RegionCode::GB(), region_code);
1676
- phone_util_.GetRegionCodeForCountryCode(49, &region_code);
1677
- EXPECT_EQ(RegionCode::DE(), region_code);
1678
- phone_util_.GetRegionCodeForCountryCode(800, &region_code);
1679
- EXPECT_EQ(RegionCode::UN001(), region_code);
1680
- phone_util_.GetRegionCodeForCountryCode(979, &region_code);
1681
- EXPECT_EQ(RegionCode::UN001(), region_code);
1682
- }
1683
-
1684
- TEST_F(PhoneNumberUtilTest, GetRegionCodeForNumber) {
1685
- string region_code;
1686
- PhoneNumber bs_number;
1687
- bs_number.set_country_code(1);
1688
- bs_number.set_national_number(2423232345ULL);
1689
- phone_util_.GetRegionCodeForNumber(bs_number, &region_code);
1690
- EXPECT_EQ(RegionCode::BS(), region_code);
1691
-
1692
- PhoneNumber us_number;
1693
- us_number.set_country_code(1);
1694
- us_number.set_national_number(4241231234ULL);
1695
- phone_util_.GetRegionCodeForNumber(us_number, &region_code);
1696
- EXPECT_EQ(RegionCode::US(), region_code);
1697
-
1698
- PhoneNumber gb_mobile;
1699
- gb_mobile.set_country_code(44);
1700
- gb_mobile.set_national_number(7912345678ULL);
1701
- phone_util_.GetRegionCodeForNumber(gb_mobile, &region_code);
1702
- EXPECT_EQ(RegionCode::GB(), region_code);
1703
-
1704
- PhoneNumber intl_toll_free_number;
1705
- intl_toll_free_number.set_country_code(800);
1706
- intl_toll_free_number.set_national_number(12345678ULL);
1707
- phone_util_.GetRegionCodeForNumber(intl_toll_free_number, &region_code);
1708
- EXPECT_EQ(RegionCode::UN001(), region_code);
1709
-
1710
- PhoneNumber universal_premium_rate;
1711
- universal_premium_rate.set_country_code(979);
1712
- universal_premium_rate.set_national_number(123456789ULL);
1713
- phone_util_.GetRegionCodeForNumber(universal_premium_rate, &region_code);
1714
- EXPECT_EQ(RegionCode::UN001(), region_code);
1715
- }
1716
-
1717
- TEST_F(PhoneNumberUtilTest, IsPossibleNumber) {
1718
- PhoneNumber number;
1719
- number.set_country_code(1);
1720
- number.set_national_number(6502530000ULL);
1721
- EXPECT_TRUE(phone_util_.IsPossibleNumber(number));
1722
-
1723
- number.set_country_code(1);
1724
- number.set_national_number(2530000ULL);
1725
- EXPECT_TRUE(phone_util_.IsPossibleNumber(number));
1726
-
1727
- number.set_country_code(44);
1728
- number.set_national_number(2070313000ULL);
1729
- EXPECT_TRUE(phone_util_.IsPossibleNumber(number));
1730
-
1731
- number.set_country_code(800);
1732
- number.set_national_number(12345678ULL);
1733
- EXPECT_TRUE(phone_util_.IsPossibleNumber(number));
1734
-
1735
- EXPECT_TRUE(phone_util_.IsPossibleNumberForString("+1 650 253 0000",
1736
- RegionCode::US()));
1737
- EXPECT_TRUE(phone_util_.IsPossibleNumberForString("+1 650 GOO OGLE",
1738
- RegionCode::US()));
1739
- EXPECT_TRUE(phone_util_.IsPossibleNumberForString("(650) 253-0000",
1740
- RegionCode::US()));
1741
- EXPECT_TRUE(phone_util_.IsPossibleNumberForString("253-0000",
1742
- RegionCode::US()));
1743
- EXPECT_TRUE(phone_util_.IsPossibleNumberForString("+1 650 253 0000",
1744
- RegionCode::GB()));
1745
- EXPECT_TRUE(phone_util_.IsPossibleNumberForString("+44 20 7031 3000",
1746
- RegionCode::GB()));
1747
- EXPECT_TRUE(phone_util_.IsPossibleNumberForString("(020) 7031 3000",
1748
- RegionCode::GB()));
1749
- EXPECT_TRUE(phone_util_.IsPossibleNumberForString("7031 3000",
1750
- RegionCode::GB()));
1751
- EXPECT_TRUE(phone_util_.IsPossibleNumberForString("3331 6005",
1752
- RegionCode::NZ()));
1753
- EXPECT_TRUE(phone_util_.IsPossibleNumberForString("+800 1234 5678",
1754
- RegionCode::UN001()));
1755
- }
1756
-
1757
- TEST_F(PhoneNumberUtilTest, IsPossibleNumberWithReason) {
1758
- // FYI, national numbers for country code +1 that are within 7 to 10 digits
1759
- // are possible.
1760
- PhoneNumber number;
1761
- number.set_country_code(1);
1762
- number.set_national_number(6502530000ULL);
1763
- EXPECT_EQ(PhoneNumberUtil::IS_POSSIBLE,
1764
- phone_util_.IsPossibleNumberWithReason(number));
1765
-
1766
- number.set_country_code(1);
1767
- number.set_national_number(2530000ULL);
1768
- EXPECT_EQ(PhoneNumberUtil::IS_POSSIBLE,
1769
- phone_util_.IsPossibleNumberWithReason(number));
1770
-
1771
- number.set_country_code(0);
1772
- number.set_national_number(2530000ULL);
1773
- EXPECT_EQ(PhoneNumberUtil::INVALID_COUNTRY_CODE,
1774
- phone_util_.IsPossibleNumberWithReason(number));
1775
-
1776
- number.set_country_code(1);
1777
- number.set_national_number(253000ULL);
1778
- EXPECT_EQ(PhoneNumberUtil::TOO_SHORT,
1779
- phone_util_.IsPossibleNumberWithReason(number));
1780
-
1781
- number.set_country_code(1);
1782
- number.set_national_number(65025300000ULL);
1783
- EXPECT_EQ(PhoneNumberUtil::TOO_LONG,
1784
- phone_util_.IsPossibleNumberWithReason(number));
1785
-
1786
- number.set_country_code(44);
1787
- number.set_national_number(2070310000ULL);
1788
- EXPECT_EQ(PhoneNumberUtil::IS_POSSIBLE,
1789
- phone_util_.IsPossibleNumberWithReason(number));
1790
-
1791
- number.set_country_code(49);
1792
- number.set_national_number(30123456ULL);
1793
- EXPECT_EQ(PhoneNumberUtil::IS_POSSIBLE,
1794
- phone_util_.IsPossibleNumberWithReason(number));
1795
-
1796
- number.set_country_code(65);
1797
- number.set_national_number(1234567890ULL);
1798
- EXPECT_EQ(PhoneNumberUtil::IS_POSSIBLE,
1799
- phone_util_.IsPossibleNumberWithReason(number));
1800
-
1801
- number.set_country_code(800);
1802
- number.set_national_number(123456789ULL);
1803
- EXPECT_EQ(PhoneNumberUtil::TOO_LONG,
1804
- phone_util_.IsPossibleNumberWithReason(number));
1805
- }
1806
-
1807
- TEST_F(PhoneNumberUtilTest, IsNotPossibleNumber) {
1808
- PhoneNumber number;
1809
- number.set_country_code(1);
1810
- number.set_national_number(65025300000ULL);
1811
- EXPECT_FALSE(phone_util_.IsPossibleNumber(number));
1812
-
1813
- number.set_country_code(800);
1814
- number.set_national_number(123456789ULL);
1815
- EXPECT_FALSE(phone_util_.IsPossibleNumber(number));
1816
-
1817
- number.set_country_code(1);
1818
- number.set_national_number(253000ULL);
1819
- EXPECT_FALSE(phone_util_.IsPossibleNumber(number));
1820
-
1821
- number.set_country_code(44);
1822
- number.set_national_number(300ULL);
1823
- EXPECT_FALSE(phone_util_.IsPossibleNumber(number));
1824
-
1825
- EXPECT_FALSE(phone_util_.IsPossibleNumberForString("+1 650 253 00000",
1826
- RegionCode::US()));
1827
- EXPECT_FALSE(phone_util_.IsPossibleNumberForString("(650) 253-00000",
1828
- RegionCode::US()));
1829
- EXPECT_FALSE(phone_util_.IsPossibleNumberForString("I want a Pizza",
1830
- RegionCode::US()));
1831
- EXPECT_FALSE(phone_util_.IsPossibleNumberForString("253-000",
1832
- RegionCode::US()));
1833
- EXPECT_FALSE(phone_util_.IsPossibleNumberForString("1 3000",
1834
- RegionCode::GB()));
1835
- EXPECT_FALSE(phone_util_.IsPossibleNumberForString("+44 300",
1836
- RegionCode::GB()));
1837
- EXPECT_FALSE(phone_util_.IsPossibleNumberForString("+800 1234 5678 9",
1838
- RegionCode::UN001()));
1839
- }
1840
-
1841
- TEST_F(PhoneNumberUtilTest, TruncateTooLongNumber) {
1842
- // US number 650-253-0000, but entered with one additional digit at the end.
1843
- PhoneNumber too_long_number;
1844
- too_long_number.set_country_code(1);
1845
- too_long_number.set_national_number(65025300001ULL);
1846
- PhoneNumber valid_number;
1847
- valid_number.set_country_code(1);
1848
- valid_number.set_national_number(6502530000ULL);
1849
- EXPECT_TRUE(phone_util_.TruncateTooLongNumber(&too_long_number));
1850
- EXPECT_EQ(valid_number, too_long_number);
1851
-
1852
- too_long_number.set_country_code(800);
1853
- too_long_number.set_national_number(123456789ULL);
1854
- valid_number.set_country_code(800);
1855
- valid_number.set_national_number(12345678ULL);
1856
- EXPECT_TRUE(phone_util_.TruncateTooLongNumber(&too_long_number));
1857
- EXPECT_EQ(valid_number, too_long_number);
1858
-
1859
- // GB number 080 1234 5678, but entered with 4 extra digits at the end.
1860
- too_long_number.set_country_code(44);
1861
- too_long_number.set_national_number(80123456780123ULL);
1862
- valid_number.set_country_code(44);
1863
- valid_number.set_national_number(8012345678ULL);
1864
- EXPECT_TRUE(phone_util_.TruncateTooLongNumber(&too_long_number));
1865
- EXPECT_EQ(valid_number, too_long_number);
1866
-
1867
- // IT number 022 3456 7890, but entered with 3 extra digits at the end.
1868
- too_long_number.set_country_code(39);
1869
- too_long_number.set_national_number(2234567890123ULL);
1870
- too_long_number.set_italian_leading_zero(true);
1871
- valid_number.set_country_code(39);
1872
- valid_number.set_national_number(2234567890ULL);
1873
- valid_number.set_italian_leading_zero(true);
1874
- EXPECT_TRUE(phone_util_.TruncateTooLongNumber(&too_long_number));
1875
- EXPECT_EQ(valid_number, too_long_number);
1876
-
1877
- // Tests what happens when a valid number is passed in.
1878
- PhoneNumber valid_number_copy(valid_number);
1879
- EXPECT_TRUE(phone_util_.TruncateTooLongNumber(&valid_number));
1880
- // Tests the number is not modified.
1881
- EXPECT_EQ(valid_number_copy, valid_number);
1882
-
1883
- // Tests what happens when a number with invalid prefix is passed in.
1884
- PhoneNumber number_with_invalid_prefix;
1885
- number_with_invalid_prefix.set_country_code(1);
1886
- // The test metadata says US numbers cannot have prefix 240.
1887
- number_with_invalid_prefix.set_national_number(2401234567ULL);
1888
- PhoneNumber invalid_number_copy(number_with_invalid_prefix);
1889
- EXPECT_FALSE(phone_util_.TruncateTooLongNumber(&number_with_invalid_prefix));
1890
- // Tests the number is not modified.
1891
- EXPECT_EQ(invalid_number_copy, number_with_invalid_prefix);
1892
-
1893
- // Tests what happens when a too short number is passed in.
1894
- PhoneNumber too_short_number;
1895
- too_short_number.set_country_code(1);
1896
- too_short_number.set_national_number(1234ULL);
1897
- PhoneNumber too_short_number_copy(too_short_number);
1898
- EXPECT_FALSE(phone_util_.TruncateTooLongNumber(&too_short_number));
1899
- // Tests the number is not modified.
1900
- EXPECT_EQ(too_short_number_copy, too_short_number);
1901
- }
1902
-
1903
- TEST_F(PhoneNumberUtilTest, IsNumberGeographical) {
1904
- PhoneNumber number;
1905
-
1906
- number.set_country_code(1);
1907
- number.set_national_number(2423570000ULL);
1908
- EXPECT_FALSE(IsNumberGeographical(number)); // Bahamas, mobile phone number.
1909
-
1910
- number.set_country_code(61);
1911
- number.set_national_number(236618300ULL);
1912
- EXPECT_TRUE(IsNumberGeographical(number)); // Australian fixed line number.
1913
-
1914
- number.set_country_code(800);
1915
- number.set_national_number(12345678ULL);
1916
- EXPECT_FALSE(IsNumberGeographical(number)); // Internation toll free number.
1917
-
1918
- // We test that mobile phone numbers in relevant regions are indeed considered
1919
- // geographical.
1920
-
1921
- number.set_country_code(54);
1922
- number.set_national_number(91187654321ULL);
1923
- EXPECT_TRUE(IsNumberGeographical(number)); // Argentina, mobile phone number.
1924
-
1925
- number.set_country_code(52);
1926
- number.set_national_number(12345678900ULL);
1927
- EXPECT_TRUE(IsNumberGeographical(number)); // Mexico, mobile phone number.
1928
-
1929
- number.set_country_code(52);
1930
- number.set_national_number(15512345678ULL);
1931
- EXPECT_TRUE(IsNumberGeographical(number)); // Mexico, another mobile phone
1932
- // number.
1933
- }
1934
-
1935
- TEST_F(PhoneNumberUtilTest, IsLeadingZeroPossible) {
1936
- EXPECT_TRUE(IsLeadingZeroPossible(39)); // Italy
1937
- EXPECT_FALSE(IsLeadingZeroPossible(1)); // USA
1938
- EXPECT_TRUE(IsLeadingZeroPossible(800)); // International toll free
1939
- EXPECT_FALSE(IsLeadingZeroPossible(979)); // International premium-rate
1940
- EXPECT_FALSE(IsLeadingZeroPossible(888)); // Not in metadata file, should
1941
- // return default value of false.
1942
- }
1943
-
1944
- TEST_F(PhoneNumberUtilTest, FormatInOriginalFormat) {
1945
- PhoneNumber phone_number;
1946
- string formatted_number;
1947
-
1948
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
1949
- phone_util_.ParseAndKeepRawInput("+442087654321", RegionCode::GB(),
1950
- &phone_number));
1951
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::GB(),
1952
- &formatted_number);
1953
- EXPECT_EQ("+44 20 8765 4321", formatted_number);
1954
-
1955
- phone_number.Clear();
1956
- formatted_number.clear();
1957
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
1958
- phone_util_.ParseAndKeepRawInput("02087654321", RegionCode::GB(),
1959
- &phone_number));
1960
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::GB(),
1961
- &formatted_number);
1962
- EXPECT_EQ("(020) 8765 4321", formatted_number);
1963
-
1964
- phone_number.Clear();
1965
- formatted_number.clear();
1966
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
1967
- phone_util_.ParseAndKeepRawInput("011442087654321",
1968
- RegionCode::US(), &phone_number));
1969
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::US(),
1970
- &formatted_number);
1971
- EXPECT_EQ("011 44 20 8765 4321", formatted_number);
1972
-
1973
- phone_number.Clear();
1974
- formatted_number.clear();
1975
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
1976
- phone_util_.ParseAndKeepRawInput("442087654321", RegionCode::GB(),
1977
- &phone_number));
1978
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::GB(),
1979
- &formatted_number);
1980
- EXPECT_EQ("44 20 8765 4321", formatted_number);
1981
-
1982
- phone_number.Clear();
1983
- formatted_number.clear();
1984
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
1985
- phone_util_.Parse("+442087654321", RegionCode::GB(),
1986
- &phone_number));
1987
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::GB(),
1988
- &formatted_number);
1989
- EXPECT_EQ("(020) 8765 4321", formatted_number);
1990
-
1991
- // Invalid numbers that we have a formatting pattern for should be formatted
1992
- // properly. Note area codes starting with 7 are intentionally excluded in
1993
- // the test metadata for testing purposes.
1994
- phone_number.Clear();
1995
- formatted_number.clear();
1996
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
1997
- phone_util_.ParseAndKeepRawInput("7345678901", RegionCode::US(),
1998
- &phone_number));
1999
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::US(),
2000
- &formatted_number);
2001
- EXPECT_EQ("734 567 8901", formatted_number);
2002
-
2003
- // US is not a leading zero country, and the presence of the leading zero
2004
- // leads us to format the number using raw_input.
2005
- phone_number.Clear();
2006
- formatted_number.clear();
2007
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2008
- phone_util_.ParseAndKeepRawInput("0734567 8901", RegionCode::US(),
2009
- &phone_number));
2010
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::US(),
2011
- &formatted_number);
2012
- EXPECT_EQ("0734567 8901", formatted_number);
2013
-
2014
- // This number is valid, but we don't have a formatting pattern for it. Fall
2015
- // back to the raw input.
2016
- phone_number.Clear();
2017
- formatted_number.clear();
2018
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2019
- phone_util_.ParseAndKeepRawInput("02-4567-8900", RegionCode::KR(),
2020
- &phone_number));
2021
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::KR(),
2022
- &formatted_number);
2023
- EXPECT_EQ("02-4567-8900", formatted_number);
2024
-
2025
- phone_number.Clear();
2026
- formatted_number.clear();
2027
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2028
- phone_util_.ParseAndKeepRawInput("01180012345678",
2029
- RegionCode::US(), &phone_number));
2030
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::US(),
2031
- &formatted_number);
2032
- EXPECT_EQ("011 800 1234 5678", formatted_number);
2033
-
2034
- phone_number.Clear();
2035
- formatted_number.clear();
2036
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2037
- phone_util_.ParseAndKeepRawInput("+80012345678", RegionCode::KR(),
2038
- &phone_number));
2039
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::KR(),
2040
- &formatted_number);
2041
- EXPECT_EQ("+800 1234 5678", formatted_number);
2042
-
2043
- // US local numbers are formatted correctly, as we have formatting patterns
2044
- // for them.
2045
- phone_number.Clear();
2046
- formatted_number.clear();
2047
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2048
- phone_util_.ParseAndKeepRawInput("2530000", RegionCode::US(),
2049
- &phone_number));
2050
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::US(),
2051
- &formatted_number);
2052
- EXPECT_EQ("253 0000", formatted_number);
2053
-
2054
- phone_number.Clear();
2055
- formatted_number.clear();
2056
- // Number with national prefix in the US.
2057
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2058
- phone_util_.ParseAndKeepRawInput("18003456789", RegionCode::US(),
2059
- &phone_number));
2060
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::US(),
2061
- &formatted_number);
2062
- EXPECT_EQ("1 800 345 6789", formatted_number);
2063
-
2064
- phone_number.Clear();
2065
- formatted_number.clear();
2066
- // Number without national prefix in the UK.
2067
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2068
- phone_util_.ParseAndKeepRawInput("2087654321", RegionCode::GB(),
2069
- &phone_number));
2070
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::GB(),
2071
- &formatted_number);
2072
- EXPECT_EQ("20 8765 4321", formatted_number);
2073
- // Make sure no metadata is modified as a result of the previous function
2074
- // call.
2075
- phone_number.Clear();
2076
- formatted_number.clear();
2077
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2078
- phone_util_.Parse("+442087654321", RegionCode::GB(),
2079
- &phone_number));
2080
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::GB(),
2081
- &formatted_number);
2082
- EXPECT_EQ("(020) 8765 4321", formatted_number);
2083
-
2084
- phone_number.Clear();
2085
- formatted_number.clear();
2086
- // Number with national prefix in Mexico.
2087
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2088
- phone_util_.ParseAndKeepRawInput("013312345678", RegionCode::MX(),
2089
- &phone_number));
2090
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::MX(),
2091
- &formatted_number);
2092
- EXPECT_EQ("01 33 1234 5678", formatted_number);
2093
-
2094
- phone_number.Clear();
2095
- formatted_number.clear();
2096
- // Number without national prefix in Mexico.
2097
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2098
- phone_util_.ParseAndKeepRawInput("3312345678", RegionCode::MX(),
2099
- &phone_number));
2100
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::MX(),
2101
- &formatted_number);
2102
- EXPECT_EQ("33 1234 5678", formatted_number);
2103
-
2104
- phone_number.Clear();
2105
- formatted_number.clear();
2106
- // Italian fixed-line number.
2107
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2108
- phone_util_.ParseAndKeepRawInput("0212345678", RegionCode::IT(),
2109
- &phone_number));
2110
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::IT(),
2111
- &formatted_number);
2112
- EXPECT_EQ("02 1234 5678", formatted_number);
2113
-
2114
- phone_number.Clear();
2115
- formatted_number.clear();
2116
- // Number with national prefix in Japan.
2117
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2118
- phone_util_.ParseAndKeepRawInput("00777012", RegionCode::JP(),
2119
- &phone_number));
2120
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::JP(),
2121
- &formatted_number);
2122
- EXPECT_EQ("0077-7012", formatted_number);
2123
-
2124
- phone_number.Clear();
2125
- formatted_number.clear();
2126
- // Number without national prefix in Japan.
2127
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2128
- phone_util_.ParseAndKeepRawInput("0777012", RegionCode::JP(),
2129
- &phone_number));
2130
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::JP(),
2131
- &formatted_number);
2132
- EXPECT_EQ("0777012", formatted_number);
2133
-
2134
- phone_number.Clear();
2135
- formatted_number.clear();
2136
- // Number with carrier code in Brazil.
2137
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2138
- phone_util_.ParseAndKeepRawInput("012 3121286979", RegionCode::BR(),
2139
- &phone_number));
2140
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::BR(),
2141
- &formatted_number);
2142
- EXPECT_EQ("012 3121286979", formatted_number);
2143
-
2144
- phone_number.Clear();
2145
- formatted_number.clear();
2146
- // The default national prefix used in this case is 045. When a number with
2147
- // national prefix 044 is entered, we return the raw input as we don't want to
2148
- // change the number entered.
2149
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2150
- phone_util_.ParseAndKeepRawInput("044(33)1234-5678",
2151
- RegionCode::MX(),
2152
- &phone_number));
2153
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::MX(),
2154
- &formatted_number);
2155
- EXPECT_EQ("044(33)1234-5678", formatted_number);
2156
-
2157
- phone_number.Clear();
2158
- formatted_number.clear();
2159
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2160
- phone_util_.ParseAndKeepRawInput("045(33)1234-5678",
2161
- RegionCode::MX(),
2162
- &phone_number));
2163
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::MX(),
2164
- &formatted_number);
2165
- EXPECT_EQ("045 33 1234 5678", formatted_number);
2166
-
2167
- // The default international prefix used in this case is 0011. When a number
2168
- // with international prefix 0012 is entered, we return the raw input as we
2169
- // don't want to change the number entered.
2170
- phone_number.Clear();
2171
- formatted_number.clear();
2172
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2173
- phone_util_.ParseAndKeepRawInput("0012 16502530000",
2174
- RegionCode::AU(),
2175
- &phone_number));
2176
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::AU(),
2177
- &formatted_number);
2178
- EXPECT_EQ("0012 16502530000", formatted_number);
2179
-
2180
- phone_number.Clear();
2181
- formatted_number.clear();
2182
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2183
- phone_util_.ParseAndKeepRawInput("0011 16502530000",
2184
- RegionCode::AU(),
2185
- &phone_number));
2186
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::AU(),
2187
- &formatted_number);
2188
- EXPECT_EQ("0011 1 650 253 0000", formatted_number);
2189
-
2190
- // Test the star sign is not removed from or added to the original input by
2191
- // this method.
2192
- phone_number.Clear();
2193
- formatted_number.clear();
2194
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2195
- phone_util_.ParseAndKeepRawInput("*1234",
2196
- RegionCode::JP(),
2197
- &phone_number));
2198
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::JP(),
2199
- &formatted_number);
2200
- EXPECT_EQ("*1234", formatted_number);
2201
- phone_number.Clear();
2202
- formatted_number.clear();
2203
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2204
- phone_util_.ParseAndKeepRawInput("1234",
2205
- RegionCode::JP(),
2206
- &phone_number));
2207
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::JP(),
2208
- &formatted_number);
2209
- EXPECT_EQ("1234", formatted_number);
2210
-
2211
- // Test that an invalid national number without raw input is just formatted
2212
- // as the national number.
2213
- phone_number.Clear();
2214
- formatted_number.clear();
2215
- phone_number.set_country_code_source(PhoneNumber::FROM_DEFAULT_COUNTRY);
2216
- phone_number.set_country_code(1);
2217
- phone_number.set_national_number(650253000ULL);
2218
- phone_util_.FormatInOriginalFormat(phone_number, RegionCode::US(),
2219
- &formatted_number);
2220
- EXPECT_EQ("650253000", formatted_number);
2221
- }
2222
-
2223
- TEST_F(PhoneNumberUtilTest, IsPremiumRate) {
2224
- PhoneNumber number;
2225
- number.set_country_code(1);
2226
- number.set_national_number(9004433030ULL);
2227
- EXPECT_EQ(PhoneNumberUtil::PREMIUM_RATE, phone_util_.GetNumberType(number));
2228
-
2229
- number.set_country_code(39);
2230
- number.set_national_number(892123ULL);
2231
- EXPECT_EQ(PhoneNumberUtil::PREMIUM_RATE, phone_util_.GetNumberType(number));
2232
-
2233
- number.set_country_code(44);
2234
- number.set_national_number(9187654321ULL);
2235
- EXPECT_EQ(PhoneNumberUtil::PREMIUM_RATE, phone_util_.GetNumberType(number));
2236
-
2237
- number.set_country_code(49);
2238
- number.set_national_number(9001654321ULL);
2239
- EXPECT_EQ(PhoneNumberUtil::PREMIUM_RATE, phone_util_.GetNumberType(number));
2240
-
2241
- number.set_country_code(49);
2242
- number.set_national_number(90091234567ULL);
2243
- EXPECT_EQ(PhoneNumberUtil::PREMIUM_RATE, phone_util_.GetNumberType(number));
2244
-
2245
- number.set_country_code(979);
2246
- number.set_national_number(123456789ULL);
2247
- EXPECT_EQ(PhoneNumberUtil::PREMIUM_RATE, phone_util_.GetNumberType(number));
2248
- }
2249
-
2250
- TEST_F(PhoneNumberUtilTest, IsTollFree) {
2251
- PhoneNumber number;
2252
- number.set_country_code(1);
2253
- number.set_national_number(8881234567ULL);
2254
- EXPECT_EQ(PhoneNumberUtil::TOLL_FREE, phone_util_.GetNumberType(number));
2255
-
2256
- number.set_country_code(39);
2257
- number.set_national_number(803123ULL);
2258
- EXPECT_EQ(PhoneNumberUtil::TOLL_FREE, phone_util_.GetNumberType(number));
2259
-
2260
- number.set_country_code(44);
2261
- number.set_national_number(8012345678ULL);
2262
- EXPECT_EQ(PhoneNumberUtil::TOLL_FREE, phone_util_.GetNumberType(number));
2263
-
2264
- number.set_country_code(49);
2265
- number.set_national_number(8001234567ULL);
2266
- EXPECT_EQ(PhoneNumberUtil::TOLL_FREE, phone_util_.GetNumberType(number));
2267
-
2268
- number.set_country_code(800);
2269
- number.set_national_number(12345678ULL);
2270
- EXPECT_EQ(PhoneNumberUtil::TOLL_FREE, phone_util_.GetNumberType(number));
2271
- }
2272
-
2273
- TEST_F(PhoneNumberUtilTest, IsMobile) {
2274
- PhoneNumber number;
2275
- // A Bahama mobile number
2276
- number.set_country_code(1);
2277
- number.set_national_number(2423570000ULL);
2278
- EXPECT_EQ(PhoneNumberUtil::MOBILE, phone_util_.GetNumberType(number));
2279
-
2280
- number.set_country_code(39);
2281
- number.set_national_number(312345678ULL);
2282
- EXPECT_EQ(PhoneNumberUtil::MOBILE, phone_util_.GetNumberType(number));
2283
-
2284
- number.set_country_code(44);
2285
- number.set_national_number(7912345678ULL);
2286
- EXPECT_EQ(PhoneNumberUtil::MOBILE, phone_util_.GetNumberType(number));
2287
-
2288
- number.set_country_code(49);
2289
- number.set_national_number(15123456789ULL);
2290
- EXPECT_EQ(PhoneNumberUtil::MOBILE, phone_util_.GetNumberType(number));
2291
-
2292
- number.set_country_code(54);
2293
- number.set_national_number(91187654321ULL);
2294
- EXPECT_EQ(PhoneNumberUtil::MOBILE, phone_util_.GetNumberType(number));
2295
- }
2296
-
2297
- TEST_F(PhoneNumberUtilTest, IsFixedLine) {
2298
- PhoneNumber number;
2299
- // A Bahama fixed-line number
2300
- number.set_country_code(1);
2301
- number.set_national_number(2423651234ULL);
2302
- EXPECT_EQ(PhoneNumberUtil::FIXED_LINE, phone_util_.GetNumberType(number));
2303
-
2304
- // An Italian fixed-line number
2305
- number.Clear();
2306
- number.set_country_code(39);
2307
- number.set_national_number(236618300ULL);
2308
- number.set_italian_leading_zero(true);
2309
- EXPECT_EQ(PhoneNumberUtil::FIXED_LINE, phone_util_.GetNumberType(number));
2310
-
2311
- number.Clear();
2312
- number.set_country_code(44);
2313
- number.set_national_number(2012345678ULL);
2314
- EXPECT_EQ(PhoneNumberUtil::FIXED_LINE, phone_util_.GetNumberType(number));
2315
-
2316
- number.set_country_code(49);
2317
- number.set_national_number(301234ULL);
2318
- EXPECT_EQ(PhoneNumberUtil::FIXED_LINE, phone_util_.GetNumberType(number));
2319
- }
2320
-
2321
- TEST_F(PhoneNumberUtilTest, IsFixedLineAndMobile) {
2322
- PhoneNumber number;
2323
- number.set_country_code(1);
2324
- number.set_national_number(6502531111ULL);
2325
- EXPECT_EQ(PhoneNumberUtil::FIXED_LINE_OR_MOBILE,
2326
- phone_util_.GetNumberType(number));
2327
-
2328
- number.set_country_code(54);
2329
- number.set_national_number(1987654321ULL);
2330
- EXPECT_EQ(PhoneNumberUtil::FIXED_LINE_OR_MOBILE,
2331
- phone_util_.GetNumberType(number));
2332
- }
2333
-
2334
- TEST_F(PhoneNumberUtilTest, IsSharedCost) {
2335
- PhoneNumber number;
2336
- number.set_country_code(44);
2337
- number.set_national_number(8431231234ULL);
2338
- EXPECT_EQ(PhoneNumberUtil::SHARED_COST, phone_util_.GetNumberType(number));
2339
- }
2340
-
2341
- TEST_F(PhoneNumberUtilTest, IsVoip) {
2342
- PhoneNumber number;
2343
- number.set_country_code(44);
2344
- number.set_national_number(5631231234ULL);
2345
- EXPECT_EQ(PhoneNumberUtil::VOIP, phone_util_.GetNumberType(number));
2346
- }
2347
-
2348
- TEST_F(PhoneNumberUtilTest, IsPersonalNumber) {
2349
- PhoneNumber number;
2350
- number.set_country_code(44);
2351
- number.set_national_number(7031231234ULL);
2352
- EXPECT_EQ(PhoneNumberUtil::PERSONAL_NUMBER,
2353
- phone_util_.GetNumberType(number));
2354
- }
2355
-
2356
- TEST_F(PhoneNumberUtilTest, IsUnknown) {
2357
- PhoneNumber number;
2358
- number.set_country_code(1);
2359
- number.set_national_number(65025311111ULL);
2360
- EXPECT_EQ(PhoneNumberUtil::UNKNOWN, phone_util_.GetNumberType(number));
2361
- }
2362
-
2363
- TEST_F(PhoneNumberUtilTest, GetCountryCodeForRegion) {
2364
- EXPECT_EQ(1, phone_util_.GetCountryCodeForRegion(RegionCode::US()));
2365
- EXPECT_EQ(64, phone_util_.GetCountryCodeForRegion(RegionCode::NZ()));
2366
- EXPECT_EQ(0, phone_util_.GetCountryCodeForRegion(RegionCode::GetUnknown()));
2367
- EXPECT_EQ(0, phone_util_.GetCountryCodeForRegion(RegionCode::UN001()));
2368
- // CS is already deprecated so the library doesn't support it.
2369
- EXPECT_EQ(0, phone_util_.GetCountryCodeForRegion(RegionCode::CS()));
2370
- }
2371
-
2372
- TEST_F(PhoneNumberUtilTest, GetNationalDiallingPrefixForRegion) {
2373
- string ndd_prefix;
2374
- GetNddPrefixForRegion(RegionCode::US(), false, &ndd_prefix);
2375
- EXPECT_EQ("1", ndd_prefix);
2376
-
2377
- // Test non-main country to see it gets the national dialling prefix for the
2378
- // main country with that country calling code.
2379
- GetNddPrefixForRegion(RegionCode::BS(), false, &ndd_prefix);
2380
- EXPECT_EQ("1", ndd_prefix);
2381
-
2382
- GetNddPrefixForRegion(RegionCode::NZ(), false, &ndd_prefix);
2383
- EXPECT_EQ("0", ndd_prefix);
2384
-
2385
- // Test case with non digit in the national prefix.
2386
- GetNddPrefixForRegion(RegionCode::AO(), false, &ndd_prefix);
2387
- EXPECT_EQ("0~0", ndd_prefix);
2388
-
2389
- GetNddPrefixForRegion(RegionCode::AO(), true, &ndd_prefix);
2390
- EXPECT_EQ("00", ndd_prefix);
2391
-
2392
- // Test cases with invalid regions.
2393
- GetNddPrefixForRegion(RegionCode::GetUnknown(), false, &ndd_prefix);
2394
- EXPECT_EQ("", ndd_prefix);
2395
-
2396
- GetNddPrefixForRegion(RegionCode::UN001(), false, &ndd_prefix);
2397
- EXPECT_EQ("", ndd_prefix);
2398
-
2399
- // CS is already deprecated so the library doesn't support it.
2400
- GetNddPrefixForRegion(RegionCode::CS(), false, &ndd_prefix);
2401
- EXPECT_EQ("", ndd_prefix);
2402
- }
2403
-
2404
- TEST_F(PhoneNumberUtilTest, IsViablePhoneNumber) {
2405
- EXPECT_FALSE(IsViablePhoneNumber("1"));
2406
- // Only one or two digits before strange non-possible punctuation.
2407
- EXPECT_FALSE(IsViablePhoneNumber("1+1+1"));
2408
- EXPECT_FALSE(IsViablePhoneNumber("80+0"));
2409
- // Two digits is viable.
2410
- EXPECT_TRUE(IsViablePhoneNumber("00"));
2411
- EXPECT_TRUE(IsViablePhoneNumber("111"));
2412
- // Alpha numbers.
2413
- EXPECT_TRUE(IsViablePhoneNumber("0800-4-pizza"));
2414
- EXPECT_TRUE(IsViablePhoneNumber("0800-4-PIZZA"));
2415
- // We need at least three digits before any alpha characters.
2416
- EXPECT_FALSE(IsViablePhoneNumber("08-PIZZA"));
2417
- EXPECT_FALSE(IsViablePhoneNumber("8-PIZZA"));
2418
- EXPECT_FALSE(IsViablePhoneNumber("12. March"));
2419
- }
2420
-
2421
- TEST_F(PhoneNumberUtilTest, IsViablePhoneNumberNonAscii) {
2422
- // Only one or two digits before possible punctuation followed by more digits.
2423
- // The punctuation used here is the unicode character u+3000.
2424
- EXPECT_TRUE(IsViablePhoneNumber("1\xE3\x80\x80" "34" /* "1 34" */));
2425
- EXPECT_FALSE(IsViablePhoneNumber("1\xE3\x80\x80" "3+4" /* "1 3+4" */));
2426
- // Unicode variants of possible starting character and other allowed
2427
- // punctuation/digits.
2428
- EXPECT_TRUE(IsViablePhoneNumber("\xEF\xBC\x88" "1\xEF\xBC\x89\xE3\x80\x80"
2429
- "3456789" /* "(1) 3456789" */));
2430
- // Testing a leading + is okay.
2431
- EXPECT_TRUE(IsViablePhoneNumber("+1\xEF\xBC\x89\xE3\x80\x80"
2432
- "3456789" /* "+1) 3456789" */));
2433
- }
2434
-
2435
- TEST_F(PhoneNumberUtilTest, ConvertAlphaCharactersInNumber) {
2436
- string input("1800-ABC-DEF");
2437
- phone_util_.ConvertAlphaCharactersInNumber(&input);
2438
- // Alpha chars are converted to digits; everything else is left untouched.
2439
- static const string kExpectedOutput = "1800-222-333";
2440
- EXPECT_EQ(kExpectedOutput, input);
2441
-
2442
- // Try with some non-ASCII characters.
2443
- input.assign("1\xE3\x80\x80\xEF\xBC\x88" "800) ABC-DEF"
2444
- /* "1 (800) ABC-DEF" */);
2445
- static const string kExpectedFullwidthOutput =
2446
- "1\xE3\x80\x80\xEF\xBC\x88" "800) 222-333" /* "1 (800) 222-333" */;
2447
- phone_util_.ConvertAlphaCharactersInNumber(&input);
2448
- EXPECT_EQ(kExpectedFullwidthOutput, input);
2449
- }
2450
-
2451
- TEST_F(PhoneNumberUtilTest, NormaliseRemovePunctuation) {
2452
- string input_number("034-56&+#2" "\xC2\xAD" "34");
2453
- Normalize(&input_number);
2454
- static const string kExpectedOutput("03456234");
2455
- EXPECT_EQ(kExpectedOutput, input_number)
2456
- << "Conversion did not correctly remove punctuation";
2457
- }
2458
-
2459
- TEST_F(PhoneNumberUtilTest, NormaliseReplaceAlphaCharacters) {
2460
- string input_number("034-I-am-HUNGRY");
2461
- Normalize(&input_number);
2462
- static const string kExpectedOutput("034426486479");
2463
- EXPECT_EQ(kExpectedOutput, input_number)
2464
- << "Conversion did not correctly replace alpha characters";
2465
- }
2466
-
2467
- TEST_F(PhoneNumberUtilTest, NormaliseOtherDigits) {
2468
- // The first digit is a full-width 2, the last digit is an Arabic-indic digit
2469
- // 5.
2470
- string input_number("\xEF\xBC\x92" "5\xD9\xA5" /* "25٥" */);
2471
- Normalize(&input_number);
2472
- static const string kExpectedOutput("255");
2473
- EXPECT_EQ(kExpectedOutput, input_number)
2474
- << "Conversion did not correctly replace non-latin digits";
2475
- // The first digit is an Eastern-Arabic 5, the latter an Eastern-Arabic 0.
2476
- string eastern_arabic_input_number("\xDB\xB5" "2\xDB\xB0" /* "۵2۰" */);
2477
- Normalize(&eastern_arabic_input_number);
2478
- static const string kExpectedOutput2("520");
2479
- EXPECT_EQ(kExpectedOutput2, eastern_arabic_input_number)
2480
- << "Conversion did not correctly replace non-latin digits";
2481
- }
2482
-
2483
- TEST_F(PhoneNumberUtilTest, NormaliseStripAlphaCharacters) {
2484
- string input_number("034-56&+a#234");
2485
- phone_util_.NormalizeDigitsOnly(&input_number);
2486
- static const string kExpectedOutput("03456234");
2487
- EXPECT_EQ(kExpectedOutput, input_number)
2488
- << "Conversion did not correctly remove alpha characters";
2489
- }
2490
-
2491
- TEST_F(PhoneNumberUtilTest, NormaliseStripNonDiallableCharacters) {
2492
- string input_number("03*4-56&+a#234");
2493
- NormalizeDiallableCharsOnly(&input_number);
2494
- static const string kExpectedOutput("03*456+234");
2495
- EXPECT_EQ(kExpectedOutput, input_number)
2496
- << "Conversion did not correctly remove non-diallable characters";
2497
- }
2498
-
2499
- TEST_F(PhoneNumberUtilTest, MaybeStripInternationalPrefix) {
2500
- string international_prefix("00[39]");
2501
- string number_to_strip("0034567700-3898003");
2502
- // Note the dash is removed as part of the normalization.
2503
- string stripped_number("45677003898003");
2504
- EXPECT_EQ(PhoneNumber::FROM_NUMBER_WITH_IDD,
2505
- MaybeStripInternationalPrefixAndNormalize(international_prefix,
2506
- &number_to_strip));
2507
- EXPECT_EQ(stripped_number, number_to_strip)
2508
- << "The number was not stripped of its international prefix.";
2509
-
2510
- // Now the number no longer starts with an IDD prefix, so it should now report
2511
- // FROM_DEFAULT_COUNTRY.
2512
- EXPECT_EQ(PhoneNumber::FROM_DEFAULT_COUNTRY,
2513
- MaybeStripInternationalPrefixAndNormalize(international_prefix,
2514
- &number_to_strip));
2515
-
2516
- number_to_strip.assign("00945677003898003");
2517
- EXPECT_EQ(PhoneNumber::FROM_NUMBER_WITH_IDD,
2518
- MaybeStripInternationalPrefixAndNormalize(international_prefix,
2519
- &number_to_strip));
2520
- EXPECT_EQ(stripped_number, number_to_strip)
2521
- << "The number was not stripped of its international prefix.";
2522
-
2523
- // Test it works when the international prefix is broken up by spaces.
2524
- number_to_strip.assign("00 9 45677003898003");
2525
- EXPECT_EQ(PhoneNumber::FROM_NUMBER_WITH_IDD,
2526
- MaybeStripInternationalPrefixAndNormalize(international_prefix,
2527
- &number_to_strip));
2528
- EXPECT_EQ(stripped_number, number_to_strip)
2529
- << "The number was not stripped of its international prefix.";
2530
- // Now the number no longer starts with an IDD prefix, so it should now report
2531
- // FROM_DEFAULT_COUNTRY.
2532
- EXPECT_EQ(PhoneNumber::FROM_DEFAULT_COUNTRY,
2533
- MaybeStripInternationalPrefixAndNormalize(international_prefix,
2534
- &number_to_strip));
2535
-
2536
- // Test the + symbol is also recognised and stripped.
2537
- number_to_strip.assign("+45677003898003");
2538
- stripped_number.assign("45677003898003");
2539
- EXPECT_EQ(PhoneNumber::FROM_NUMBER_WITH_PLUS_SIGN,
2540
- MaybeStripInternationalPrefixAndNormalize(international_prefix,
2541
- &number_to_strip));
2542
- EXPECT_EQ(stripped_number, number_to_strip)
2543
- << "The number supplied was not stripped of the plus symbol.";
2544
-
2545
- // If the number afterwards is a zero, we should not strip this - no country
2546
- // code begins with 0.
2547
- number_to_strip.assign("0090112-3123");
2548
- stripped_number.assign("00901123123");
2549
- EXPECT_EQ(PhoneNumber::FROM_DEFAULT_COUNTRY,
2550
- MaybeStripInternationalPrefixAndNormalize(international_prefix,
2551
- &number_to_strip));
2552
- EXPECT_EQ(stripped_number, number_to_strip)
2553
- << "The number had a 0 after the match so shouldn't be stripped.";
2554
- // Here the 0 is separated by a space from the IDD.
2555
- number_to_strip.assign("009 0-112-3123");
2556
- EXPECT_EQ(PhoneNumber::FROM_DEFAULT_COUNTRY,
2557
- MaybeStripInternationalPrefixAndNormalize(international_prefix,
2558
- &number_to_strip));
2559
- }
2560
-
2561
- TEST_F(PhoneNumberUtilTest, MaybeStripNationalPrefixAndCarrierCode) {
2562
- PhoneMetadata metadata;
2563
- metadata.set_national_prefix_for_parsing("34");
2564
- metadata.mutable_general_desc()->set_national_number_pattern("\\d{4,8}");
2565
- string number_to_strip("34356778");
2566
- string stripped_number("356778");
2567
- string carrier_code;
2568
- MaybeStripNationalPrefixAndCarrierCode(metadata, &number_to_strip,
2569
- &carrier_code);
2570
- EXPECT_EQ(stripped_number, number_to_strip)
2571
- << "Should have had national prefix stripped.";
2572
- EXPECT_EQ("", carrier_code) << "Should have had no carrier code stripped.";
2573
- // Retry stripping - now the number should not start with the national prefix,
2574
- // so no more stripping should occur.
2575
- MaybeStripNationalPrefixAndCarrierCode(metadata, &number_to_strip,
2576
- &carrier_code);
2577
- EXPECT_EQ(stripped_number, number_to_strip)
2578
- << "Should have had no change - no national prefix present.";
2579
- // Some countries have no national prefix. Repeat test with none specified.
2580
- metadata.clear_national_prefix_for_parsing();
2581
- MaybeStripNationalPrefixAndCarrierCode(metadata, &number_to_strip,
2582
- &carrier_code);
2583
- EXPECT_EQ(stripped_number, number_to_strip)
2584
- << "Should have had no change - empty national prefix.";
2585
- // If the resultant number doesn't match the national rule, it shouldn't be
2586
- // stripped.
2587
- metadata.set_national_prefix_for_parsing("3");
2588
- number_to_strip.assign("3123");
2589
- stripped_number.assign("3123");
2590
- MaybeStripNationalPrefixAndCarrierCode(metadata, &number_to_strip,
2591
- &carrier_code);
2592
- EXPECT_EQ(stripped_number, number_to_strip)
2593
- << "Should have had no change - after stripping, it wouldn't have "
2594
- << "matched the national rule.";
2595
- // Test extracting carrier selection code.
2596
- metadata.set_national_prefix_for_parsing("0(81)?");
2597
- number_to_strip.assign("08122123456");
2598
- stripped_number.assign("22123456");
2599
- MaybeStripNationalPrefixAndCarrierCode(metadata, &number_to_strip,
2600
- &carrier_code);
2601
- EXPECT_EQ("81", carrier_code) << "Should have had carrier code stripped.";
2602
- EXPECT_EQ(stripped_number, number_to_strip)
2603
- << "Should have had national prefix and carrier code stripped.";
2604
- // If there was a transform rule, check it was applied.
2605
- metadata.set_national_prefix_transform_rule("5$15");
2606
- // Note that a capturing group is present here.
2607
- metadata.set_national_prefix_for_parsing("0(\\d{2})");
2608
- number_to_strip.assign("031123");
2609
- string transformed_number("5315123");
2610
- MaybeStripNationalPrefixAndCarrierCode(metadata, &number_to_strip,
2611
- &carrier_code);
2612
- EXPECT_EQ(transformed_number, number_to_strip)
2613
- << "Was not successfully transformed.";
2614
- }
2615
-
2616
- TEST_F(PhoneNumberUtilTest, MaybeStripExtension) {
2617
- // One with extension.
2618
- string number("1234576 ext. 1234");
2619
- string extension;
2620
- string expected_extension("1234");
2621
- string stripped_number("1234576");
2622
- EXPECT_TRUE(MaybeStripExtension(&number, &extension));
2623
- EXPECT_EQ(stripped_number, number);
2624
- EXPECT_EQ(expected_extension, extension);
2625
-
2626
- // One without extension.
2627
- number.assign("1234-576");
2628
- extension.clear();
2629
- stripped_number.assign("1234-576");
2630
- EXPECT_FALSE(MaybeStripExtension(&number, &extension));
2631
- EXPECT_EQ(stripped_number, number);
2632
- EXPECT_TRUE(extension.empty());
2633
-
2634
- // One with an extension caught by the second capturing group in
2635
- // kKnownExtnPatterns.
2636
- number.assign("1234576-123#");
2637
- extension.clear();
2638
- expected_extension.assign("123");
2639
- stripped_number.assign("1234576");
2640
- EXPECT_TRUE(MaybeStripExtension(&number, &extension));
2641
- EXPECT_EQ(stripped_number, number);
2642
- EXPECT_EQ(expected_extension, extension);
2643
-
2644
- number.assign("1234576 ext.123#");
2645
- extension.clear();
2646
- EXPECT_TRUE(MaybeStripExtension(&number, &extension));
2647
- EXPECT_EQ(stripped_number, number);
2648
- EXPECT_EQ(expected_extension, extension);
2649
- }
2650
-
2651
- TEST_F(PhoneNumberUtilTest, MaybeExtractCountryCode) {
2652
- PhoneNumber number;
2653
- const PhoneMetadata* metadata = GetPhoneMetadata(RegionCode::US());
2654
- // Note that for the US, the IDD is 011.
2655
- string phone_number("011112-3456789");
2656
- string stripped_number("123456789");
2657
- int expected_country_code = 1;
2658
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2659
- MaybeExtractCountryCode(metadata, true, &phone_number, &number));
2660
- EXPECT_EQ(expected_country_code, number.country_code());
2661
- EXPECT_EQ(PhoneNumber::FROM_NUMBER_WITH_IDD, number.country_code_source());
2662
- EXPECT_EQ(stripped_number, phone_number);
2663
-
2664
- number.Clear();
2665
- phone_number.assign("+80012345678");
2666
- stripped_number.assign("12345678");
2667
- expected_country_code = 800;
2668
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2669
- MaybeExtractCountryCode(metadata, true, &phone_number, &number));
2670
- EXPECT_EQ(expected_country_code, number.country_code());
2671
- EXPECT_EQ(PhoneNumber::FROM_NUMBER_WITH_PLUS_SIGN,
2672
- number.country_code_source());
2673
- EXPECT_EQ(stripped_number, phone_number);
2674
-
2675
- number.Clear();
2676
- phone_number.assign("+6423456789");
2677
- stripped_number.assign("23456789");
2678
- expected_country_code = 64;
2679
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2680
- MaybeExtractCountryCode(metadata, true, &phone_number, &number));
2681
- EXPECT_EQ(expected_country_code, number.country_code());
2682
- EXPECT_EQ(PhoneNumber::FROM_NUMBER_WITH_PLUS_SIGN,
2683
- number.country_code_source());
2684
- EXPECT_EQ(stripped_number, phone_number);
2685
-
2686
- // Should not have extracted a country code - no international prefix present.
2687
- number.Clear();
2688
- expected_country_code = 0;
2689
- phone_number.assign("2345-6789");
2690
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2691
- MaybeExtractCountryCode(metadata, true, &phone_number, &number));
2692
- EXPECT_EQ(expected_country_code, number.country_code());
2693
- EXPECT_EQ(PhoneNumber::FROM_DEFAULT_COUNTRY, number.country_code_source());
2694
- EXPECT_EQ(stripped_number, phone_number);
2695
-
2696
- expected_country_code = 0;
2697
- phone_number.assign("0119991123456789");
2698
- stripped_number.assign(phone_number);
2699
- EXPECT_EQ(PhoneNumberUtil::INVALID_COUNTRY_CODE_ERROR,
2700
- MaybeExtractCountryCode(metadata, true, &phone_number, &number));
2701
-
2702
- number.Clear();
2703
- phone_number.assign("(1 610) 619 4466");
2704
- stripped_number.assign("6106194466");
2705
- expected_country_code = 1;
2706
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2707
- MaybeExtractCountryCode(metadata, true, &phone_number, &number));
2708
- EXPECT_EQ(expected_country_code, number.country_code());
2709
- EXPECT_EQ(PhoneNumber::FROM_NUMBER_WITHOUT_PLUS_SIGN,
2710
- number.country_code_source());
2711
- EXPECT_EQ(stripped_number, phone_number);
2712
-
2713
- number.Clear();
2714
- phone_number.assign("(1 610) 619 4466");
2715
- stripped_number.assign("6106194466");
2716
- expected_country_code = 1;
2717
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2718
- MaybeExtractCountryCode(metadata, false, &phone_number, &number));
2719
- EXPECT_EQ(expected_country_code, number.country_code());
2720
- EXPECT_FALSE(number.has_country_code_source());
2721
- EXPECT_EQ(stripped_number, phone_number);
2722
-
2723
- // Should not have extracted a country code - invalid number after extraction
2724
- // of uncertain country code.
2725
- number.Clear();
2726
- phone_number.assign("(1 610) 619 446");
2727
- stripped_number.assign("1610619446");
2728
- expected_country_code = 0;
2729
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2730
- MaybeExtractCountryCode(metadata, false, &phone_number, &number));
2731
- EXPECT_EQ(expected_country_code, number.country_code());
2732
- EXPECT_FALSE(number.has_country_code_source());
2733
- EXPECT_EQ(stripped_number, phone_number);
2734
-
2735
- number.Clear();
2736
- phone_number.assign("(1 610) 619");
2737
- stripped_number.assign("1610619");
2738
- expected_country_code = 0;
2739
- // Should not have extracted a country code - invalid number both before and
2740
- // after extraction of uncertain country code.
2741
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
2742
- MaybeExtractCountryCode(metadata, true, &phone_number, &number));
2743
- EXPECT_EQ(expected_country_code, number.country_code());
2744
- EXPECT_EQ(PhoneNumber::FROM_DEFAULT_COUNTRY, number.country_code_source());
2745
- EXPECT_EQ(stripped_number, phone_number);
2746
- }
2747
-
2748
- TEST_F(PhoneNumberUtilTest, CountryWithNoNumberDesc) {
2749
- string formatted_number;
2750
- // Andorra is a country where we don't have PhoneNumberDesc info in the
2751
- // metadata.
2752
- PhoneNumber ad_number;
2753
- ad_number.set_country_code(376);
2754
- ad_number.set_national_number(12345ULL);
2755
- phone_util_.Format(ad_number, PhoneNumberUtil::INTERNATIONAL,
2756
- &formatted_number);
2757
- EXPECT_EQ("+376 12345", formatted_number);
2758
- phone_util_.Format(ad_number, PhoneNumberUtil::E164, &formatted_number);
2759
- EXPECT_EQ("+37612345", formatted_number);
2760
- phone_util_.Format(ad_number, PhoneNumberUtil::NATIONAL, &formatted_number);
2761
- EXPECT_EQ("12345", formatted_number);
2762
- EXPECT_EQ(PhoneNumberUtil::UNKNOWN, phone_util_.GetNumberType(ad_number));
2763
- EXPECT_FALSE(phone_util_.IsValidNumber(ad_number));
2764
-
2765
- // Test dialing a US number from within Andorra.
2766
- PhoneNumber us_number;
2767
- us_number.set_country_code(1);
2768
- us_number.set_national_number(6502530000ULL);
2769
- phone_util_.FormatOutOfCountryCallingNumber(us_number, RegionCode::AD(),
2770
- &formatted_number);
2771
- EXPECT_EQ("00 1 650 253 0000", formatted_number);
2772
- }
2773
-
2774
- TEST_F(PhoneNumberUtilTest, UnknownCountryCallingCode) {
2775
- PhoneNumber invalid_number;
2776
- invalid_number.set_country_code(kInvalidCountryCode);
2777
- invalid_number.set_national_number(12345ULL);
2778
-
2779
- EXPECT_FALSE(phone_util_.IsValidNumber(invalid_number));
2780
-
2781
- // It's not very well defined as to what the E164 representation for a number
2782
- // with an invalid country calling code is, but just prefixing the country
2783
- // code and national number is about the best we can do.
2784
- string formatted_number;
2785
- phone_util_.Format(invalid_number, PhoneNumberUtil::E164, &formatted_number);
2786
- EXPECT_EQ("+212345", formatted_number);
2787
- }
2788
-
2789
- TEST_F(PhoneNumberUtilTest, IsNumberMatchMatches) {
2790
- // Test simple matches where formatting is different, or leading zeros, or
2791
- // country code has been specified.
2792
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2793
- phone_util_.IsNumberMatchWithTwoStrings("+64 3 331 6005",
2794
- "+64 03 331 6005"));
2795
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2796
- phone_util_.IsNumberMatchWithTwoStrings("+800 1234 5678",
2797
- "+80012345678"));
2798
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2799
- phone_util_.IsNumberMatchWithTwoStrings("+64 03 331-6005",
2800
- "+64 03331 6005"));
2801
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2802
- phone_util_.IsNumberMatchWithTwoStrings("+643 331-6005",
2803
- "+64033316005"));
2804
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2805
- phone_util_.IsNumberMatchWithTwoStrings("+643 331-6005",
2806
- "+6433316005"));
2807
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2808
- phone_util_.IsNumberMatchWithTwoStrings("+64 3 331-6005",
2809
- "+6433316005"));
2810
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2811
- phone_util_.IsNumberMatchWithTwoStrings(
2812
- "+64 3 331-6005", "tel:+64-3-331-6005;isub=123"));
2813
- // Test alpha numbers.
2814
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2815
- phone_util_.IsNumberMatchWithTwoStrings("+1800 siX-Flags",
2816
- "+1 800 7493 5247"));
2817
- // Test numbers with extensions.
2818
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2819
- phone_util_.IsNumberMatchWithTwoStrings("+64 3 331-6005 extn 1234",
2820
- "+6433316005#1234"));
2821
- // Test proto buffers.
2822
- PhoneNumber nz_number;
2823
- nz_number.set_country_code(64);
2824
- nz_number.set_national_number(33316005ULL);
2825
- nz_number.set_extension("3456");
2826
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2827
- phone_util_.IsNumberMatchWithOneString(nz_number,
2828
- "+643 331 6005 ext 3456"));
2829
- nz_number.clear_extension();
2830
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2831
- phone_util_.IsNumberMatchWithOneString(nz_number,
2832
- "+643 331 6005"));
2833
- // Check empty extensions are ignored.
2834
- nz_number.set_extension("");
2835
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2836
- phone_util_.IsNumberMatchWithOneString(nz_number,
2837
- "+643 331 6005"));
2838
- // Check variant with two proto buffers.
2839
- PhoneNumber nz_number_2;
2840
- nz_number_2.set_country_code(64);
2841
- nz_number_2.set_national_number(33316005ULL);
2842
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2843
- phone_util_.IsNumberMatch(nz_number, nz_number_2));
2844
-
2845
- // Check raw_input, country_code_source and preferred_domestic_carrier_code
2846
- // are ignored.
2847
- PhoneNumber br_number_1;
2848
- PhoneNumber br_number_2;
2849
- br_number_1.set_country_code(55);
2850
- br_number_1.set_national_number(3121286979ULL);
2851
- br_number_1.set_country_code_source(PhoneNumber::FROM_NUMBER_WITH_PLUS_SIGN);
2852
- br_number_1.set_preferred_domestic_carrier_code("12");
2853
- br_number_1.set_raw_input("012 3121286979");
2854
- br_number_2.set_country_code(55);
2855
- br_number_2.set_national_number(3121286979ULL);
2856
- br_number_2.set_country_code_source(PhoneNumber::FROM_DEFAULT_COUNTRY);
2857
- br_number_2.set_preferred_domestic_carrier_code("14");
2858
- br_number_2.set_raw_input("143121286979");
2859
- EXPECT_EQ(PhoneNumberUtil::EXACT_MATCH,
2860
- phone_util_.IsNumberMatch(br_number_1, br_number_2));
2861
- }
2862
-
2863
- TEST_F(PhoneNumberUtilTest, IsNumberMatchNonMatches) {
2864
- // NSN matches.
2865
- EXPECT_EQ(PhoneNumberUtil::NO_MATCH,
2866
- phone_util_.IsNumberMatchWithTwoStrings("03 331 6005",
2867
- "03 331 6006"));
2868
- EXPECT_EQ(PhoneNumberUtil::NO_MATCH,
2869
- phone_util_.IsNumberMatchWithTwoStrings("+800 1234 5678",
2870
- "+1 800 1234 5678"));
2871
- // Different country code, partial number match.
2872
- EXPECT_EQ(PhoneNumberUtil::NO_MATCH,
2873
- phone_util_.IsNumberMatchWithTwoStrings("+64 3 331-6005",
2874
- "+16433316005"));
2875
- // Different country code, same number.
2876
- EXPECT_EQ(PhoneNumberUtil::NO_MATCH,
2877
- phone_util_.IsNumberMatchWithTwoStrings("+64 3 331-6005",
2878
- "+6133316005"));
2879
- // Extension different, all else the same.
2880
- EXPECT_EQ(PhoneNumberUtil::NO_MATCH,
2881
- phone_util_.IsNumberMatchWithTwoStrings("+64 3 331-6005 extn 1234",
2882
- "+0116433316005#1235"));
2883
- EXPECT_EQ(PhoneNumberUtil::NO_MATCH,
2884
- phone_util_.IsNumberMatchWithTwoStrings(
2885
- "+64 3 331-6005 extn 1234", "tel:+64-3-331-6005;ext=1235"));
2886
- // NSN matches, but extension is different - not the same number.
2887
- EXPECT_EQ(PhoneNumberUtil::NO_MATCH,
2888
- phone_util_.IsNumberMatchWithTwoStrings("+64 3 331-6005 ext.1235",
2889
- "3 331 6005#1234"));
2890
- // Invalid numbers that can't be parsed.
2891
- EXPECT_EQ(PhoneNumberUtil::INVALID_NUMBER,
2892
- phone_util_.IsNumberMatchWithTwoStrings("4", "3 331 6043"));
2893
- // Invalid numbers that can't be parsed.
2894
- EXPECT_EQ(PhoneNumberUtil::INVALID_NUMBER,
2895
- phone_util_.IsNumberMatchWithTwoStrings("+43", "+64 3 331 6005"));
2896
- EXPECT_EQ(PhoneNumberUtil::INVALID_NUMBER,
2897
- phone_util_.IsNumberMatchWithTwoStrings("+43", "64 3 331 6005"));
2898
- EXPECT_EQ(PhoneNumberUtil::INVALID_NUMBER,
2899
- phone_util_.IsNumberMatchWithTwoStrings("Dog", "64 3 331 6005"));
2900
- }
2901
-
2902
- TEST_F(PhoneNumberUtilTest, IsNumberMatchNsnMatches) {
2903
- // NSN matches.
2904
- EXPECT_EQ(PhoneNumberUtil::NSN_MATCH,
2905
- phone_util_.IsNumberMatchWithTwoStrings("+64 3 331-6005",
2906
- "03 331 6005"));
2907
- EXPECT_EQ(PhoneNumberUtil::NSN_MATCH,
2908
- phone_util_.IsNumberMatchWithTwoStrings(
2909
- "+64 3 331-6005",
2910
- "tel:03-331-6005;isub=1234;phone-context=abc.nz"));
2911
-
2912
- PhoneNumber nz_number;
2913
- nz_number.set_country_code(64);
2914
- nz_number.set_national_number(33316005ULL);
2915
- nz_number.set_extension("");
2916
- EXPECT_EQ(PhoneNumberUtil::NSN_MATCH,
2917
- phone_util_.IsNumberMatchWithOneString(nz_number, "03 331 6005"));
2918
- // Here the second number possibly starts with the country code for New
2919
- // Zealand, although we are unsure.
2920
- EXPECT_EQ(PhoneNumberUtil::NSN_MATCH,
2921
- phone_util_.IsNumberMatchWithOneString(nz_number,
2922
- "(64-3) 331 6005"));
2923
-
2924
- // Here, the 1 might be a national prefix, if we compare it to the US number,
2925
- // so the resultant match is an NSN match.
2926
- PhoneNumber us_number;
2927
- us_number.set_country_code(1);
2928
- us_number.set_national_number(2345678901ULL);
2929
- EXPECT_EQ(PhoneNumberUtil::NSN_MATCH,
2930
- phone_util_.IsNumberMatchWithOneString(us_number,
2931
- "1-234-567-8901"));
2932
- EXPECT_EQ(PhoneNumberUtil::NSN_MATCH,
2933
- phone_util_.IsNumberMatchWithOneString(us_number, "2345678901"));
2934
- EXPECT_EQ(PhoneNumberUtil::NSN_MATCH,
2935
- phone_util_.IsNumberMatchWithTwoStrings("+1 234-567 8901",
2936
- "1 234 567 8901"));
2937
- EXPECT_EQ(PhoneNumberUtil::NSN_MATCH,
2938
- phone_util_.IsNumberMatchWithTwoStrings("1 234-567 8901",
2939
- "1 234 567 8901"));
2940
- EXPECT_EQ(PhoneNumberUtil::NSN_MATCH,
2941
- phone_util_.IsNumberMatchWithTwoStrings("1 234-567 8901",
2942
- "+1 234 567 8901"));
2943
- // For this case, the match will be a short NSN match, because we cannot
2944
- // assume that the 1 might be a national prefix, so don't remove it when
2945
- // parsing.
2946
- PhoneNumber random_number;
2947
- random_number.set_country_code(41);
2948
- random_number.set_national_number(2345678901ULL);
2949
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2950
- phone_util_.IsNumberMatchWithOneString(random_number,
2951
- "1-234-567-8901"));
2952
- }
2953
-
2954
- TEST_F(PhoneNumberUtilTest, IsNumberMatchShortNsnMatches) {
2955
- // Short NSN matches with the country not specified for either one or both
2956
- // numbers.
2957
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2958
- phone_util_.IsNumberMatchWithTwoStrings("+64 3 331-6005",
2959
- "331 6005"));
2960
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2961
- phone_util_.IsNumberMatchWithTwoStrings(
2962
- "+64 3 331-6005", "tel:331-6005;phone-context=abc.nz"));
2963
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2964
- phone_util_.IsNumberMatchWithTwoStrings(
2965
- "+64 3 331-6005",
2966
- "tel:331-6005;isub=1234;phone-context=abc.nz"));
2967
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2968
- phone_util_.IsNumberMatchWithTwoStrings(
2969
- "+64 3 331-6005",
2970
- "tel:331-6005;isub=1234;phone-context=abc.nz;a=%A1"));
2971
-
2972
- // We did not know that the "0" was a national prefix since neither number has
2973
- // a country code, so this is considered a SHORT_NSN_MATCH.
2974
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2975
- phone_util_.IsNumberMatchWithTwoStrings("3 331-6005",
2976
- "03 331 6005"));
2977
-
2978
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2979
- phone_util_.IsNumberMatchWithTwoStrings("3 331-6005",
2980
- "331 6005"));
2981
-
2982
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2983
- phone_util_.IsNumberMatchWithTwoStrings(
2984
- "3 331-6005", "tel:331-6005;phone-context=abc.nz"));
2985
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2986
- phone_util_.IsNumberMatchWithTwoStrings("3 331-6005",
2987
- "+64 331 6005"));
2988
-
2989
- // Short NSN match with the country specified.
2990
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2991
- phone_util_.IsNumberMatchWithTwoStrings("03 331-6005",
2992
- "331 6005"));
2993
-
2994
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2995
- phone_util_.IsNumberMatchWithTwoStrings("1 234 345 6789",
2996
- "345 6789"));
2997
-
2998
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
2999
- phone_util_.IsNumberMatchWithTwoStrings("+1 (234) 345 6789",
3000
- "345 6789"));
3001
-
3002
- // NSN matches, country code omitted for one number, extension missing for
3003
- // one.
3004
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
3005
- phone_util_.IsNumberMatchWithTwoStrings("+64 3 331-6005",
3006
- "3 331 6005#1234"));
3007
-
3008
- // One has Italian leading zero, one does not.
3009
- PhoneNumber it_number_1, it_number_2;
3010
- it_number_1.set_country_code(39);
3011
- it_number_1.set_national_number(1234ULL);
3012
- it_number_1.set_italian_leading_zero(true);
3013
- it_number_2.set_country_code(39);
3014
- it_number_2.set_national_number(1234ULL);
3015
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
3016
- phone_util_.IsNumberMatch(it_number_1, it_number_2));
3017
-
3018
- // One has an extension, the other has an extension of "".
3019
- it_number_1.set_extension("1234");
3020
- it_number_1.clear_italian_leading_zero();
3021
- it_number_2.set_extension("");
3022
- EXPECT_EQ(PhoneNumberUtil::SHORT_NSN_MATCH,
3023
- phone_util_.IsNumberMatch(it_number_1, it_number_2));
3024
- }
3025
-
3026
- TEST_F(PhoneNumberUtilTest, ParseNationalNumber) {
3027
- PhoneNumber nz_number;
3028
- nz_number.set_country_code(64);
3029
- nz_number.set_national_number(33316005ULL);
3030
- PhoneNumber test_number;
3031
- // National prefix attached.
3032
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3033
- phone_util_.Parse("033316005", RegionCode::NZ(), &test_number));
3034
- EXPECT_EQ(nz_number, test_number);
3035
- // National prefix missing.
3036
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3037
- phone_util_.Parse("33316005", RegionCode::NZ(), &test_number));
3038
- EXPECT_EQ(nz_number, test_number);
3039
- // National prefix attached and some formatting present.
3040
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3041
- phone_util_.Parse("03-331 6005", RegionCode::NZ(), &test_number));
3042
- EXPECT_EQ(nz_number, test_number);
3043
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3044
- phone_util_.Parse("03 331 6005", RegionCode::NZ(), &test_number));
3045
- EXPECT_EQ(nz_number, test_number);
3046
- // Test parsing RFC3966 format with a phone context.
3047
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3048
- phone_util_.Parse("tel:03-331-6005;phone-context=+64",
3049
- RegionCode::NZ(), &test_number));
3050
- EXPECT_EQ(nz_number, test_number);
3051
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3052
- phone_util_.Parse("tel:331-6005;phone-context=+64-3",
3053
- RegionCode::NZ(), &test_number));
3054
- EXPECT_EQ(nz_number, test_number);
3055
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3056
- phone_util_.Parse("tel:331-6005;phone-context=+64-3",
3057
- RegionCode::US(), &test_number));
3058
- EXPECT_EQ(nz_number, test_number);
3059
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3060
- phone_util_.Parse("My number is tel:03-331-6005;phone-context=+64",
3061
- RegionCode::NZ(), &test_number));
3062
- EXPECT_EQ(nz_number, test_number);
3063
- // Test parsing RFC3966 format with optional user-defined parameters. The
3064
- // parameters will appear after the context if present.
3065
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3066
- phone_util_.Parse("tel:03-331-6005;phone-context=+64;a=%A1",
3067
- RegionCode::NZ(), &test_number));
3068
- EXPECT_EQ(nz_number, test_number);
3069
- // Test parsing RFC3966 with an ISDN subaddress.
3070
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3071
- phone_util_.Parse("tel:03-331-6005;isub=12345;phone-context=+64",
3072
- RegionCode::NZ(), &test_number));
3073
- EXPECT_EQ(nz_number, test_number);
3074
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3075
- phone_util_.Parse("tel:+64-3-331-6005;isub=12345",
3076
- RegionCode::US(), &test_number));
3077
- EXPECT_EQ(nz_number, test_number);
3078
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3079
- phone_util_.Parse("03-331-6005;phone-context=+64",
3080
- RegionCode::NZ(), &test_number));
3081
- EXPECT_EQ(nz_number, test_number);
3082
- // Testing international prefixes.
3083
- // Should strip country code.
3084
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3085
- phone_util_.Parse("0064 3 331 6005",
3086
- RegionCode::NZ(), &test_number));
3087
- EXPECT_EQ(nz_number, test_number);
3088
- // Try again, but this time we have an international number with Region Code
3089
- // US. It should recognise the country code and parse accordingly.
3090
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3091
- phone_util_.Parse("01164 3 331 6005",
3092
- RegionCode::US(), &test_number));
3093
- EXPECT_EQ(nz_number, test_number);
3094
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3095
- phone_util_.Parse("+64 3 331 6005",
3096
- RegionCode::US(), &test_number));
3097
- EXPECT_EQ(nz_number, test_number);
3098
- // We should ignore the leading plus here, since it is not followed by a valid
3099
- // country code but instead is followed by the IDD for the US.
3100
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3101
- phone_util_.Parse("+01164 3 331 6005",
3102
- RegionCode::US(), &test_number));
3103
- EXPECT_EQ(nz_number, test_number);
3104
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3105
- phone_util_.Parse("+0064 3 331 6005",
3106
- RegionCode::NZ(), &test_number));
3107
- EXPECT_EQ(nz_number, test_number);
3108
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3109
- phone_util_.Parse("+ 00 64 3 331 6005",
3110
- RegionCode::NZ(), &test_number));
3111
- EXPECT_EQ(nz_number, test_number);
3112
-
3113
- PhoneNumber us_local_number;
3114
- us_local_number.set_country_code(1);
3115
- us_local_number.set_national_number(2530000ULL);
3116
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3117
- phone_util_.Parse("tel:253-0000;phone-context=www.google.com",
3118
- RegionCode::US(), &test_number));
3119
- EXPECT_EQ(us_local_number, test_number);
3120
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3121
- phone_util_.Parse(
3122
- "tel:253-0000;isub=12345;phone-context=www.google.com",
3123
- RegionCode::US(), &test_number));
3124
- EXPECT_EQ(us_local_number, test_number);
3125
- // This is invalid because no "+" sign is present as part of phone-context.
3126
- // The phone context is simply ignored in this case just as if it contains a
3127
- // domain.
3128
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3129
- phone_util_.Parse("tel:2530000;isub=12345;phone-context=1-650",
3130
- RegionCode::US(), &test_number));
3131
- EXPECT_EQ(us_local_number, test_number);
3132
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3133
- phone_util_.Parse("tel:2530000;isub=12345;phone-context=1234.com",
3134
- RegionCode::US(), &test_number));
3135
- EXPECT_EQ(us_local_number, test_number);
3136
-
3137
- // Test for http://b/issue?id=2247493
3138
- nz_number.Clear();
3139
- nz_number.set_country_code(64);
3140
- nz_number.set_national_number(64123456ULL);
3141
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3142
- phone_util_.Parse("+64(0)64123456",
3143
- RegionCode::US(), &test_number));
3144
- EXPECT_EQ(nz_number, test_number);
3145
-
3146
- // Check that using a "/" is fine in a phone number.
3147
- PhoneNumber de_number;
3148
- de_number.set_country_code(49);
3149
- de_number.set_national_number(12345678ULL);
3150
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3151
- phone_util_.Parse("123/45678", RegionCode::DE(), &test_number));
3152
- EXPECT_EQ(de_number, test_number);
3153
-
3154
- PhoneNumber us_number;
3155
- us_number.set_country_code(1);
3156
- // Check it doesn't use the '1' as a country code when parsing if the phone
3157
- // number was already possible.
3158
- us_number.set_national_number(1234567890ULL);
3159
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3160
- phone_util_.Parse("123-456-7890", RegionCode::US(), &test_number));
3161
- EXPECT_EQ(us_number, test_number);
3162
-
3163
- // Test star numbers. Although this is not strictly valid, we would like to
3164
- // make sure we can parse the output we produce when formatting the number.
3165
- PhoneNumber star_number;
3166
- star_number.set_country_code(81);
3167
- star_number.set_national_number(2345ULL);
3168
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3169
- phone_util_.Parse("+81 *2345", RegionCode::JP(), &test_number));
3170
- EXPECT_EQ(star_number, test_number);
3171
-
3172
- PhoneNumber short_number;
3173
- short_number.set_country_code(64);
3174
- short_number.set_national_number(12ULL);
3175
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3176
- phone_util_.Parse("12", RegionCode::NZ(), &test_number));
3177
- EXPECT_EQ(short_number, test_number);
3178
- }
3179
-
3180
- TEST_F(PhoneNumberUtilTest, ParseNumberWithAlphaCharacters) {
3181
- // Test case with alpha characters.
3182
- PhoneNumber test_number;
3183
- PhoneNumber tollfree_number;
3184
- tollfree_number.set_country_code(64);
3185
- tollfree_number.set_national_number(800332005ULL);
3186
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3187
- phone_util_.Parse("0800 DDA 005", RegionCode::NZ(), &test_number));
3188
- EXPECT_EQ(tollfree_number, test_number);
3189
-
3190
- PhoneNumber premium_number;
3191
- premium_number.set_country_code(64);
3192
- premium_number.set_national_number(9003326005ULL);
3193
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3194
- phone_util_.Parse("0900 DDA 6005", RegionCode::NZ(), &test_number));
3195
- EXPECT_EQ(premium_number, test_number);
3196
-
3197
- // Not enough alpha characters for them to be considered intentional, so they
3198
- // are stripped.
3199
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3200
- phone_util_.Parse("0900 332 6005a",
3201
- RegionCode::NZ(), &test_number));
3202
- EXPECT_EQ(premium_number, test_number);
3203
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3204
- phone_util_.Parse("0900 332 600a5",
3205
- RegionCode::NZ(), &test_number));
3206
- EXPECT_EQ(premium_number, test_number);
3207
-
3208
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3209
- phone_util_.Parse("0900 332 600A5",
3210
- RegionCode::NZ(), &test_number));
3211
- EXPECT_EQ(premium_number, test_number);
3212
-
3213
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3214
- phone_util_.Parse("0900 a332 600A5",
3215
- RegionCode::NZ(), &test_number));
3216
- EXPECT_EQ(premium_number, test_number);
3217
- }
3218
-
3219
- TEST_F(PhoneNumberUtilTest, ParseWithInternationalPrefixes) {
3220
- PhoneNumber us_number;
3221
- us_number.set_country_code(1);
3222
- us_number.set_national_number(6503336000ULL);
3223
- PhoneNumber test_number;
3224
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3225
- phone_util_.Parse("+1 (650) 333-6000",
3226
- RegionCode::US(), &test_number));
3227
- EXPECT_EQ(us_number, test_number);
3228
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3229
- phone_util_.Parse("+1-650-333-6000",
3230
- RegionCode::US(), &test_number));
3231
- EXPECT_EQ(us_number, test_number);
3232
-
3233
- // Calling the US number from Singapore by using different service providers
3234
- // 1st test: calling using SingTel IDD service (IDD is 001)
3235
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3236
- phone_util_.Parse("0011-650-333-6000",
3237
- RegionCode::SG(), &test_number));
3238
- EXPECT_EQ(us_number, test_number);
3239
- // 2nd test: calling using StarHub IDD service (IDD is 008)
3240
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3241
- phone_util_.Parse("0081-650-333-6000",
3242
- RegionCode::SG(), &test_number));
3243
- EXPECT_EQ(us_number, test_number);
3244
- // 3rd test: calling using SingTel V019 service (IDD is 019)
3245
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3246
- phone_util_.Parse("0191-650-333-6000",
3247
- RegionCode::SG(), &test_number));
3248
- EXPECT_EQ(us_number, test_number);
3249
- // Calling the US number from Poland
3250
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3251
- phone_util_.Parse("0~01-650-333-6000",
3252
- RegionCode::PL(), &test_number));
3253
- EXPECT_EQ(us_number, test_number);
3254
-
3255
- // Using "++" at the start.
3256
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3257
- phone_util_.Parse("++1 (650) 333-6000",
3258
- RegionCode::PL(), &test_number));
3259
- EXPECT_EQ(us_number, test_number);
3260
- // Using a full-width plus sign.
3261
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3262
- phone_util_.Parse("\xEF\xBC\x8B" "1 (650) 333-6000",
3263
- /* "+1 (650) 333-6000" */
3264
- RegionCode::SG(), &test_number));
3265
- EXPECT_EQ(us_number, test_number);
3266
- // Using a soft hyphen U+00AD.
3267
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3268
- phone_util_.Parse("1 (650) 333" "\xC2\xAD" "-6000",
3269
- /* "1 (650) 333­-6000­" */
3270
- RegionCode::US(), &test_number));
3271
- EXPECT_EQ(us_number, test_number);
3272
- // The whole number, including punctuation, is here represented in full-width
3273
- // form.
3274
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3275
- phone_util_.Parse("\xEF\xBC\x8B\xEF\xBC\x91\xE3\x80\x80\xEF\xBC\x88"
3276
- "\xEF\xBC\x96\xEF\xBC\x95\xEF\xBC\x90\xEF\xBC\x89"
3277
- "\xE3\x80\x80\xEF\xBC\x93\xEF\xBC\x93\xEF\xBC\x93"
3278
- "\xEF\xBC\x8D\xEF\xBC\x96\xEF\xBC\x90\xEF\xBC\x90"
3279
- "\xEF\xBC\x90",
3280
- /* "+1 (650) 333-6000" */
3281
- RegionCode::SG(), &test_number));
3282
- EXPECT_EQ(us_number, test_number);
3283
-
3284
- // Using the U+30FC dash.
3285
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3286
- phone_util_.Parse("\xEF\xBC\x8B\xEF\xBC\x91\xE3\x80\x80\xEF\xBC\x88"
3287
- "\xEF\xBC\x96\xEF\xBC\x95\xEF\xBC\x90\xEF\xBC\x89"
3288
- "\xE3\x80\x80\xEF\xBC\x93\xEF\xBC\x93\xEF\xBC\x93"
3289
- "\xE3\x83\xBC\xEF\xBC\x96\xEF\xBC\x90\xEF\xBC\x90"
3290
- "\xEF\xBC\x90",
3291
- /* "+1 (650) 333ー6000" */
3292
- RegionCode::SG(), &test_number));
3293
- EXPECT_EQ(us_number, test_number);
3294
-
3295
- PhoneNumber toll_free_number;
3296
- toll_free_number.set_country_code(800);
3297
- toll_free_number.set_national_number(12345678ULL);
3298
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3299
- phone_util_.Parse("011 800 1234 5678",
3300
- RegionCode::US(), &test_number));
3301
- EXPECT_EQ(toll_free_number, test_number);
3302
- }
3303
-
3304
- TEST_F(PhoneNumberUtilTest, ParseWithLeadingZero) {
3305
- PhoneNumber it_number;
3306
- it_number.set_country_code(39);
3307
- it_number.set_national_number(236618300ULL);
3308
- it_number.set_italian_leading_zero(true);
3309
- PhoneNumber test_number;
3310
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3311
- phone_util_.Parse("+39 02-36618 300",
3312
- RegionCode::NZ(), &test_number));
3313
- EXPECT_EQ(it_number, test_number);
3314
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3315
- phone_util_.Parse("02-36618 300", RegionCode::IT(), &test_number));
3316
- EXPECT_EQ(it_number, test_number);
3317
-
3318
- it_number.Clear();
3319
- it_number.set_country_code(39);
3320
- it_number.set_national_number(312345678ULL);
3321
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3322
- phone_util_.Parse("312 345 678", RegionCode::IT(), &test_number));
3323
- EXPECT_EQ(it_number, test_number);
3324
- }
3325
-
3326
- TEST_F(PhoneNumberUtilTest, ParseNationalNumberArgentina) {
3327
- // Test parsing mobile numbers of Argentina.
3328
- PhoneNumber ar_number;
3329
- ar_number.set_country_code(54);
3330
- ar_number.set_national_number(93435551212ULL);
3331
- PhoneNumber test_number;
3332
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3333
- phone_util_.Parse("+54 9 343 555 1212", RegionCode::AR(),
3334
- &test_number));
3335
- EXPECT_EQ(ar_number, test_number);
3336
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3337
- phone_util_.Parse("0343 15 555 1212", RegionCode::AR(),
3338
- &test_number));
3339
- EXPECT_EQ(ar_number, test_number);
3340
-
3341
- ar_number.set_national_number(93715654320ULL);
3342
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3343
- phone_util_.Parse("+54 9 3715 65 4320", RegionCode::AR(),
3344
- &test_number));
3345
- EXPECT_EQ(ar_number, test_number);
3346
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3347
- phone_util_.Parse("03715 15 65 4320", RegionCode::AR(),
3348
- &test_number));
3349
- EXPECT_EQ(ar_number, test_number);
3350
-
3351
- // Test parsing fixed-line numbers of Argentina.
3352
- ar_number.set_national_number(1137970000ULL);
3353
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3354
- phone_util_.Parse("+54 11 3797 0000", RegionCode::AR(),
3355
- &test_number));
3356
- EXPECT_EQ(ar_number, test_number);
3357
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3358
- phone_util_.Parse("011 3797 0000", RegionCode::AR(), &test_number));
3359
- EXPECT_EQ(ar_number, test_number);
3360
-
3361
- ar_number.set_national_number(3715654321ULL);
3362
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3363
- phone_util_.Parse("+54 3715 65 4321", RegionCode::AR(),
3364
- &test_number));
3365
- EXPECT_EQ(ar_number, test_number);
3366
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3367
- phone_util_.Parse("03715 65 4321", RegionCode::AR(), &test_number));
3368
- EXPECT_EQ(ar_number, test_number);
3369
-
3370
- ar_number.set_national_number(2312340000ULL);
3371
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3372
- phone_util_.Parse("+54 23 1234 0000", RegionCode::AR(),
3373
- &test_number));
3374
- EXPECT_EQ(ar_number, test_number);
3375
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3376
- phone_util_.Parse("023 1234 0000", RegionCode::AR(), &test_number));
3377
- EXPECT_EQ(ar_number, test_number);
3378
- }
3379
-
3380
- TEST_F(PhoneNumberUtilTest, ParseWithXInNumber) {
3381
- // Test that having an 'x' in the phone number at the start is ok and that it
3382
- // just gets removed.
3383
- PhoneNumber ar_number;
3384
- ar_number.set_country_code(54);
3385
- ar_number.set_national_number(123456789ULL);
3386
- PhoneNumber test_number;
3387
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3388
- phone_util_.Parse("0123456789", RegionCode::AR(), &test_number));
3389
- EXPECT_EQ(ar_number, test_number);
3390
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3391
- phone_util_.Parse("(0) 123456789", RegionCode::AR(), &test_number));
3392
- EXPECT_EQ(ar_number, test_number);
3393
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3394
- phone_util_.Parse("0 123456789", RegionCode::AR(), &test_number));
3395
- EXPECT_EQ(ar_number, test_number);
3396
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3397
- phone_util_.Parse("(0xx) 123456789", RegionCode::AR(),
3398
- &test_number));
3399
- EXPECT_EQ(ar_number, test_number);
3400
-
3401
- PhoneNumber ar_from_us;
3402
- ar_from_us.set_country_code(54);
3403
- ar_from_us.set_national_number(81429712ULL);
3404
- // This test is intentionally constructed such that the number of digit after
3405
- // xx is larger than 7, so that the number won't be mistakenly treated as an
3406
- // extension, as we allow extensions up to 7 digits. This assumption is okay
3407
- // for now as all the countries where a carrier selection code is written in
3408
- // the form of xx have a national significant number of length larger than 7.
3409
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3410
- phone_util_.Parse("011xx5481429712", RegionCode::US(),
3411
- &test_number));
3412
- EXPECT_EQ(ar_from_us, test_number);
3413
- }
3414
-
3415
- TEST_F(PhoneNumberUtilTest, ParseNumbersMexico) {
3416
- // Test parsing fixed-line numbers of Mexico.
3417
- PhoneNumber mx_number;
3418
-
3419
- mx_number.set_country_code(52);
3420
- mx_number.set_national_number(4499780001ULL);
3421
- PhoneNumber test_number;
3422
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3423
- phone_util_.Parse("+52 (449)978-0001", RegionCode::MX(),
3424
- &test_number));
3425
- EXPECT_EQ(mx_number, test_number);
3426
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3427
- phone_util_.Parse("01 (449)978-0001", RegionCode::MX(),
3428
- &test_number));
3429
- EXPECT_EQ(mx_number, test_number);
3430
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3431
- phone_util_.Parse("(449)978-0001", RegionCode::MX(),
3432
- &test_number));
3433
- EXPECT_EQ(mx_number, test_number);
3434
-
3435
- // Test parsing mobile numbers of Mexico.
3436
- mx_number.Clear();
3437
- mx_number.set_country_code(52);
3438
- mx_number.set_national_number(13312345678ULL);
3439
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3440
- phone_util_.Parse("+52 1 33 1234-5678", RegionCode::MX(),
3441
- &test_number));
3442
- EXPECT_EQ(mx_number, test_number);
3443
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3444
- phone_util_.Parse("044 (33) 1234-5678", RegionCode::MX(),
3445
- &test_number));
3446
- EXPECT_EQ(mx_number, test_number);
3447
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3448
- phone_util_.Parse("045 33 1234-5678", RegionCode::MX(),
3449
- &test_number));
3450
- EXPECT_EQ(mx_number, test_number);
3451
- }
3452
-
3453
- TEST_F(PhoneNumberUtilTest, FailedParseOnInvalidNumbers) {
3454
- PhoneNumber test_number;
3455
- EXPECT_EQ(PhoneNumberUtil::NOT_A_NUMBER,
3456
- phone_util_.Parse("This is not a phone number", RegionCode::NZ(),
3457
- &test_number));
3458
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3459
-
3460
- EXPECT_EQ(PhoneNumberUtil::NOT_A_NUMBER,
3461
- phone_util_.Parse("1 Still not a number", RegionCode::NZ(),
3462
- &test_number));
3463
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3464
-
3465
- EXPECT_EQ(PhoneNumberUtil::NOT_A_NUMBER,
3466
- phone_util_.Parse("1 MICROSOFT", RegionCode::NZ(),
3467
- &test_number));
3468
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3469
-
3470
- EXPECT_EQ(PhoneNumberUtil::NOT_A_NUMBER,
3471
- phone_util_.Parse("12 MICROSOFT", RegionCode::NZ(),
3472
- &test_number));
3473
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3474
-
3475
- EXPECT_EQ(PhoneNumberUtil::TOO_LONG_NSN,
3476
- phone_util_.Parse("01495 72553301873 810104", RegionCode::GB(),
3477
- &test_number));
3478
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3479
-
3480
- EXPECT_EQ(PhoneNumberUtil::NOT_A_NUMBER,
3481
- phone_util_.Parse("+---", RegionCode::DE(),
3482
- &test_number));
3483
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3484
-
3485
- EXPECT_EQ(PhoneNumberUtil::NOT_A_NUMBER,
3486
- phone_util_.Parse("+***", RegionCode::DE(),
3487
- &test_number));
3488
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3489
-
3490
- EXPECT_EQ(PhoneNumberUtil::NOT_A_NUMBER,
3491
- phone_util_.Parse("+*******91", RegionCode::DE(),
3492
- &test_number));
3493
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3494
-
3495
- EXPECT_EQ(PhoneNumberUtil::TOO_SHORT_NSN,
3496
- phone_util_.Parse("+49 0", RegionCode::DE(),
3497
- &test_number));
3498
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3499
-
3500
- EXPECT_EQ(PhoneNumberUtil::INVALID_COUNTRY_CODE_ERROR,
3501
- phone_util_.Parse("+210 3456 56789", RegionCode::NZ(),
3502
- &test_number));
3503
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3504
-
3505
- // 00 is a correct IDD, but 210 is not a valid country code.
3506
- EXPECT_EQ(PhoneNumberUtil::INVALID_COUNTRY_CODE_ERROR,
3507
- phone_util_.Parse("+ 00 210 3 331 6005", RegionCode::NZ(),
3508
- &test_number));
3509
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3510
-
3511
- EXPECT_EQ(PhoneNumberUtil::INVALID_COUNTRY_CODE_ERROR,
3512
- phone_util_.Parse("123 456 7890", RegionCode::GetUnknown(),
3513
- &test_number));
3514
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3515
-
3516
- EXPECT_EQ(PhoneNumberUtil::INVALID_COUNTRY_CODE_ERROR,
3517
- phone_util_.Parse("123 456 7890", RegionCode::CS(),
3518
- &test_number));
3519
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3520
-
3521
- EXPECT_EQ(PhoneNumberUtil::TOO_SHORT_AFTER_IDD,
3522
- phone_util_.Parse("0044-----", RegionCode::GB(),
3523
- &test_number));
3524
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3525
- EXPECT_EQ(PhoneNumberUtil::TOO_SHORT_AFTER_IDD,
3526
- phone_util_.Parse("0044", RegionCode::GB(),
3527
- &test_number));
3528
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3529
-
3530
- EXPECT_EQ(PhoneNumberUtil::TOO_SHORT_AFTER_IDD,
3531
- phone_util_.Parse("011", RegionCode::US(),
3532
- &test_number));
3533
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3534
- EXPECT_EQ(PhoneNumberUtil::TOO_SHORT_AFTER_IDD,
3535
- phone_util_.Parse("0119", RegionCode::US(),
3536
- &test_number));
3537
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3538
-
3539
- // RFC3966 phone-context is a website.
3540
- EXPECT_EQ(PhoneNumberUtil::INVALID_COUNTRY_CODE_ERROR,
3541
- phone_util_.Parse("tel:555-1234;phone-context=www.google.com",
3542
- RegionCode::ZZ(), &test_number));
3543
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3544
- // This is invalid because no "+" sign is present as part of phone-context.
3545
- // This should not succeed in being parsed.
3546
- EXPECT_EQ(PhoneNumberUtil::INVALID_COUNTRY_CODE_ERROR,
3547
- phone_util_.Parse("tel:555-1234;phone-context=1-331",
3548
- RegionCode::ZZ(), &test_number));
3549
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3550
- }
3551
-
3552
- TEST_F(PhoneNumberUtilTest, ParseNumbersWithPlusWithNoRegion) {
3553
- PhoneNumber nz_number;
3554
- nz_number.set_country_code(64);
3555
- nz_number.set_national_number(33316005ULL);
3556
- // RegionCode::GetUnknown() is allowed only if the number starts with a '+' -
3557
- // then the country code can be calculated.
3558
- PhoneNumber result_proto;
3559
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3560
- phone_util_.Parse("+64 3 331 6005", RegionCode::GetUnknown(),
3561
- &result_proto));
3562
- EXPECT_EQ(nz_number, result_proto);
3563
-
3564
- // Test with full-width plus.
3565
- result_proto.Clear();
3566
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3567
- phone_util_.Parse("\xEF\xBC\x8B" "64 3 331 6005",
3568
- /* "+64 3 331 6005" */
3569
- RegionCode::GetUnknown(), &result_proto));
3570
- EXPECT_EQ(nz_number, result_proto);
3571
- // Test with normal plus but leading characters that need to be stripped.
3572
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3573
- phone_util_.Parse(" +64 3 331 6005", RegionCode::GetUnknown(),
3574
- &result_proto));
3575
- EXPECT_EQ(nz_number, result_proto);
3576
-
3577
- PhoneNumber toll_free_number;
3578
- toll_free_number.set_country_code(800);
3579
- toll_free_number.set_national_number(12345678ULL);
3580
- result_proto.Clear();
3581
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3582
- phone_util_.Parse("+800 1234 5678",
3583
- RegionCode::GetUnknown(), &result_proto));
3584
- EXPECT_EQ(toll_free_number, result_proto);
3585
-
3586
- PhoneNumber universal_premium_rate;
3587
- universal_premium_rate.set_country_code(979);
3588
- universal_premium_rate.set_national_number(123456789ULL);
3589
- result_proto.Clear();
3590
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3591
- phone_util_.Parse("+979 123 456 789",
3592
- RegionCode::GetUnknown(), &result_proto));
3593
- EXPECT_EQ(universal_premium_rate, result_proto);
3594
-
3595
- result_proto.Clear();
3596
- // Test parsing RFC3966 format with a phone context.
3597
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3598
- phone_util_.Parse("tel:03-331-6005;phone-context=+64",
3599
- RegionCode::GetUnknown(), &result_proto));
3600
- EXPECT_EQ(nz_number, result_proto);
3601
- result_proto.Clear();
3602
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3603
- phone_util_.Parse(" tel:03-331-6005;phone-context=+64",
3604
- RegionCode::GetUnknown(), &result_proto));
3605
- EXPECT_EQ(nz_number, result_proto);
3606
- result_proto.Clear();
3607
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3608
- phone_util_.Parse("tel:03-331-6005;isub=12345;phone-context=+64",
3609
- RegionCode::GetUnknown(), &result_proto));
3610
- EXPECT_EQ(nz_number, result_proto);
3611
-
3612
- nz_number.set_raw_input("+64 3 331 6005");
3613
- nz_number.set_country_code_source(PhoneNumber::FROM_NUMBER_WITH_PLUS_SIGN);
3614
- // It is important that we set this to an empty string, since we used
3615
- // ParseAndKeepRawInput and no carrrier code was found.
3616
- nz_number.set_preferred_domestic_carrier_code("");
3617
- result_proto.Clear();
3618
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3619
- phone_util_.ParseAndKeepRawInput("+64 3 331 6005",
3620
- RegionCode::GetUnknown(),
3621
- &result_proto));
3622
- EXPECT_EQ(nz_number, result_proto);
3623
- }
3624
-
3625
- TEST_F(PhoneNumberUtilTest, ParseNumberTooShortIfNationalPrefixStripped) {
3626
- PhoneNumber test_number;
3627
-
3628
- // Test that a number whose first digits happen to coincide with the national
3629
- // prefix does not get them stripped if doing so would result in a number too
3630
- // short to be a possible (regular length) phone number for that region.
3631
- PhoneNumber by_number;
3632
- by_number.set_country_code(375);
3633
- by_number.set_national_number(8123L);
3634
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3635
- phone_util_.Parse("8123", RegionCode::BY(),
3636
- &test_number));
3637
- EXPECT_EQ(by_number, test_number);
3638
- by_number.set_national_number(81234L);
3639
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3640
- phone_util_.Parse("81234", RegionCode::BY(),
3641
- &test_number));
3642
- EXPECT_EQ(by_number, test_number);
3643
-
3644
- // The prefix doesn't get stripped, since the input is a viable 6-digit
3645
- // number, whereas the result of stripping is only 5 digits.
3646
- by_number.set_national_number(812345L);
3647
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3648
- phone_util_.Parse("812345", RegionCode::BY(),
3649
- &test_number));
3650
- EXPECT_EQ(by_number, test_number);
3651
-
3652
- // The prefix gets stripped, since only 6-digit numbers are possible.
3653
- by_number.set_national_number(123456L);
3654
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3655
- phone_util_.Parse("8123456", RegionCode::BY(),
3656
- &test_number));
3657
- EXPECT_EQ(by_number, test_number);
3658
- }
3659
-
3660
- TEST_F(PhoneNumberUtilTest, ParseExtensions) {
3661
- PhoneNumber nz_number;
3662
- nz_number.set_country_code(64);
3663
- nz_number.set_national_number(33316005ULL);
3664
- nz_number.set_extension("3456");
3665
- PhoneNumber test_number;
3666
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3667
- phone_util_.Parse("03 331 6005 ext 3456", RegionCode::NZ(),
3668
- &test_number));
3669
- EXPECT_EQ(nz_number, test_number);
3670
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3671
- phone_util_.Parse("03 331 6005x3456", RegionCode::NZ(),
3672
- &test_number));
3673
- EXPECT_EQ(nz_number, test_number);
3674
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3675
- phone_util_.Parse("03-331 6005 int.3456", RegionCode::NZ(),
3676
- &test_number));
3677
- EXPECT_EQ(nz_number, test_number);
3678
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3679
- phone_util_.Parse("03 331 6005 #3456", RegionCode::NZ(),
3680
- &test_number));
3681
- EXPECT_EQ(nz_number, test_number);
3682
-
3683
- // Test the following do not extract extensions:
3684
- PhoneNumber non_extn_number;
3685
- non_extn_number.set_country_code(1);
3686
- non_extn_number.set_national_number(80074935247ULL);
3687
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3688
- phone_util_.Parse("1800 six-flags", RegionCode::US(),
3689
- &test_number));
3690
- EXPECT_EQ(non_extn_number, test_number);
3691
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3692
- phone_util_.Parse("1800 SIX-FLAGS", RegionCode::US(),
3693
- &test_number));
3694
- EXPECT_EQ(non_extn_number, test_number);
3695
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3696
- phone_util_.Parse("0~0 1800 7493 5247", RegionCode::PL(),
3697
- &test_number));
3698
- EXPECT_EQ(non_extn_number, test_number);
3699
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3700
- phone_util_.Parse("(1800) 7493.5247", RegionCode::US(),
3701
- &test_number));
3702
- EXPECT_EQ(non_extn_number, test_number);
3703
-
3704
- // Check that the last instance of an extension token is matched.
3705
- PhoneNumber extn_number;
3706
- extn_number.set_country_code(1);
3707
- extn_number.set_national_number(80074935247ULL);
3708
- extn_number.set_extension("1234");
3709
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3710
- phone_util_.Parse("0~0 1800 7493 5247 ~1234", RegionCode::PL(),
3711
- &test_number));
3712
- EXPECT_EQ(extn_number, test_number);
3713
-
3714
- // Verifying bug-fix where the last digit of a number was previously omitted
3715
- // if it was a 0 when extracting the extension. Also verifying a few different
3716
- // cases of extensions.
3717
- PhoneNumber uk_number;
3718
- uk_number.set_country_code(44);
3719
- uk_number.set_national_number(2034567890ULL);
3720
- uk_number.set_extension("456");
3721
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3722
- phone_util_.Parse("+44 2034567890x456", RegionCode::NZ(),
3723
- &test_number));
3724
- EXPECT_EQ(uk_number, test_number);
3725
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3726
- phone_util_.Parse("+44 2034567890x456", RegionCode::GB(),
3727
- &test_number));
3728
- EXPECT_EQ(uk_number, test_number);
3729
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3730
- phone_util_.Parse("+44 2034567890 x456", RegionCode::GB(),
3731
- &test_number));
3732
- EXPECT_EQ(uk_number, test_number);
3733
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3734
- phone_util_.Parse("+44 2034567890 X456", RegionCode::GB(),
3735
- &test_number));
3736
- EXPECT_EQ(uk_number, test_number);
3737
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3738
- phone_util_.Parse("+44 2034567890 X 456", RegionCode::GB(),
3739
- &test_number));
3740
- EXPECT_EQ(uk_number, test_number);
3741
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3742
- phone_util_.Parse("+44 2034567890 X 456", RegionCode::GB(),
3743
- &test_number));
3744
- EXPECT_EQ(uk_number, test_number);
3745
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3746
- phone_util_.Parse("+44 2034567890 x 456 ", RegionCode::GB(),
3747
- &test_number));
3748
- EXPECT_EQ(uk_number, test_number);
3749
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3750
- phone_util_.Parse("+44 2034567890 X 456", RegionCode::GB(),
3751
- &test_number));
3752
- EXPECT_EQ(uk_number, test_number);
3753
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3754
- phone_util_.Parse("+44-2034567890;ext=456", RegionCode::GB(),
3755
- &test_number));
3756
- EXPECT_EQ(uk_number, test_number);
3757
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3758
- phone_util_.Parse("tel:2034567890;ext=456;phone-context=+44",
3759
- RegionCode::ZZ(), &test_number));
3760
- EXPECT_EQ(uk_number, test_number);
3761
-
3762
- // Full-width extension, "extn" only.
3763
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3764
- phone_util_.Parse(
3765
- "+442034567890\xEF\xBD\x85\xEF\xBD\x98\xEF\xBD\x94\xEF\xBD\x8E"
3766
- "456", RegionCode::GB(), &test_number));
3767
- EXPECT_EQ(uk_number, test_number);
3768
- // "xtn" only.
3769
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3770
- phone_util_.Parse(
3771
- "+44-2034567890\xEF\xBD\x98\xEF\xBD\x94\xEF\xBD\x8E""456",
3772
- RegionCode::GB(), &test_number));
3773
- EXPECT_EQ(uk_number, test_number);
3774
- // "xt" only.
3775
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3776
- phone_util_.Parse("+44-2034567890\xEF\xBD\x98\xEF\xBD\x94""456",
3777
- RegionCode::GB(), &test_number));
3778
- EXPECT_EQ(uk_number, test_number);
3779
-
3780
- PhoneNumber us_with_extension;
3781
- us_with_extension.set_country_code(1);
3782
- us_with_extension.set_national_number(8009013355ULL);
3783
- us_with_extension.set_extension("7246433");
3784
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3785
- phone_util_.Parse("(800) 901-3355 x 7246433", RegionCode::US(),
3786
- &test_number));
3787
- EXPECT_EQ(us_with_extension, test_number);
3788
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3789
- phone_util_.Parse("(800) 901-3355 , ext 7246433", RegionCode::US(),
3790
- &test_number));
3791
- EXPECT_EQ(us_with_extension, test_number);
3792
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3793
- phone_util_.Parse("(800) 901-3355 ,extension 7246433",
3794
- RegionCode::US(),
3795
- &test_number));
3796
- EXPECT_EQ(us_with_extension, test_number);
3797
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3798
- phone_util_.Parse("(800) 901-3355 ,extensi\xC3\xB3n 7246433",
3799
- /* "(800) 901-3355 ,extensión 7246433" */
3800
- RegionCode::US(),
3801
- &test_number));
3802
- EXPECT_EQ(us_with_extension, test_number);
3803
- // Repeat with the small letter o with acute accent created by combining
3804
- // characters.
3805
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3806
- phone_util_.Parse("(800) 901-3355 ,extensio\xCC\x81n 7246433",
3807
- /* "(800) 901-3355 ,extensión 7246433" */
3808
- RegionCode::US(),
3809
- &test_number));
3810
- EXPECT_EQ(us_with_extension, test_number);
3811
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3812
- phone_util_.Parse("(800) 901-3355 , 7246433", RegionCode::US(),
3813
- &test_number));
3814
- EXPECT_EQ(us_with_extension, test_number);
3815
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3816
- phone_util_.Parse("(800) 901-3355 ext: 7246433", RegionCode::US(),
3817
- &test_number));
3818
- EXPECT_EQ(us_with_extension, test_number);
3819
-
3820
- // Test that if a number has two extensions specified, we ignore the second.
3821
- PhoneNumber us_with_two_extensions_number;
3822
- us_with_two_extensions_number.set_country_code(1);
3823
- us_with_two_extensions_number.set_national_number(2121231234ULL);
3824
- us_with_two_extensions_number.set_extension("508");
3825
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3826
- phone_util_.Parse("(212)123-1234 x508/x1234", RegionCode::US(),
3827
- &test_number));
3828
- EXPECT_EQ(us_with_two_extensions_number, test_number);
3829
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3830
- phone_util_.Parse("(212)123-1234 x508/ x1234", RegionCode::US(),
3831
- &test_number));
3832
- EXPECT_EQ(us_with_two_extensions_number, test_number);
3833
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3834
- phone_util_.Parse("(212)123-1234 x508\\x1234", RegionCode::US(),
3835
- &test_number));
3836
- EXPECT_EQ(us_with_two_extensions_number, test_number);
3837
-
3838
- // Test parsing numbers in the form (645) 123-1234-910# works, where the last
3839
- // 3 digits before the # are an extension.
3840
- us_with_extension.Clear();
3841
- us_with_extension.set_country_code(1);
3842
- us_with_extension.set_national_number(6451231234ULL);
3843
- us_with_extension.set_extension("910");
3844
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3845
- phone_util_.Parse("+1 (645) 123 1234-910#", RegionCode::US(),
3846
- &test_number));
3847
- EXPECT_EQ(us_with_extension, test_number);
3848
- }
3849
-
3850
- TEST_F(PhoneNumberUtilTest, ParseAndKeepRaw) {
3851
- PhoneNumber alpha_numeric_number;
3852
- alpha_numeric_number.set_country_code(1);
3853
- alpha_numeric_number.set_national_number(80074935247ULL);
3854
- alpha_numeric_number.set_raw_input("800 six-flags");
3855
- alpha_numeric_number.set_country_code_source(
3856
- PhoneNumber::FROM_DEFAULT_COUNTRY);
3857
- alpha_numeric_number.set_preferred_domestic_carrier_code("");
3858
-
3859
- PhoneNumber test_number;
3860
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3861
- phone_util_.ParseAndKeepRawInput("800 six-flags", RegionCode::US(),
3862
- &test_number));
3863
- EXPECT_EQ(alpha_numeric_number, test_number);
3864
-
3865
- alpha_numeric_number.set_national_number(8007493524ULL);
3866
- alpha_numeric_number.set_raw_input("1800 six-flag");
3867
- alpha_numeric_number.set_country_code_source(
3868
- PhoneNumber::FROM_NUMBER_WITHOUT_PLUS_SIGN);
3869
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3870
- phone_util_.ParseAndKeepRawInput("1800 six-flag", RegionCode::US(),
3871
- &test_number));
3872
- EXPECT_EQ(alpha_numeric_number, test_number);
3873
-
3874
- alpha_numeric_number.set_raw_input("+1800 six-flag");
3875
- alpha_numeric_number.set_country_code_source(
3876
- PhoneNumber::FROM_NUMBER_WITH_PLUS_SIGN);
3877
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3878
- phone_util_.ParseAndKeepRawInput("+1800 six-flag", RegionCode::CN(),
3879
- &test_number));
3880
- EXPECT_EQ(alpha_numeric_number, test_number);
3881
-
3882
- alpha_numeric_number.set_raw_input("001800 six-flag");
3883
- alpha_numeric_number.set_country_code_source(
3884
- PhoneNumber::FROM_NUMBER_WITH_IDD);
3885
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3886
- phone_util_.ParseAndKeepRawInput("001800 six-flag",
3887
- RegionCode::NZ(),
3888
- &test_number));
3889
- EXPECT_EQ(alpha_numeric_number, test_number);
3890
-
3891
- // Try with invalid region - expect failure. We clear the test number first
3892
- // because if parsing isn't successful, the number parsed in won't be changed.
3893
- test_number.Clear();
3894
- EXPECT_EQ(PhoneNumberUtil::INVALID_COUNTRY_CODE_ERROR,
3895
- phone_util_.Parse("123 456 7890", RegionCode::CS(), &test_number));
3896
- EXPECT_EQ(PhoneNumber::default_instance(), test_number);
3897
-
3898
- PhoneNumber korean_number;
3899
- korean_number.set_country_code(82);
3900
- korean_number.set_national_number(22123456);
3901
- korean_number.set_raw_input("08122123456");
3902
- korean_number.set_country_code_source(PhoneNumber::FROM_DEFAULT_COUNTRY);
3903
- korean_number.set_preferred_domestic_carrier_code("81");
3904
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3905
- phone_util_.ParseAndKeepRawInput("08122123456",
3906
- RegionCode::KR(),
3907
- &test_number));
3908
- EXPECT_EQ(korean_number, test_number);
3909
- }
3910
-
3911
- TEST_F(PhoneNumberUtilTest, ParseItalianLeadingZeros) {
3912
- PhoneNumber zeros_number;
3913
- zeros_number.set_country_code(61);
3914
- PhoneNumber test_number;
3915
-
3916
- // Test the number "011".
3917
- zeros_number.set_national_number(11L);
3918
- zeros_number.set_italian_leading_zero(true);
3919
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3920
- phone_util_.Parse("011", RegionCode::AU(),
3921
- &test_number));
3922
- EXPECT_EQ(zeros_number, test_number);
3923
-
3924
- // Test the number "001".
3925
- zeros_number.set_national_number(1L);
3926
- zeros_number.set_italian_leading_zero(true);
3927
- zeros_number.set_number_of_leading_zeros(2);
3928
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3929
- phone_util_.Parse("001", RegionCode::AU(),
3930
- &test_number));
3931
- EXPECT_EQ(zeros_number, test_number);
3932
-
3933
- // Test the number "000". This number has 2 leading zeros.
3934
- zeros_number.set_national_number(0L);
3935
- zeros_number.set_italian_leading_zero(true);
3936
- zeros_number.set_number_of_leading_zeros(2);
3937
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3938
- phone_util_.Parse("000", RegionCode::AU(),
3939
- &test_number));
3940
- EXPECT_EQ(zeros_number, test_number);
3941
-
3942
- // Test the number "0000". This number has 3 leading zeros.
3943
- zeros_number.set_national_number(0L);
3944
- zeros_number.set_italian_leading_zero(true);
3945
- zeros_number.set_number_of_leading_zeros(3);
3946
- EXPECT_EQ(PhoneNumberUtil::NO_PARSING_ERROR,
3947
- phone_util_.Parse("0000", RegionCode::AU(),
3948
- &test_number));
3949
- EXPECT_EQ(zeros_number, test_number);
3950
- }
3951
-
3952
- TEST_F(PhoneNumberUtilTest, CanBeInternationallyDialled) {
3953
- PhoneNumber test_number;
3954
- test_number.set_country_code(1);
3955
-
3956
- // We have no-international-dialling rules for the US in our test metadata
3957
- // that say that toll-free numbers cannot be dialled internationally.
3958
- test_number.set_national_number(8002530000ULL);
3959
- EXPECT_FALSE(CanBeInternationallyDialled(test_number));
3960
-
3961
- // Normal US numbers can be internationally dialled.
3962
- test_number.set_national_number(6502530000ULL);
3963
- EXPECT_TRUE(CanBeInternationallyDialled(test_number));
3964
-
3965
- // Invalid number.
3966
- test_number.set_national_number(2530000ULL);
3967
- EXPECT_TRUE(CanBeInternationallyDialled(test_number));
3968
-
3969
- // We have no data for NZ - should return true.
3970
- test_number.set_country_code(64);
3971
- test_number.set_national_number(33316005ULL);
3972
- EXPECT_TRUE(CanBeInternationallyDialled(test_number));
3973
-
3974
- test_number.set_country_code(800);
3975
- test_number.set_national_number(12345678ULL);
3976
- EXPECT_TRUE(CanBeInternationallyDialled(test_number));
3977
- }
3978
-
3979
- TEST_F(PhoneNumberUtilTest, IsAlphaNumber) {
3980
- EXPECT_TRUE(phone_util_.IsAlphaNumber("1800 six-flags"));
3981
- EXPECT_TRUE(phone_util_.IsAlphaNumber("1800 six-flags ext. 1234"));
3982
- EXPECT_TRUE(phone_util_.IsAlphaNumber("+800 six-flags"));
3983
- EXPECT_TRUE(phone_util_.IsAlphaNumber("180 six-flags"));
3984
- EXPECT_FALSE(phone_util_.IsAlphaNumber("1800 123-1234"));
3985
- EXPECT_FALSE(phone_util_.IsAlphaNumber("1 six-flags"));
3986
- EXPECT_FALSE(phone_util_.IsAlphaNumber("18 six-flags"));
3987
- EXPECT_FALSE(phone_util_.IsAlphaNumber("1800 123-1234 extension: 1234"));
3988
- EXPECT_FALSE(phone_util_.IsAlphaNumber("+800 1234-1234"));
3989
- }
3990
-
3991
- } // namespace phonenumbers
3992
- } // namespace i18n