Home
last modified time | relevance | path

Searched refs:countryCode (Results 1 – 25 of 31) sorted by relevance

12

/third_party/libphonenumber/migrator/src/main/java/com/google/phonenumbers/migrator/
DMigrationFactory.java47 DigitSequence countryCode = DigitSequence.of(country); in createMigration() local
55 CsvTable<RangeKey> ranges = metadata.importCsvTable(countryCode) in createMigration()
57 "Country code " + countryCode+ " not supported in metadata")); in createMigration()
59 return new MigrationJob(numberRanges, countryCode, recipes, in createMigration()
70 DigitSequence countryCode = DigitSequence.of(country); in createCustomRecipeMigration() local
74 return new MigrationJob(numberRanges, countryCode, recipes, in createCustomRecipeMigration()
87 DigitSequence countryCode = DigitSequence.of(country); in createMigration() local
96 CsvTable<RangeKey> ranges = metadata.importCsvTable(countryCode) in createMigration()
98 "Country code " + countryCode+ " not supported in metadata")); in createMigration()
100 …return new MigrationJob(numberRanges.build(), countryCode, recipes, ranges, exportInvalidMigration… in createMigration()
[all …]
DMigrationJob.java46 private final DigitSequence countryCode; field in MigrationJob
56 DigitSequence countryCode, in MigrationJob() argument
61 this.countryCode = countryCode; in MigrationJob()
68 return countryCode; in getCountryCode()
89 .getMigratableRangeByCountry(getRecipesRangeTable(), countryCode, getMigrationEntries()) in getMigrationReportForCountry()
95 .findMatchingRecipe(getRecipesCsvTable(), countryCode, entry.getSanitizedNumber()) in getMigrationReportForCountry() local
124 if (!recipeRow.get(RecipesTableSchema.COUNTRY_CODE).equals(countryCode)) { in getMigrationReportForRecipe()
176 MigrationUtils.findMatchingRecipe(getRecipesCsvTable(), countryCode, migratedVal) in migrate()
229 if (migratedNum.length() <= countryCode.length()) { in verifyMigratedNumbers()
233 if(validRanges.contains(migratedNum.last(migratedNum.length() - countryCode.length()))) { in verifyMigratedNumbers()
[all …]
DMetadataZipFileReader.java59 public Optional<CsvTable<RangeKey>> importCsvTable(DigitSequence countryCode) throws IOException { in importCsvTable() argument
60 String csvTableLocation = "metadata/" + countryCode + "/ranges.csv"; in importCsvTable()
82 String countryCode; in main() local
92 countryCode = scanner.next(); in main()
95 countryCode = args[1]; in main()
100 m.importCsvTable(DigitSequence.of(countryCode)) in main()
DMigrationUtils.java59 DigitSequence countryCode, in getMigratableRangeByCountry() argument
63 .getRanges(RecipesTableSchema.COUNTRY_CODE, countryCode); in getMigratableRangeByCountry()
77 DigitSequence countryCode, in findMatchingRecipe() argument
82 .get(RecipesTableSchema.COUNTRY_CODE).equals(countryCode)) { in findMatchingRecipe()
DCommandLineMain.java61 String countryCode; field in CommandLineMain
95 .createCustomRecipeMigration(clm.numberInput.number, clm.countryCode, in main()
98 migrationJob = MigrationFactory.createMigration(clm.numberInput.number, clm.countryCode); in main()
103 .createCustomRecipeMigration(Paths.get(clm.numberInput.file), clm.countryCode, in main()
107 .createMigration(Paths.get(clm.numberInput.file), clm.countryCode, in main()
/third_party/libphonenumber/migrator/migrator-servlet/src/main/java/com/google/phonenumbers/
DServletMain.java65 String countryCode = ""; in doPost() local
80 countryCode = Streams.asString(in); in doPost()
105 if (!number.isEmpty() && !countryCode.isEmpty()) { in doPost()
111 req.setAttribute("numberCountryCode", countryCode); in doPost()
113 handleSingleNumberMigration(req, resp, number, countryCode, customRecipe); in doPost()
115 } else if (!file.isEmpty() && !countryCode.isEmpty()) { in doPost()
122 handleFileMigration(req, resp, numbersFromFile.build(), countryCode, customRecipe, fileName); in doPost()
157 String countryCode, in handleSingleNumberMigration() argument
161 if (customRecipe.isEmpty() && LARGE_COUNTRY_RANGES.contains(countryCode)) { in handleSingleNumberMigration()
162 …req.setAttribute("numberError", "'+" + countryCode + "' migrations cannot be performed using this … in handleSingleNumberMigration()
[all …]
/third_party/libphonenumber/migrator/src/test/java/com/google/phonenumbers/migrator/
DMigrationFactoryTest.java52 String countryCode = "44"; in createFromFilePath_validPathLocation_expectValidFields() local
53 …MigrationJob mj = MigrationFactory.createCustomRecipeMigration(fileLocation, countryCode, Migratio… in createFromFilePath_validPathLocation_expectValidFields()
59 assertThat(mj.getCountryCode().toString()).matches(countryCode); in createFromFilePath_validPathLocation_expectValidFields()
82 String countryCode = "1"; in createFromNumberString_validNumberFormat_expectValidFields() local
83 …MigrationJob mj = MigrationFactory.createCustomRecipeMigration(numberString, countryCode, Migratio… in createFromNumberString_validNumberFormat_expectValidFields()
89 assertThat(mj.getCountryCode().toString()).matches(countryCode); in createFromNumberString_validNumberFormat_expectValidFields()
DMigrationJobTest.java254 for (String countryCode : sampleNumberLists.keySet()) { in standardMigrations_testingEveryInternalRecipe_expectValidMigrations()
255 …job = MigrationFactory.createMigration(sampleNumberLists.get(countryCode), countryCode, /* exportI… in standardMigrations_testingEveryInternalRecipe_expectValidMigrations()
263 Assert.fail("Regarding country code '" + countryCode + "' recipes\n\n" + e.getMessage()); in standardMigrations_testingEveryInternalRecipe_expectValidMigrations()
273 DigitSequence countryCode, in createMockJobFromTestRecipes() argument
287 return new MigrationJob(numberRanges, countryCode, recipes, ranges, exportInvalidMigrations); in createMockJobFromTestRecipes()
301 for (DigitSequence countryCode : recipes.getValues(RecipesTableSchema.COUNTRY_CODE)) { in getSampleNumberListsForAllMigratableCountries()
303 …= RecipesTableSchema.toRangeTable(recipes).getRanges(RecipesTableSchema.COUNTRY_CODE, countryCode); in getSampleNumberListsForAllMigratableCountries()
309 sampleNumberLists.put(countryCode.toString(), numberList.build()); in getSampleNumberListsForAllMigratableCountries()
DCommandLineMainTest.java62 assertThat(p.countryCode).matches(TEST_COUNTRY_CODE); in createFromNumberString_expectSufficientArguments()
72 assertThat(p.countryCode).matches(TEST_COUNTRY_CODE); in createFromPath_expectSufficientArguments()
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/util/
DLocaleNameProviderICU.java21 public String getDisplayCountry(String countryCode, Locale locale) { in getDisplayCountry() argument
22 countryCode = AsciiUtil.toUpperString(countryCode); in getDisplayCountry()
24 .regionDisplayName(countryCode); in getDisplayCountry()
25 if (disp == null || disp.length() == 0 || disp.equals(countryCode)) { in getDisplayCountry()
/third_party/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/buildtools/
DGeneratePhonePrefixData.java189 private List<File> createOutputFiles(File countryCodeFile, int countryCode, String language) in createOutputFiles() argument
193 if (countryCode == NANPA_COUNTRY_CODE) { in createOutputFiles()
207 outputFiles.add(ioHandler.createFile(generateBinaryFilename(countryCode, language))); in createOutputFiles()
224 String countryCode = filename.substring(0, indexOfDot); in getCountryCodeFromTextFileName() local
225 return Integer.parseInt(countryCode); in getCountryCodeFromTextFileName()
395 int countryCode = getCountryCodeFromTextFileName(inputTextFile.getName()); in makeDataFallbackToEnglish() local
396 SortedMap<Integer, String> englishMap = englishMaps.get(countryCode); in makeDataFallbackToEnglish()
402 englishMaps.put(countryCode, englishMap); in makeDataFallbackToEnglish()
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil.js2414 var countryCode = number.getCountryCodeOrDefault();
2415 if (!this.hasValidCountryCallingCode_(countryCode)) {
2443 if (countryCode == i18n.phonenumbers.PhoneNumberUtil.NANPA_COUNTRY_CODE_) {
2445 return countryCode + ' ' + rawInput;
2448 countryCode == this.getCountryCodeForValidRegion_(regionCallingFrom)) {
2490 var regionCode = this.getRegionCodeForCountryCode(countryCode);
2494 this.getMetadataForRegionOrCallingCode_(countryCode, regionCode);
2500 return internationalPrefixForFormatting + ' ' + countryCode + ' ' +
2507 countryCode, i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL,
3084 var countryCode = number.getCountryCodeOrDefault();
[all …]
Dasyoutypeformatter.js1001 var countryCode = this.phoneUtil_.extractCountryCode(
1003 if (countryCode == 0) {
1009 var newRegionCode = this.phoneUtil_.getRegionCodeForCountryCode(countryCode);
1013 this.phoneUtil_.getMetadataForNonGeographicalRegion(countryCode);
1018 var countryCodeString = '' + countryCode;
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java1793 int countryCode = number.getCountryCode();
1794 if (!hasValidCountryCallingCode(countryCode)) {
1814 if (countryCode == NANPA_COUNTRY_CODE) {
1816 return countryCode + " " + rawInput;
1819 && countryCode == getCountryCodeForValidRegion(regionCallingFrom)) {
1852 String regionCode = getRegionCodeForCountryCode(countryCode);
1854 PhoneMetadata metadataForRegion = getMetadataForRegionOrCallingCode(countryCode, regionCode);
1858 formattedNumber.insert(0, " ").insert(0, countryCode).insert(0, " ")
1869 prefixNumberWithCountryCallingCode(countryCode,
2368 int countryCode = number.getCountryCode();
[all …]
DAsYouTypeFormatter.java607 int countryCode = phoneUtil.extractCountryCode(nationalNumber, numberWithoutCountryCallingCode); in attemptToExtractCountryCallingCode() local
608 if (countryCode == 0) { in attemptToExtractCountryCallingCode()
613 String newRegionCode = phoneUtil.getRegionCodeForCountryCode(countryCode); in attemptToExtractCountryCallingCode()
615 currentMetadata = phoneUtil.getMetadataForNonGeographicalRegion(countryCode); in attemptToExtractCountryCallingCode()
619 String countryCodeString = Integer.toString(countryCode); in attemptToExtractCountryCallingCode()
DPhoneNumberMatcher.java465 String countryCode = Integer.toString(number.getCountryCode()); in allNumberGroupsRemainGrouped() local
466 fromIndex = normalizedCandidate.indexOf(countryCode) + countryCode.length(); in allNumberGroupsRemainGrouped()
/third_party/node/deps/icu-small/source/i18n/
Dtzgnames.cpp542 char countryCode[ULOC_COUNTRY_CAPACITY]; in getGenericLocationName() local
544 …2_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_… in getGenericLocationName()
545 countryCode[ccLen] = 0; in getGenericLocationName()
548 fLocaleDisplayNames->regionDisplayName(countryCode, country); in getGenericLocationName()
785 char countryCode[ULOC_COUNTRY_CAPACITY]; in getPartialLocationName() local
787 …2_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_… in getPartialLocationName()
788 countryCode[ccLen] = 0; in getPartialLocationName()
791 fTimeZoneNames->getReferenceZoneID(mzID, countryCode, regionalGolden); in getPartialLocationName()
794 fLocaleDisplayNames->regionDisplayName(countryCode, location); in getPartialLocationName()
/third_party/icu/icu4c/source/i18n/
Dtzgnames.cpp542 char countryCode[ULOC_COUNTRY_CAPACITY]; in getGenericLocationName() local
544 …2_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_… in getGenericLocationName()
545 countryCode[ccLen] = 0; in getGenericLocationName()
548 fLocaleDisplayNames->regionDisplayName(countryCode, country); in getGenericLocationName()
785 char countryCode[ULOC_COUNTRY_CAPACITY]; in getPartialLocationName() local
787 …2_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_… in getPartialLocationName()
788 countryCode[ccLen] = 0; in getPartialLocationName()
791 fTimeZoneNames->getReferenceZoneID(mzID, countryCode, regionalGolden); in getPartialLocationName()
794 fLocaleDisplayNames->regionDisplayName(countryCode, location); in getPartialLocationName()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DTimeZoneGenericNames.java243 String countryCode = ZoneMeta.getCanonicalCountry(canonicalTzID, isPrimary); in getGenericLocationName() local
244 if (countryCode != null) { in getGenericLocationName()
247 String country = getLocaleDisplayNames().regionDisplayName(countryCode); in getGenericLocationName()
553 String countryCode = ZoneMeta.getCanonicalCountry(tzID); in getPartialLocationName() local
554 if (countryCode != null) { in getPartialLocationName()
556 String regionalGolden = _tznames.getReferenceZoneID(mzID, countryCode); in getPartialLocationName()
559 location = getLocaleDisplayNames().regionDisplayName(countryCode); in getPartialLocationName()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTimeZoneGenericNames.java239 String countryCode = ZoneMeta.getCanonicalCountry(canonicalTzID, isPrimary); in getGenericLocationName() local
240 if (countryCode != null) { in getGenericLocationName()
243 String country = getLocaleDisplayNames().regionDisplayName(countryCode); in getGenericLocationName()
549 String countryCode = ZoneMeta.getCanonicalCountry(tzID); in getPartialLocationName() local
550 if (countryCode != null) { in getPartialLocationName()
552 String regionalGolden = _tznames.getReferenceZoneID(mzID, countryCode); in getPartialLocationName()
555 location = getLocaleDisplayNames().regionDisplayName(countryCode); in getPartialLocationName()
/third_party/skia/third_party/externals/icu/source/i18n/
Dtzgnames.cpp545 char countryCode[ULOC_COUNTRY_CAPACITY]; in getGenericLocationName() local
547 …2_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_… in getGenericLocationName()
548 countryCode[ccLen] = 0; in getGenericLocationName()
551 fLocaleDisplayNames->regionDisplayName(countryCode, country); in getGenericLocationName()
788 char countryCode[ULOC_COUNTRY_CAPACITY]; in getPartialLocationName() local
790 …2_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_… in getPartialLocationName()
791 countryCode[ccLen] = 0; in getPartialLocationName()
794 fTimeZoneNames->getReferenceZoneID(mzID, countryCode, regionalGolden); in getPartialLocationName()
797 fLocaleDisplayNames->regionDisplayName(countryCode, location); in getPartialLocationName()
/third_party/libphonenumber/migrator/
DREADME.md23 ```-c, --countryCode``` - the BCP-47 country code that corresponds to the given phone number input.…
62 To perform a single number migration, the “countryCode” and “number” arguments must be specified. T…
67 java -jar migrator-1.0.0-jar-with-dependencies.jar --countryCode=84 --number=+841201234567
77 java -jar migrator-1.0.0-jar-with-dependencies.jar --countryCode=84 --number=+84(70)123-4567
87 java -jar migrator-1.0.0-jar-with-dependencies.jar --countryCode=84 --number=”+44 77 12345 678”
96 To perform a file migration, the “countryCode” and “file” arguments must be specified. The tool wil…
111 java -jar migrator-1.0.0-jar-with-dependencies.jar --countryCode=84 --file=../VietnamNumbers.txt
130 java -jar migrator-1.0.0-jar-with-dependencies.jar --countryCode=1 --file=../VietnamNumbers.txt
175 java -jar migrator-1.0.0-jar-with-dependencies.jar --countryCode=84 --file=../VietnamNums.txt
194 java -jar migrator-1.0.0-jar-with-dependencies.jar --countryCode=84 --file=../VietnamNums.txt --exp…
[all …]
/third_party/node/deps/npm/node_modules/socks/docs/examples/typescript/
DconnectExample.md56 "countryCode":"US",
117 "countryCode":"US",
182 "countryCode":"US",
242 "countryCode":"US",
/third_party/node/deps/npm/node_modules/socks/docs/examples/javascript/
DconnectExample.md56 "countryCode":"US",
116 "countryCode":"US",
180 "countryCode":"US",
239 "countryCode":"US",
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DBuildMetadataFromXml.java146 int countryCode = metadata.getCountryCode(); in buildCountryCodeToRegionCodeMap() local
147 if (countryCodeToRegionCodeMap.containsKey(countryCode)) { in buildCountryCodeToRegionCodeMap()
149 countryCodeToRegionCodeMap.get(countryCode).add(0, regionCode); in buildCountryCodeToRegionCodeMap()
151 countryCodeToRegionCodeMap.get(countryCode).add(regionCode); in buildCountryCodeToRegionCodeMap()
159 countryCodeToRegionCodeMap.put(countryCode, listWithRegionCode); in buildCountryCodeToRegionCodeMap()

12