Lines Matching refs:format
24 * be provided using CLDR two-letter region-code format. These should be in
197 * The RFC 3966 format for extensions.
914 // The first regular expression covers RFC 3966 format, where the extension is added
1035 * INTERNATIONAL format, and as '044 668 1800' in NATIONAL format. E164 format
1036 * is as per INTERNATIONAL format but with no formatting applied, e.g.
1037 * '+41446681800'. RFC3966 is as per INTERNATIONAL format, but with all spaces
1042 * Note: If you are considering storing the number in a neutral format, you are
1369 * when the number is formatted in the international format, if there is a
1412 // include the extension when we format it, so we copy it and clear the
1421 var nationalSignificantNumber = this.format(copiedProto,
1442 // international format, are in the form of +54 9 NDC XXXX.... As a result,
1765 * Formats a phone number in the specified format using default rules. Note that
1767 * where they are - although we do format in either 'national' or
1768 * 'international' format depending on what the client asks for, we do not
1769 * currently support a more abbreviated format, such as for users in the same
1777 * @param {i18n.phonenumbers.PhoneNumberFormat} numberFormat the format the
1781 i18n.phonenumbers.PhoneNumberUtil.prototype.format =
1789 // without raw input format to the empty string instead of "+00"
1838 * Formats a phone number in the specified format using client-defined
1841 * like whether there should be a national prefix applied, or how to format
1847 * @param {i18n.phonenumbers.PhoneNumberFormat} numberFormat the format the
1881 // If no pattern above is matched, we format the number as a whole.
1904 // We don't want to have a rule for how to format the national prefix if
1924 * Formats a phone number in national format for dialing using the carrier as
1928 * the number in national format without any carrier code.
1933 * @return {string} the formatted phone number in national format for dialing
1986 * Formats a phone number in national format for dialing using the carrier as
1991 * number in national format without any carrier code.
2001 * @return {string} the formatted phone number in national format for dialing
2077 // For NANPA countries, we output international format for numbers that
2080 // dialled in national format.
2087 formattedNumber = this.format(
2090 formattedNumber = this.format(
2095 // line and mobile numbers, we output international format for numbers
2100 // international format, even when dialed within MX. For national
2101 // format to work, a carrier code needs to be used, and the correct
2104 // using international format, which is tested to work fine on all
2107 // national format, but don't have it when used for display. The
2109 // the international format to make it work.
2111 // international format or prefixed with special codes like 03, 04
2115 // phone types we return the number in international format here.
2119 formattedNumber = this.format(
2122 formattedNumber = this.format(
2131 this.format(numberNoExt,
2133 this.format(numberNoExt, i18n.phonenumbers.PhoneNumberFormat.E164);
2144 * regionCallingFrom is supplied, we format the number in its INTERNATIONAL
2145 * format. If the country calling code is the same as that of the region where
2155 * international prefixes, the number in its INTERNATIONAL format will be
2167 return this.format(number,
2180 // For NANPA regions, return the national format for these regions but
2183 this.format(number, i18n.phonenumbers.PhoneNumberFormat.NATIONAL);
2195 return this.format(number,
2207 // format of the number is returned, unless there is a preferred international
2243 * Formats a phone number using the original phone number format that the number
2244 * is parsed from. The original format is embedded in the country_code_source
2246 * the number will be formatted into the NATIONAL format by default. When the
2255 * be formatted in its original number format.
2258 * @return {string} the formatted phone number in its original number format.
2265 // format the number as a group without national prefix.
2269 return this.format(number, i18n.phonenumbers.PhoneNumberFormat.NATIONAL);
2276 formattedNumber = this.format(number,
2285 formattedNumber = this.format(number,
2300 this.format(number, i18n.phonenumbers.PhoneNumberFormat.NATIONAL);
2303 // return the national format without worrying about a national prefix
2312 // If so, we can safely return the national format.
2325 // The format rule could still be null here if the national number was 0
2333 // When the format we apply to this number doesn't contain national
2334 // prefix, we can just return the national format.
2387 * Check if rawInput, which is assumed to be in the national format, has a
2521 // If no pattern above is matched, we format the original input.
2532 // Now we format using this pattern instead of the default pattern, but
2544 // multiple international prefixes, the international format of the number is
2613 * A helper function that is used by format and formatByPattern.
2616 * @param {i18n.phonenumbers.PhoneNumberFormat} numberFormat the format the
2649 * different ways depending on whether it forms part of the NATIONAL format or
2650 * INTERNATIONAL format. The numberFormat parameter here is used to specify
2651 * which format to use for those cases. If a carrierCode is specified, this will
2657 * @param {i18n.phonenumbers.PhoneNumberFormat} numberFormat the format the
2668 // When the intlNumberFormats exists, we use that to format national number
2669 // for the INTERNATIONAL format instead of using the numberDesc.numberFormats.
2729 * @param {i18n.phonenumbers.PhoneNumberFormat} numberFormat the format the
2888 * @param {i18n.phonenumbers.PhoneNumberFormat} numberFormat the format the
3410 * possible if they could be possibly dialled in this format: if the area code
3435 * possible if they could be possibly dialled in this format: if the area code
3940 * the number did not seem to be in international format.
4124 * Parses a string and returns it as a phone number in proto buffer format. The
4129 * accept a number in any format (E164, national, international etc), assuming
4147 * extension. It can also be provided in RFC3966 format.
4150 * international format. The country_code for the number in this case would
4158 * region was supplied and the number is not in international format (does
4168 * Parses a string and returns it in proto buffer format. This method differs
4177 * international format. The country calling code for the number in this
4225 * Parses a string and returns it in proto buffer format. This method is the
4238 * international format. The country calling code for the number in this
4290 // Check to see if the number is given in international format so we know
4582 // If the input arguements are strings parse them to a proto buffer format.