Commits

Anonymous committed a822b3f

Update phone number metadata and reorganize reg-exes for readability.

Comments (0)

Files changed (40)

java/release_notes.txt

+November 25th, 2010
+* Metadata changes:
+  - Updates to existing countries: AD, AG, AI, AN, AS, BB, BG, BM, BS, BW, CA, DM, DO, GD, GH, GM,
+    GU, IN, JM, KN, KY, KZ, LB, LC, MP, MS, PR, SY, TC, TT, TZ, US, VC, VG, VI.
+  - Reorganize reg-exes for better readability.
+  - Updated comments.
+
 October 22nd, 2010
 * Metadata changes:
   - Updates to existing countries: AE, GB, GG, IM, JE
 October 15th, 2010
 * Code improvements:
   - Allowed parsing of numbers that start with "++" or a full-width "+" symbol
-  - Allowed reg-exs for national and possible number patterns to have white space in them in the source XML file
+  - Allowed reg-exes for national and possible number patterns to have white space in them in the
+    source XML file
   - Added a more useful toString method for the phone number proto class
 * Metadata changes:
   - Updates to existing countries: AF, BF, BO, ES, GB, GG, IM, IS, JE, JE, JP, KR, PE, PT, RU, SE,

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

     if (numOfLeadingDigitsPatterns > 0) {
       for (int i = 0; i < numOfLeadingDigitsPatterns; i++) {
         format.addLeadingDigitsPattern(
-            validateRE((leadingDigitsPatternNodes.item(i)).getFirstChild().getNodeValue()));
+            validateRE((leadingDigitsPatternNodes.item(i)).getFirstChild().getNodeValue(), true));
       }
     }
   }

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

     }
   }
 
-  @Override public char charAt(int index) {
+  public char charAt(int index) {
     return data.charAt(index);
   }
 
-  @Override public int length() {
+  public int length() {
     return data.length();
   }
 
-  @Override public CharSequence subSequence(int start, int end) {
+  public CharSequence subSequence(int start, int end) {
     return data.subSequence(start, end);
   }
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.