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.
1314 // Metadata cannot be null because the country calling code is valid.
1456 // be valid in Japan).
1530 // because all valid alpha numbers have 3 digits at the start - if it does not, then we don't
1580 // Metadata cannot be null because the country calling code is valid.
1735 * Gets a valid number for the specified region.
1738 * @return a valid fixed-line number for the specified region. Returns null when the metadata
1747 * Gets a valid number for the specified region and number type.
1751 * @return a valid number for the specified region and type. Returns null when the metadata
1757 // Check the region code is valid.
1774 * Gets a valid number for the specified country calling code for a non-geographical entity.
1777 * @return a valid number for the non-geographical entity. Returns null when the metadata
1923 // The regionCode here will be valid and won't be '001', so we don't need to worry about
1954 * Tests whether a phone number matches a valid pattern. Note this doesn't verify the number
1958 * @return a boolean that indicates whether the number is of a valid pattern
1966 * Tests whether a phone number is valid for a certain region. Note this doesn't verify the number
1970 * examined. This is useful for determining for example whether a particular number is valid for
1971 * Canada, rather than just a valid NANPA number.
1979 * @return a boolean that indicates whether the number is of a valid pattern
1995 // as a valid number if its national significant number is between the minimum and maximum
2088 * United States, and 64 for New Zealand. Assumes the region is already valid.
2163 * Checks if the number is a valid vanity (alpha) number such as 800 MICROSOFT. A valid vanity
2165 * does not do region-specific checks - to work out if this number is actually valid for a region,
2170 * @return true if the number is a valid vanity number
2236 // valid. This would need to be revisited if the possible number pattern ever differed between
2242 // Metadata cannot be null because the country calling code is valid.
2290 * Attempts to extract a valid number from a phone number that is too long to be valid, and resets
2291 * the PhoneNumber object passed in to that valid version. If no valid number could be extracted,
2293 * @param number a PhoneNumber object which contains a number that is too long to be valid.
2294 * @return true if a valid phone number can be successfully extracted.
2328 // 0 if fullNumber doesn't start with a valid country calling code, and leaves nationalNumber
2431 // If the number was not valid before but is valid now, or if it was too long before, we
2599 * Checks to see that the region code used is valid, or if it is not valid, that the number to
2617 * a possible number. Note that validation of whether the number is actually a valid number for a
2685 * getMatcher(text, defaultRegion, Leniency.VALID, Long.MAX_VALUE)}.
2695 return findNumbers(text, defaultRegion, Leniency.VALID, Long.MAX_VALUE);
2749 // Check the region supplied is valid, or that the extracted number starts with some sort of +
2796 // Metadata cannot be null because the country calling code is valid.
3037 // If the first number didn't have a valid country calling code, then we parse the
3054 * can only be dialled from within the region, returns false. Does not check the number is a valid