Commits

Anonymous committed 8b1ed2b

Bug fixes for code and metadata improvement. Also added new PAGER type support in the library.

Comments (0)

Files changed (260)

java/release_notes.txt

+September 4th, 2010
+* Code improvement:
+  - Added new phone number type: pager
+* Metadata change:
+  - update to existing country: GG, IM, JE, RS, RU
+* Bug fixes:
+  - ArrayOutOfBoundException in AsYouTypeFormatter.getRememberedPosition()
+  - AsYouTypeFormatter for UK childline number
+
 September 1st, 2010
 * Bug fix on KZ metadata.
 
   - update to existing countries: BF, FR, UK, PK, RE
 
 August 4th, 2010
-
 * Further improve startup performance
   - Preload no country specific metadata at startup.
   - Stop creating the file containing mapping from country calling code to region code
   - Same change also applied to unittests
 
 July 30th, 2010
-
 * Metadata change:
   - new country: TL
   - update to existing country: AZ, CN, FR, GH, JO, LA, PG, PK, QA, SZ, UA, VN

java/resources/com/google/i18n/phonenumbers/BuildMetadataFromXml.java

     metadata.setVoip(processPhoneNumberDescElement(generalDesc, element, "voip"));
     metadata.setPersonalNumber(processPhoneNumberDescElement(generalDesc, element,
                                                              "personalNumber"));
