Browse Source

removing white spaces

pull/567/head
Shaopeng Jia 16 years ago
committed by Mihaela Rosca
parent
commit
7bb855ccb3
3 changed files with 6 additions and 6 deletions
  1. +3
    -3
      java/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java
  2. +2
    -2
      java/src/com/google/i18n/phonenumbers/Phonenumber.java
  3. +1
    -1
      java/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java

+ 3
- 3
java/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java View File

@ -164,7 +164,7 @@ public class PhoneNumberUtil {
.add(228) // Togo
.add(240) // Equatorial Guinea
.add(241) // Gabon
.build();
.build();
// Pattern that makes it easy to distinguish whether a country has a unique international dialing
// prefix or not. If a country has a unique international prefix (e.g. 011 in USA), it will be
@ -220,7 +220,7 @@ public class PhoneNumberUtil {
// We use this pattern to check if the phone number has at least three letters in it - if so, then
// we treat it as a number where some phone-number digits are represented by letters.
private static final Pattern VALID_ALPHA_PHONE_PATTERN = Pattern.compile("(?:.*?[A-Za-z]){3}.*");
// Regular expression of viable phone numbers. This is location independent. Checks we have at
// least three leading digits, and only valid punctuation, alpha characters and
// digits in the phone number. Does not include extension data.
@ -1106,7 +1106,7 @@ public class PhoneNumberUtil {
if (metadata == null) {
LOGGER.log(Level.SEVERE, "Unsupported country code provided.");
return 0;
}
}
return metadata.getCountryCode();
}


+ 2
- 2
java/src/com/google/i18n/phonenumbers/Phonenumber.java View File

@ -59,7 +59,7 @@ public final class Phonenumber {
private java.lang.String rawInput_ = "";
public boolean hasRawInput() { return hasRawInput; }
public java.lang.String getRawInput() { return rawInput_; }
private void initFields() {
}
public final boolean isInitialized() {
@ -411,7 +411,7 @@ public final class Phonenumber {
result.rawInput_ = getDefaultInstance().getRawInput();
return this;
}
// @@protoc_insertion_point(builder_scope:i18n.phonenumbers.PhoneNumber)
}


+ 1
- 1
java/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java View File

@ -129,7 +129,7 @@ public class AsYouTypeFormatterTest extends TestCase {
assertEquals("011 54 9 11 2312 1\u2008\u2008\u2008", formatter.inputDigit('1'));
assertEquals("011 54 9 11 2312 12\u2008\u2008", formatter.inputDigit('2'));
assertEquals("011 54 9 11 2312 123\u2008", formatter.inputDigit('3'));
assertEquals("011 54 9 11 2312 1234", formatter.inputDigit('4'));
assertEquals("011 54 9 11 2312 1234", formatter.inputDigit('4'));
formatter.clear();
assertEquals("+", formatter.inputDigit('+'));


Loading…
Cancel
Save