cpp/src/phonenumbers/phonenumberutil.cc
// Returns true when one national number is the suffix of the other or both are
// the same.
Returns true when one national number is the suffix of the other or both are
the same.
Returns true when one national number is the suffix of the other or both are the same .
bool IsNationalNumberSuffixOfTheOther(const PhoneNumber& first_number,
                                      const PhoneNumber& second_number) {
  const string& first_number_national_number =
    SimpleItoa(static_cast<uint64>(first_number.national_number()));
  const string& second_number_national_number =
    SimpleItoa(static_cast<uint64>(second_number.national_number()));
  return HasSuffixString(first_number_national_number,
                         second_number_national_number) ||
         HasSuffixString(second_number_national_number,
                         first_number_national_number);
}
bool IsNationalNumberSuffixOfTheOther ( const PhoneNumber & first_number , const PhoneNumber & second_number ) { const string & first_number_national_number = SimpleItoa ( static_cast < uint64 > ( first_number . national_number ( ) ) ) ; const string & second_number_national_number = SimpleItoa ( static_cast < uint64 > ( second_number . national_number ( ) ) ) ; return HasSuffixString ( first_number_national_number , second_number_national_number ) || HasSuffixString ( second_number_national_number , first_number_national_number ) ; }
Returns true when one national number is the suffix of the other or both are
the same.
Returns true when one national number is the suffix of the other or both are the same .
// Note that HasSuffixString returns true if the numbers are equal.