Lines Matching refs:region
24 * be provided using CLDR two-letter region-code format. These should be in
49 * A mapping from region code to the short-number metadata for that region.
84 * Returns a list with the region codes that match the specific country calling
85 * code. For non-geographical country calling codes, the region code 001 is
86 * returned. Also, in the case of no region code being found, an empty list
89 * @return {!Array<string>} The region codes that match the given country code.
102 * the region it's being dialed from.
118 * region. This provides a more lenient check than
122 * @param {string} regionDialingFrom the region from which the number is dialed
155 var region = regionCodes[i];
156 var phoneMetadata = this.getMetadataForRegion_(region);
170 * Tests whether a short number matches a valid pattern in a region. Note that
176 * @param {?string} regionDialingFrom the region from which the number is dialed
217 // If a matching region had been found for the phone number from among two
219 // for that region.
227 * Gets the expected cost category of a short number when dialed from a region
233 * // The region for which the number was parsed and the region we subsequently
248 * @param {string} regionDialingFrom the region from which the number is dialed
250 * category for that region of the short number. Returns UNKNOWN_COST if the
295 * region, this method behaves exactly the same as
300 * if a number is UNKNOWN_COST in one region but STANDARD_RATE or TOLL_FREE in
308 * Note: If the region from which the number is dialed is known, it is highly
315 * expected cost category of the short number in the region(s) with the
349 throw new Error('Unrecognized cost for region: ' + costForRegion);
357 * Helper method to get the region code for a given phone number, from a list
358 * of possible region codes. If the list contains more than one region, the
359 * first region for which the number is valid is returned.
387 * @return {!Array<string>} the list of region codes
399 * Gets a valid short number for the specified region.
401 * @param {?string} regionCode the region for which an example short number is
403 * @return {string} a valid short number for the specified region. Returns an
424 * @param {string} regionCode the region for which an example short number is
428 * @return {string} a valid short number for the specified region and cost
463 * connect to an emergency service in the given region.
470 * the specified region).
473 * @param {string} regionCode the region where the phone number is being
476 * emergency service in the given region
487 * number in the given region.
491 * {@code isEmergencyNumber(number, region)} implies
492 * {@code connectsToEmergencyNumber(number, region)}.
495 * @param {string} regionCode the region where the phone number is being
498 * number in the given region.
508 * @param {?string} regionCode The region code to get metadata for
509 * @return {?i18n.phonenumbers.PhoneMetadata} The region code's metadata, or
510 * null if it is not available or the region code is invalid.
539 * @param {string} regionCode the region code to check against
542 * particular region.
602 * dialed from the given region (however, nothing is implied about its
607 * false if the number doesn't match the region provided.
611 * @param {string} regionDialingFrom the region from which the number is dialed
613 * provided region, assuming the input was a valid short number
635 * region provided.
639 * @param {string} regionDialingFrom the region from which the number is dialed
641 * region, assuming the input was a valid short number