cpp/src/phonenumbers/phonenumberutil.cc
// Returns true if there is any possible number data set for a particular
// PhoneNumberDesc.
Returns true if there is any possible number data set for a particular
PhoneNumberDesc.
Returns true if there is any possible number data set for a particular PhoneNumberDesc .
bool DescHasPossibleNumberData(const PhoneNumberDesc& desc) {
  return desc.possible_length_size() != 1 || desc.possible_length(0) != -1;
}
bool DescHasPossibleNumberData ( const PhoneNumberDesc & desc ) { return desc . possible_length_size ( ) != 1 || desc . possible_length ( 0 ) != -1 ; }
Returns true if there is any possible number data set for a particular
PhoneNumberDesc.
Returns true if there is any possible number data set for a particular PhoneNumberDesc .
// If this is empty, it means numbers of this type inherit from the "general // desc" -> the value "-1" means that no numbers exist for this type.