/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | ExampleNumbersTest.java | 56 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { in checkNumbersValidAndCorrectType() 58 phoneNumberUtil.getExampleNumberForType(regionCode, exampleNumberRequestedType); in checkNumbersValidAndCorrectType() 147 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { in testCanBeInternationallyDialled() 150 phoneNumberUtil.getMetadataForRegion(regionCode).getNoInternationalDialling(); in testCanBeInternationallyDialled() 153 exampleNumber = phoneNumberUtil.parse(desc.getExampleNumber(), regionCode); in testCanBeInternationallyDialled() 181 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { in testEveryRegionHasAnExampleNumber() 182 PhoneNumber exampleNumber = phoneNumberUtil.getExampleNumber(regionCode); in testEveryRegionHasAnExampleNumber() 183 assertNotNull("No example number found for region " + regionCode, exampleNumber); in testEveryRegionHasAnExampleNumber() 188 for (String regionCode : phoneNumberUtil.getSupportedRegions()) { in testEveryRegionHasAnInvalidExampleNumber() 189 PhoneNumber exampleNumber = phoneNumberUtil.getInvalidExampleNumber(regionCode); in testEveryRegionHasAnInvalidExampleNumber() [all …]
|
/third_party/libphonenumber/javascript/i18n/phonenumbers/ |
D | shortnumberinfo.js | 214 var regionCode = this.getRegionCodeForShortNumberFromRegionList_(number, 216 if (regionCodes.length > 1 && regionCode != null) { 222 return this.isValidShortNumberForRegion(number, regionCode); 332 var regionCode = regionCodes[i]; 333 var costForRegion = this.getExpectedCostForRegion(number, regionCode); 374 var regionCode = regionCodes[i]; 375 var phoneMetadata = this.getMetadataForRegion_(regionCode); 378 return regionCode; 392 .filter(function(regionCode) { argument 393 return isNaN(regionCode); [all …]
|
D | phonenumberutil.js | 1409 .filter(function(regionCode) { argument 1410 return isNaN(regionCode); 1425 .filter(function(regionCode) { argument 1426 return !isNaN(regionCode); 1537 function(regionCode) { argument 1538 if (!this.isValidRegionCode_(regionCode)) { 1543 this.getMetadataForRegion(regionCode))); 1659 function(regionCode) { argument 1669 return regionCode != null && 1670 isNaN(regionCode) && [all …]
|
D | demo.js | 47 var regionCode = $('defaultCountry').value.toUpperCase(); 51 var number = phoneUtil_.parseAndKeepRawInput(phoneNumber, regionCode); 61 var hasRegionCode = regionCode && regionCode != 'ZZ'; 76 output.append(phoneUtil_.isValidNumberForRegion(number, regionCode)); 115 shortInfo.isPossibleShortNumberForRegion(number, regionCode)); 118 shortInfo.isValidShortNumberForRegion(number, regionCode)); 128 output.append(phoneUtil_.formatInOriginalFormat(number, regionCode)); 151 var formatter = new i18n.phonenumbers.AsYouTypeFormatter(regionCode);
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | ShortNumberInfo.java | 122 private PhoneMetadata getShortNumberMetadataForRegion(String regionCode) { in getShortNumberMetadataForRegion() argument 123 if (regionCode == null) { in getShortNumberMetadataForRegion() 127 return shortNumberMetadataSource.getMetadataForRegion(regionCode); in getShortNumberMetadataForRegion() 214 String regionCode = getRegionCodeForShortNumberFromRegionList(number, regionCodes); in isValidShortNumber() local 215 if (regionCodes.size() > 1 && regionCode != null) { in isValidShortNumber() 220 return isValidShortNumberForRegion(number, regionCode); in isValidShortNumber() 313 for (String regionCode : regionCodes) { in getExpectedCost() 314 ShortNumberCost costForRegion = getExpectedCostForRegion(number, regionCode); in getExpectedCost() 347 for (String regionCode : regionCodes) { in getRegionCodeForShortNumberFromRegionList() 348 PhoneMetadata phoneMetadata = getShortNumberMetadataForRegion(regionCode); in getRegionCodeForShortNumberFromRegionList() [all …]
|
D | PhoneNumberUtil.java | 1114 public Set<PhoneNumberType> getSupportedTypesForRegion(String regionCode) { 1115 if (!isValidRegionCode(regionCode)) { 1116 logger.log(Level.WARNING, "Invalid or unknown region code provided: " + regionCode); 1119 PhoneMetadata metadata = getMetadataForRegion(regionCode); 1235 private boolean isValidRegionCode(String regionCode) { 1236 return regionCode != null && supportedRegions.contains(regionCode); 1303 String regionCode = getRegionCodeForCountryCode(countryCallingCode); 1307 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode); 1335 String regionCode = getRegionCodeForCountryCode(countryCallingCode); 1338 getMetadataForRegionOrCallingCode(countryCallingCode, regionCode); [all …]
|
D | MetadataManager.java | 87 static PhoneMetadata getShortNumberMetadataForRegion(String regionCode) { in getShortNumberMetadataForRegion() argument 88 if (!shortNumberMetadataRegionCodes.contains(regionCode)) { in getShortNumberMetadataForRegion() 91 return getMetadataFromMultiFilePrefix(regionCode, shortNumberMetadataMap, in getShortNumberMetadataForRegion() 133 String regionCode = metadata.getId(); in load() local 134 if (PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(regionCode)) { in load() 138 regionCodeToMetadata.put(regionCode, metadata); in load() 162 PhoneMetadata get(String regionCode) { in get() argument 163 return regionCodeToMetadata.get(regionCode); in get()
|
D | SingleFileMetadataSourceImpl.java | 49 public PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument 51 phoneNumberMetadataFileName, metadataLoader).get(regionCode); in getMetadataForRegion()
|
D | MultiFileMetadataSourceImpl.java | 63 public PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument 64 return MetadataManager.getMetadataFromMultiFilePrefix(regionCode, geographicalRegions, in getMetadataForRegion()
|
D | AsYouTypeFormatter.java | 119 AsYouTypeFormatter(String regionCode) { in AsYouTypeFormatter() argument 120 defaultCountry = regionCode; in AsYouTypeFormatter() 127 private PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument 128 int countryCallingCode = phoneUtil.getCountryCodeForRegion(regionCode); in getMetadataForRegion()
|
D | MetadataSource.java | 31 PhoneMetadata getMetadataForRegion(String regionCode); in getMetadataForRegion() argument
|
/third_party/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/ |
D | PhoneNumberOfflineGeocoder.java | 73 for (String regionCode : regionCodes) { in getCountryNameForNumber() 74 if (phoneUtil.isValidNumberForRegion(number, regionCode)) { in getCountryNameForNumber() 80 regionWhereNumberIsValid = regionCode; in getCountryNameForNumber() 90 private String getRegionDisplayName(String regionCode, Locale language) { in getRegionDisplayName() argument 91 return (regionCode == null || regionCode.equals("ZZ") in getRegionDisplayName() 92 || regionCode.equals(PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY)) in getRegionDisplayName() 93 ? "" : new Locale("", regionCode).getDisplayCountry(language); in getRegionDisplayName() 169 String regionCode = phoneUtil.getRegionCodeForNumber(number); in getDescriptionForValidNumber() local 170 if (userRegion.equals(regionCode)) { in getDescriptionForValidNumber() 174 return getRegionDisplayName(regionCode, languageCode); in getDescriptionForValidNumber()
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/metadata/source/ |
D | RegionMetadataSourceImpl.java | 54 public PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument 55 if (!GeoEntityUtility.isGeoEntity(regionCode)) { in getMetadataForRegion() 56 throw new IllegalArgumentException(regionCode + " region code is a non-geo entity"); in getMetadataForRegion() 59 .getOrBootstrap(phoneMetadataFileNameProvider.getFor(regionCode)) in getMetadataForRegion() 60 .getMetadataBy(regionCode); in getMetadataForRegion()
|
D | MetadataSourceImpl.java | 64 public PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion() argument 65 if (!GeoEntityUtility.isGeoEntity(regionCode)) { in getMetadataForRegion() 66 throw new IllegalArgumentException(regionCode + " region code is a non-geo entity"); in getMetadataForRegion() 69 .getOrBootstrap(phoneMetadataFileNameProvider.getFor(regionCode)) in getMetadataForRegion() 70 .getMetadataBy(regionCode); in getMetadataForRegion()
|
D | CompositeMetadataContainer.java | 38 PhoneMetadata getMetadataBy(String regionCode) { in getMetadataBy() argument 39 return metadataByRegionCode.getMetadataBy(regionCode); in getMetadataBy() 62 String regionCode = metadataByRegionCode.getKeyProvider().getKeyOf(phoneMetadata); in accept() local 63 if (GeoEntityUtility.isGeoEntity(regionCode)) { in accept()
|
/third_party/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/ |
D | BuildMetadataProtoFromXml.java | 176 String regionCode = metadata.getId(); in start() local 179 if (regionCode.equals("001") || regionCode.isEmpty()) { in start() 180 regionCode = Integer.toString(metadata.getCountryCode()); in start() 184 FileOutputStream outputForRegion = new FileOutputStream(filePrefix + "_" + regionCode); in start() 270 for (String regionCode : regionCodes) { in writeMap() 271 writer.addToBody(" listWithRegionCode.add(\"" + regionCode + "\");\n"); in writeMap() 294 for (String regionCode : regionCodeList) { in writeRegionCodeSet() 295 writer.addToBody(" regionCodeSet.add(\"" + regionCode + "\");\n"); in writeRegionCodeSet()
|
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/ |
D | BuildMetadataFromXml.java | 123 String regionCode = ""; in buildPhoneMetadataCollection() local 127 regionCode = territoryElement.getAttribute("id"); in buildPhoneMetadataCollection() 129 PhoneMetadata.Builder metadata = loadCountryMetadata(regionCode, territoryElement, in buildPhoneMetadataCollection() 145 String regionCode = metadata.getId(); in buildCountryCodeToRegionCodeMap() local 149 countryCodeToRegionCodeMap.get(countryCode).add(0, regionCode); in buildCountryCodeToRegionCodeMap() 151 countryCodeToRegionCodeMap.get(countryCode).add(regionCode); in buildCountryCodeToRegionCodeMap() 156 if (!regionCode.equals("")) { // For alternate formats, there are no region codes at all. in buildCountryCodeToRegionCodeMap() 157 listWithRegionCode.add(regionCode); in buildCountryCodeToRegionCodeMap() 197 static PhoneMetadata.Builder loadTerritoryTagMetadata(String regionCode, Element element, in loadTerritoryTagMetadata() argument 200 metadata.setId(regionCode); in loadTerritoryTagMetadata() [all …]
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/internal/ |
D | GeoEntityUtility.java | 34 public static boolean isGeoEntity(String regionCode) { in isGeoEntity() argument 35 return !regionCode.equals(REGION_CODE_FOR_NON_GEO_ENTITIES); in isGeoEntity()
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | wintz.cpp | 294 …char regionCode[3] = {}; // 2 letter ISO 3166 country/region code made entirely of invariant chars. in uprv_detectWindowsTimeZone() local 303 regionCode[i] = static_cast<char>(regionCodeW[i]); in uprv_detectWindowsTimeZone() 305 icuTZ16 = ures_getStringByKey(winTZBundle.getAlias(), regionCode, &tzListLen, &status); in uprv_detectWindowsTimeZone()
|
/third_party/icu/icu4c/source/common/ |
D | wintz.cpp | 294 …char regionCode[3] = {}; // 2 letter ISO 3166 country/region code made entirely of invariant chars. in uprv_detectWindowsTimeZone() local 303 regionCode[i] = static_cast<char>(regionCodeW[i]); in uprv_detectWindowsTimeZone() 305 icuTZ16 = ures_getStringByKey(winTZBundle.getAlias(), regionCode, &tzListLen, &status); in uprv_detectWindowsTimeZone()
|
/third_party/node/deps/icu-small/source/common/ |
D | wintz.cpp | 294 …char regionCode[3] = {}; // 2 letter ISO 3166 country/region code made entirely of invariant chars. in uprv_detectWindowsTimeZone() local 303 regionCode[i] = static_cast<char>(regionCodeW[i]); in uprv_detectWindowsTimeZone() 305 icuTZ16 = ures_getStringByKey(winTZBundle.getAlias(), regionCode, &tzListLen, &status); in uprv_detectWindowsTimeZone()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | uregion.cpp | 23 uregion_getRegionFromCode(const char *regionCode, UErrorCode *status) in uregion_getRegionFromCode() argument 25 return (URegion*)Region::getInstance(regionCode, *status); in uregion_getRegionFromCode()
|
/third_party/icu/icu4c/source/i18n/ |
D | uregion.cpp | 23 uregion_getRegionFromCode(const char *regionCode, UErrorCode *status) in uregion_getRegionFromCode() argument 25 return (URegion*)Region::getInstance(regionCode, *status); in uregion_getRegionFromCode()
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | uregion.cpp | 23 uregion_getRegionFromCode(const char *regionCode, UErrorCode *status) in uregion_getRegionFromCode() argument 25 return (URegion*)Region::getInstance(regionCode, *status); in uregion_getRegionFromCode()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | uregion.cpp | 23 uregion_getRegionFromCode(const char *regionCode, UErrorCode *status) in uregion_getRegionFromCode() argument 25 return (URegion*)Region::getInstance(regionCode, *status); in uregion_getRegionFromCode()
|