+    metadata.setPager(processPhoneNumberDescElement(generalDesc, element, "pager"));
 
     if (metadata.getMobile().getNationalNumberPattern().equals(
         metadata.getFixedLine().getNationalNumberPattern())) {

java/resources/com/google/i18n/phonenumbers/proto/phonemetadata.proto

   required PhoneNumberDesc shared_cost = 6;
   required PhoneNumberDesc personal_number = 7;
   required PhoneNumberDesc voip = 8;
+  required PhoneNumberDesc pager = 21;
 
   // The ISO 3166-1 alpha-2 representation of a country/region
   required string id = 9;

java/resources/com/google/i18n/phonenumbers/src/PhoneNumberMetaData.xml

     <!ELEMENT phoneNumberMetadata (territories)>
     <!ELEMENT territories (territory+)>
     <!ELEMENT territory (availableFormats?, generalDesc?, fixedLine?, mobile?, tollFree?,
-        premiumRate?, sharedCost?, personalNumber?, voip?)>
+        premiumRate?, sharedCost?, personalNumber?, voip?, pager?)>
     <!ELEMENT generalDesc (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
     <!ELEMENT fixedLine (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     <!ELEMENT mobile (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     <!ELEMENT sharedCost (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     <!ELEMENT personalNumber (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     <!ELEMENT voip (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
+    <!ELEMENT pager (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     <!ELEMENT availableFormats (numberFormat+, intlNumberFormat*)>
     <!ELEMENT nationalNumberPattern (#PCDATA)>
     <!ELEMENT possibleNumberPattern (#PCDATA)>
           <format>$1 $2</format>
         </numberFormat>
         <!-- UK child line -->
-        <numberFormat pattern="(800)(1111)">
+        <numberFormat pattern="(800)(\d{4})">
           <leadingDigits>800</leadingDigits>
           <leadingDigits>8001</leadingDigits>
+          <leadingDigits>80011</leadingDigits>
+          <leadingDigits>800111</leadingDigits>
+          <leadingDigits>8001111</leadingDigits>
           <format>$1 $2</format>
         </numberFormat>
         <numberFormat pattern="(8\d{2})(\d{3})(\d{3,4})">
-          <leadingDigits>8(?:0|4[3-5]|7[01])</leadingDigits>
+          <leadingDigits>8(?:0|4[3-5]|7[0-3])</leadingDigits>
           <format>$1 $2 $3</format>
         </numberFormat>
       </availableFormats>
       </generalDesc>
       <fixedLine>
         <nationalNumberPattern>1481\d{6}</nationalNumberPattern>
-        <exampleNumber>1481123456</exampleNumber>
+        <exampleNumber>1481223456</exampleNumber>
       </fixedLine>
       <mobile>
         <nationalNumberPattern>7(?:781|839|911)\d{6}</nationalNumberPattern>
       <tollFree>
         <nationalNumberPattern>80(?:01111|\d{7,8})|500\d{6}</nationalNumberPattern>
         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
-        <exampleNumber>8012345678</exampleNumber>
+        <exampleNumber>8001234567</exampleNumber>
       </tollFree>
       <premiumRate>
         <nationalNumberPattern>(?:9[018]\d|87[1-3])\d{7}</nationalNumberPattern>
       </generalDesc>
       <fixedLine>
         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
-        <exampleNumber>1624123456</exampleNumber>
+        <exampleNumber>1624223456</exampleNumber>
       </fixedLine>
       <mobile>
         <nationalNumberPattern>7[69]24\d{6}</nationalNumberPattern>
       <tollFree>
         <nationalNumberPattern>80(?:01111|\d{7,8})|500\d{6}</nationalNumberPattern>
         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
-        <exampleNumber>8012345678</exampleNumber>
+        <exampleNumber>8001234567</exampleNumber>
       </tollFree>
       <premiumRate>
         <nationalNumberPattern>(?:9[018]\d|87[1-3])\d{7}</nationalNumberPattern>
       </generalDesc>
       <fixedLine>
         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
-        <exampleNumber>1534123456</exampleNumber>
+        <exampleNumber>1534223456</exampleNumber>
       </fixedLine>
       <mobile>
         <nationalNumberPattern>7(?:7(?:00|97)|829|937)\d{6}</nationalNumberPattern>
       <tollFree>
         <nationalNumberPattern>80(?:01111|\d{7,8})|500\d{6}</nationalNumberPattern>
         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
-        <exampleNumber>8012345678</exampleNumber>
+        <exampleNumber>8001234567</exampleNumber>
       </tollFree>
       <premiumRate>
         <nationalNumberPattern>(?:9[018]\d|87[1-3])\d{7}</nationalNumberPattern>
           <leadingDigits>6</leadingDigits>
           <format>$1 $2</format>
         </numberFormat>
-        <numberFormat pattern="([89]0\d)(\d{3,6})">
+        <numberFormat pattern="([89]\d{2})(\d{3,6})">
           <leadingDigits>[89]</leadingDigits>
           <format>$1 $2</format>
         </numberFormat>
         as http://www.minjust.ru/ru/structure/contact/. Contains formatting
         instructions for Kazakhstan as well. -->
         <numberFormat pattern="([34689]\d{2})(\d{3})(\d{2})(\d{2})">
-          <leadingDigits>[34689]</leadingDigits>
+          <leadingDigits>[3489]</leadingDigits>
           <format>$1 $2-$3-$4</format>
         </numberFormat>
-        <numberFormat pattern="([7]\d{2})(\d{3})(\d{4})">
-          <leadingDigits>7</leadingDigits>
+        <numberFormat pattern="([67]\d{2})(\d{3})(\d{4})">
+          <leadingDigits>[67]</leadingDigits>
           <format>$1 $2 $3</format>
         </numberFormat>
       </availableFormats>

java/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java

       return originalPosition;
     }
     int accruedInputIndex = 0, currentOutputIndex = 0;
-    while (accruedInputIndex < positionToRemember) {
+    int currentOutputLength = currentOutput.length();
+    
+    while (accruedInputIndex < positionToRemember && currentOutputIndex < currentOutputLength) {
       if (accruedInputWithoutFormatting.charAt(accruedInputIndex) ==
           currentOutput.charAt(currentOutputIndex)) {
         accruedInputIndex++;

java/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java

     // MOBILE or FIXED_LINE number. Some more information can be found here:
     // http://en.wikipedia.org/wiki/Personal_Numbers
     PERSONAL_NUMBER,
+    PAGER,
     // A phone number is of type UNKNOWN when it does not fit any of the known patterns for a
     // specific country.
     UNKNOWN
    * be used:
    *
    * PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
-   * PhoneNumber number = phoneUtil.parse("16502530000", RegionCode.US);
+   * PhoneNumber number = phoneUtil.parse("16502530000", "US");
    * String nationalSignificantNumber = PhoneNumberUtil.getNationalSignificantNumber(number);
    * String areaCode;
    * String subscriberNumber;
         return metadata.getVoip();
       case PERSONAL_NUMBER:
         return metadata.getPersonalNumber();
+      case PAGER:
+        return metadata.getPager();
       default:
         return metadata.getGeneralDesc();
     }
     if (isNumberMatchingDesc(nationalNumber, metadata.getPersonalNumber())) {
       return PhoneNumberType.PERSONAL_NUMBER;
     }
+    if (isNumberMatchingDesc(nationalNumber, metadata.getPager())) {
+      return PhoneNumberType.PAGER;
+    }
 
     boolean isFixedLine = isNumberMatchingDesc(nationalNumber, metadata.getFixedLine());
     if (isFixedLine) {

java/src/com/google/i18n/phonenumbers/Phonemetadata.java

       return this;
     }
 
+    // required PhoneNumberDesc pager = 21;
+    private boolean hasPager;
+    private PhoneNumberDesc pager_ = null;
+    public boolean hasPager() { return hasPager; }
+    public PhoneNumberDesc getPager() { return pager_; }
+    public PhoneMetadata setPager(PhoneNumberDesc value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
+      hasPager = true;
+      pager_ = value;
+      return this;
+    }
+
     // required string id = 9;
     private boolean hasId;
     private String id_ = "";
       if (hasVoip) {
         voip_.writeExternal(objectOutput);
       }
+      objectOutput.writeBoolean(hasPager);
+      if (hasPager) {
+        pager_.writeExternal(objectOutput);
+      }
 
       objectOutput.writeUTF(id_);
       objectOutput.writeInt(countryCode_);
         desc.readExternal(objectInput);
         setVoip(desc);
       }
+      hasDesc = objectInput.readBoolean();
+      if (hasDesc) {
+        PhoneNumberDesc desc = new PhoneNumberDesc();
+        desc.readExternal(objectInput);
+        setPager(desc);
+      }
 
       setId(objectInput.readUTF());
       setCountryCode(objectInput.readInt());

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AD

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AF

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AI

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AL

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AN

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AS

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AT

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AU

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AW

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AZ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BB

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BD

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BF

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BH

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BI

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BJ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BL

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BN

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BS

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BT

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BW

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BY

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BZ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CD

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CF

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CH

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CI

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CK

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CL

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CN

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CU

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CV

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CY

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CZ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DJ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DK

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DZ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_EC

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_EE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_EG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ER

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ES

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ET

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FI

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FJ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FK

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GB

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GD

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GF

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GH

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GI

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GL

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GN

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GP

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GQ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GT

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GU

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GW

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GY

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HK

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HN

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HT

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HU

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ID

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IL

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IN

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IQ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IS

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IT

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JP

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KH

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KI

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KN

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KP

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KW

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KY

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KZ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LB

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LC

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LI

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LK

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LS

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LT

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LU

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LV

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LY

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MC

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MD

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ME

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MF

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MH

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MK

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ML

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MN

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MP

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MQ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MS

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MT

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MU

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MV

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MW

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MX

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MY

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MZ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NC

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NF

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NI

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NL

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NP

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NU

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NZ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_OM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PF

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PH

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PK

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PL

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PS

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PT

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PW

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PY

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_QA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RS

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RU

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_RW

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SB

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SC

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SD

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SH

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SI

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SK

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SL

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SN

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ST

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SV

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SY

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SZ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TC

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TD

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TF

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TH

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TJ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TK

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TL

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TN

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TO

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TR

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TT

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TV

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TW

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TZ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_US

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UY

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_UZ

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VC

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VG

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VI

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VN

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VU

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_WF

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_WS

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_YE

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_YT

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ZA

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ZM

Binary file modified.

java/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ZW

Binary file modified.

java/test/com/google/i18n/phonenumbers/ExampleNumbersTest.java

     assertEquals(0, wrongTypeCases.size());
   }
 
+  public void testPager() throws Exception {
+    Set<PhoneNumberType> voipTypes = EnumSet.of(PhoneNumberType.PAGER);
+    checkNumbersValidAndCorrectType(PhoneNumberType.PAGER, voipTypes);
+    assertEquals(0, invalidCases.size());
+    assertEquals(0, wrongTypeCases.size());
+  }
+
   public void testSharedCost() throws Exception {
     Set<PhoneNumberType> sharedCostTypes = EnumSet.of(PhoneNumberType.SHARED_COST);
     checkNumbersValidAndCorrectType(PhoneNumberType.SHARED_COST, sharedCostTypes);

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AD

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AO

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AR

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_AU

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_BS

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_DE

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_GB

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_IT

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_JP

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_KR

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_MX

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_NZ

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_PL

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_RE

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_SG

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_US

Binary file modified.

java/test/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProtoForTesting_YT

Binary file modified.