Home | History | Annotate | Download | only in phonenumbers

Lines Matching defs:VALID

262   // least three leading digits, and only valid punctuation, alpha characters and
264 // The symbol 'x' is allowed here as valid punctuation since it is often used as a placeholder for
330 // Regexp of all known extension prefixes used by different regions followed by 1 or more valid
335 // We append optionally the extension pattern to the end here, as a valid phone number may
459 * possible}, but not necessarily {@linkplain PhoneNumberUtil#isValidNumber(PhoneNumber) valid}.
469 * possible} and {@linkplain PhoneNumberUtil#isValidNumber(PhoneNumber) valid}. Numbers written
473 VALID {
484 * Phone numbers accepted are {@linkplain PhoneNumberUtil#isValidNumber(PhoneNumber) valid} and
515 * Phone numbers accepted are {@linkplain PhoneNumberUtil#isValidNumber(PhoneNumber) valid} and
987 * Helper function to check the country calling code is valid.
1050 // Metadata cannot be null because the country calling code is valid (which means that the
1082 // Metadata cannot be null because the country calling code is valid
1144 // Metadata cannot be null because the country calling code is valid.
1310 // Metadata cannot be null because the country calling code is valid.
1452 // be valid in Japan).
1526 // because all valid alpha numbers have 3 digits at the start - if it does not, then we don't
1576 // Metadata cannot be null because the country calling code is valid.
1731 * Gets a valid number for the specified region.
1734 * @return a valid fixed-line number for the specified region. Returns null when the metadata
1743 * Gets a valid number for the specified region and number type.
1747 * @return a valid number for the specified region and type. Returns null when the metadata
1753 // Check the region code is valid.
1770 * Gets a valid number for the specified country calling code for a non-geographical entity.
1773 * @return a valid number for the non-geographical entity. Returns null when the metadata
1919 // The regionCode here will be valid and won't be '001', so we don't need to worry about
1950 * Tests whether a phone number matches a valid pattern. Note this doesn't verify the number
1954 * @return a boolean that indicates whether the number is of a valid pattern
1962 * Tests whether a phone number is valid for a certain region. Note this doesn't verify the number
1966 * examined. This is useful for determining for example whether a particular number is valid for
1967 * Canada, rather than just a valid NANPA number.
1975 * @return a boolean that indicates whether the number is of a valid pattern
1991 // as a valid number if its national significant number is between the minimum and maximum
2084 * United States, and 64 for New Zealand. Assumes the region is already valid.
2159 * Checks if the number is a valid vanity (alpha) number such as 800 MICROSOFT. A valid vanity
2161 * does not do region-specific checks - to work out if this number is actually valid for a region,
2166 * @return true if the number is a valid vanity number
2232 // valid. This would need to be revisited if the possible number pattern ever differed between
2238 // Metadata cannot be null because the country calling code is valid.
2286 * Attempts to extract a valid number from a phone number that is too long to be valid, and resets
2287 * the PhoneNumber object passed in to that valid version. If no valid number could be extracted,
2289 * @param number a PhoneNumber object which contains a number that is too long to be valid.
2290 * @return true if a valid phone number can be successfully extracted.
2324 // 0 if fullNumber doesn't start with a valid country calling code, and leaves nationalNumber
2427 // If the number was not valid before but is valid now, or if it was too long before, we
2595 * Checks to see that the region code used is valid, or if it is not valid, that the number to
2613 * a possible number. Note that validation of whether the number is actually a valid number for a
2681 * getMatcher(text, defaultRegion, Leniency.VALID, Long.MAX_VALUE)}.
2691 return findNumbers(text, defaultRegion, Leniency.VALID, Long.MAX_VALUE);
2745 // Check the region supplied is valid, or that the extracted number starts with some sort of +
2792 // Metadata cannot be null because the country calling code is valid.
3033 // If the first number didn't have a valid country calling code, then we parse the
3050 * can only be dialled from within the region, returns false. Does not check the number is a valid