return 0;
}
- if (!this.isNumberGeographical_(number)) {
+ if (!this.isNumberGeographical(number)) {
return 0;
}
*
* @param {i18n.phonenumbers.PhoneNumber} phoneNumber The phone number to test.
* @return {boolean} true if the phone number has a geographical association.
- * @private
*/
-i18n.phonenumbers.PhoneNumberUtil.prototype.isNumberGeographical_ =
+i18n.phonenumbers.PhoneNumberUtil.prototype.isNumberGeographical =
function(phoneNumber) {
/** @type {i18n.phonenumbers.PhoneNumberType} */
var numberType = this.getNumberType(phoneNumber);
function testIsNumberGeographical() {
// Bahamas, mobile phone number.
- assertFalse(phoneUtil.isNumberGeographical_(BS_MOBILE));
+ assertFalse(phoneUtil.isNumberGeographical(BS_MOBILE));
// Australian fixed line number.
- assertTrue(phoneUtil.isNumberGeographical_(AU_NUMBER));
+ assertTrue(phoneUtil.isNumberGeographical(AU_NUMBER));
// International toll free number.
- assertFalse(phoneUtil.isNumberGeographical_(INTERNATIONAL_TOLL_FREE));
+ assertFalse(phoneUtil.isNumberGeographical(INTERNATIONAL_TOLL_FREE));
}
function testIsLeadingZeroPossible() {