Home
last modified time | relevance | path

Searched refs:AsYouTypeFormatter (Results 1 – 15 of 15) sorted by relevance

/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dasyoutypeformatter.js49 i18n.phonenumbers.AsYouTypeFormatter = function(regionCode) { class in i18n.phonenumbers
195 i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_ = ' ';
203 i18n.phonenumbers.AsYouTypeFormatter.EMPTY_METADATA_ =
205 i18n.phonenumbers.AsYouTypeFormatter.EMPTY_METADATA_
222 i18n.phonenumbers.AsYouTypeFormatter.ELIGIBLE_FORMAT_PATTERN_ = new RegExp(
236 i18n.phonenumbers.AsYouTypeFormatter.NATIONAL_PREFIX_SEPARATORS_PATTERN_ =
249 i18n.phonenumbers.AsYouTypeFormatter.MIN_LEADING_DIGITS_LENGTH_ = 3;
260 i18n.phonenumbers.AsYouTypeFormatter.prototype.getMetadataForRegion_ =
276 return i18n.phonenumbers.AsYouTypeFormatter.EMPTY_METADATA_;
285 i18n.phonenumbers.AsYouTypeFormatter.prototype.maybeCreateNewTemplate_ =
[all …]
Dasyoutypeformatter_test.js38 var f = new i18n.phonenumbers.AsYouTypeFormatter(RegionCode.ZZ);
61 var f = new i18n.phonenumbers.AsYouTypeFormatter(RegionCode.ZZ);
82 var f = new i18n.phonenumbers.AsYouTypeFormatter(RegionCode.ZZ);
103 var f = new i18n.phonenumbers.AsYouTypeFormatter(RegionCode.BY);
119 var f = new i18n.phonenumbers.AsYouTypeFormatter(RegionCode.BY);
134 var f = new i18n.phonenumbers.AsYouTypeFormatter(RegionCode.US);
229 var f = new i18n.phonenumbers.AsYouTypeFormatter(RegionCode.US);
244 var f = new i18n.phonenumbers.AsYouTypeFormatter(RegionCode.US);
254 var f = new i18n.phonenumbers.AsYouTypeFormatter(RegionCode.US);
271 var f = new i18n.phonenumbers.AsYouTypeFormatter(RegionCode.US);
[all …]
Ddemo.js151 var formatter = new i18n.phonenumbers.AsYouTypeFormatter(regionCode);
/third_party/libphonenumber/cpp/src/phonenumbers/
Dasyoutypeformatter.cc91 AsYouTypeFormatter::AsYouTypeFormatter(const string& region_code) in AsYouTypeFormatter() function in i18n::phonenumbers::AsYouTypeFormatter
121 const PhoneMetadata* AsYouTypeFormatter::GetMetadataForRegion( in GetMetadataForRegion()
137 bool AsYouTypeFormatter::MaybeCreateNewTemplate() { in MaybeCreateNewTemplate()
161 void AsYouTypeFormatter::GetAvailableFormats(const string& leading_digits) { in GetAvailableFormats()
201 void AsYouTypeFormatter::NarrowDownPossibleFormats( in NarrowDownPossibleFormats()
231 void AsYouTypeFormatter::SetShouldAddSpaceAfterNationalPrefix( in SetShouldAddSpaceAfterNationalPrefix()
240 bool AsYouTypeFormatter::CreateFormattingTemplate(const NumberFormat& format) { in CreateFormattingTemplate()
254 void AsYouTypeFormatter::GetFormattingTemplate( in GetFormattingTemplate()
281 void AsYouTypeFormatter::Clear() { in Clear()
305 const string& AsYouTypeFormatter::InputDigit(char32 next_char, string* result) { in InputDigit()
[all …]
Dasyoutypeformatter.h53 class AsYouTypeFormatter {
55 ~AsYouTypeFormatter() {} in ~AsYouTypeFormatter()
85 explicit AsYouTypeFormatter(const string& region_code);
236 DISALLOW_COPY_AND_ASSIGN(AsYouTypeFormatter);
Dphonenumberutil.h41 class AsYouTypeFormatter; variable
57 friend class AsYouTypeFormatter;
745 AsYouTypeFormatter* GetAsYouTypeFormatter(const string& region_code) const;
Dphonenumberutil.cc3177 AsYouTypeFormatter* PhoneNumberUtil::GetAsYouTypeFormatter( in GetAsYouTypeFormatter()
3179 return new AsYouTypeFormatter(region_code); in GetAsYouTypeFormatter()
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DAsYouTypeFormatterTest.java30 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.ZZ); in testInvalidRegion()
52 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.ZZ); in testInvalidPlusSign()
72 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.ZZ); in testTooLongNumberMatchingMultipleLeadingDigits()
92 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.BY); in testCountryWithSpaceInNationalPrefixFormattingRule()
107 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.BY); in testCountryWithSpaceInNationalPrefixFormattingRuleAndLongNdd()
121 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); in testAYTFUS()
215 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); in testAYTFUSFullWidthCharacters()
229 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); in testAYTFUSMobileShortCode()
238 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); in testAYTFUSVanityNumber()
254 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); in testAYTFAndRememberPositionUS()
[all …]
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DAsYouTypeFormatter.java41 public class AsYouTypeFormatter { class
119 AsYouTypeFormatter(String regionCode) { in AsYouTypeFormatter() method in AsYouTypeFormatter
DPhoneNumberUtil.java2794 public AsYouTypeFormatter getAsYouTypeFormatter(String regionCode) {
2795 return new AsYouTypeFormatter(regionCode);
/third_party/libphonenumber/java/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java24 import com.google.i18n.phonenumbers.AsYouTypeFormatter;
372 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(defaultCountry); in getOutputForSingleNumber()
/third_party/libphonenumber/
DREADME.md41 * `AsYouTypeFormatter` - formats phone numbers on-the-fly when users enter
176 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("US");
Drelease_notes.txt601 - AsYouTypeFormatter changed to ensure that the output never adds new digits or swallows digits.
727 - Removed unused code in the AsYouTypeFormatter: We no longer have numbers in
766 - AsYouTypeFormatter changed to better choose between rules when dialling
2016 - Handle StringIndexOutOfBoundsException in the AsYouTypeFormatter when the
2344 - Fixing regression in AsYouTypeFormatter where it no longer worked for numbers entered in national
2353 - Inserting a space after the national prefix in the AsYouTypeFormatter when formatting numbers in
2355 - Format emergency numbers and short-codes as a block in the AsYouTypeFormatter.
2559 - Enable AsYouTypeFormatter to handle long IDD and NDD.
2667 - Improved AsYouTypeFormatter not to use formatting rules containing non-formatting characters
2683 * Documentation updates and some small refactoring to AsYouTypeFormatter
[all …]
/third_party/libphonenumber/javascript/
DREADME.md82 * AsYouTypeFormatter.java => asyoutypeformatter.js
/third_party/libphonenumber/cpp/test/phonenumbers/
Dasyoutypeformatter_test.cc51 return AsYouTypeFormatter::ConvertUnicodeStringPosition(s, pos); in ConvertUnicodeStringPosition()
55 scoped_ptr<AsYouTypeFormatter> formatter_;