cpp/src/phonenumbers/phonenumberutil.cc
// Checks to see if the string of characters could possibly be a phone number at
// all. At the moment, checks to see that the string begins with at least 3
// digits, ignoring any punctuation commonly found in phone numbers.  This
// method does not require the number to be normalized in advance - but does
// assume that leading non-number symbols have been removed, such as by the
// method ExtractPossibleNumber.
Checks to see if the string of characters could possibly be a phone number at
all. At the moment, checks to see that the string begins with at least 3
digits, ignoring any punctuation commonly found in phone numbers.  This
method does not require the number to be normalized in advance - but does
assume that leading non-number symbols have been removed, such as by the
method ExtractPossibleNumber.
Checks to see if the string of characters could possibly be a phone number at all . At the moment checks to see that the string begins with at least 3 digits ignoring any punctuation commonly found in phone numbers . This method does not require the number to be normalized in advance - but does assume that leading non - number symbols have been removed such as by the method ExtractPossibleNumber .
bool PhoneNumberUtil::IsViablePhoneNumber(const string& number) const {
  if (number.length() < kMinLengthForNsn) {
    return false;
  }
  return reg_exps_->valid_phone_number_pattern_->FullMatch(number);
}
bool PhoneNumberUtil :: IsViablePhoneNumber ( const string & number ) const { if ( number . length ( ) < kMinLengthForNsn ) { return false ; } return reg_exps_ -> valid_phone_number_pattern_ -> FullMatch ( number ) ; }
Checks to see if the string of characters could possibly be a phone number at
all.
Checks to see if the string of characters could possibly be a phone number at all .