/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | GenerateLanguageData.java | 60 for (String languageCode : all) { in main() 61 xpp.setAttribute(-1, LDMLConstants.TYPE, languageCode); in main() 64 Set<String> names = Iso639Data.getNames(languageCode); in main() 66 newEn.add(xpp.toString(), oldEn.getName(languageCode)); in main() 71 !oldValue.equals(languageCode)) { in main() 89 for (String languageCode : languageCodes) { in main() 90 Set<String> suffixes = Iso639Data.getEncompassedForMacro(languageCode); in main() 103 languageCode in main() 104 + "\t" + (bcp47languages.contains(languageCode) ? "4646" : "new") in main() 105 …+ "\t" + Iso639Data.getNames(languageCode).iterator().next() // Utility.join(iso639Data.getNames(l… in main() [all …]
|
D | ConvertLanguageData.java | 291 ltp.set(rowData.languageCode); in writeNewBasicData2() 292 String languageCode = ltp.getLanguage(); in writeNewBasicData2() local 293 …BasicLanguageData.Type, String> status_territories = language_status_territories.get(languageCode); in writeNewBasicData2() 295 language_status_territories.put(languageCode, status_territories = Relation.of( in writeNewBasicData2() 588 private final String languageCode; field in ConvertLanguageData.RowData 603 this.languageCode = language; in RowData() 645 languageCode = fixLanguageCode(languageCode1, row); in RowData() 658 …how("official language has population < 1% of country & < 1,000,000", languageCode + ", " + Math.r… in RowData() 662 …BadItem.WARNING.show("suspect language population, < 1", languageCode + ", " + Math.round(language… in RowData() 705 + (showLang ? "\t" + languageCode + "\t" + getLanguageName(languageCode) : "") in showDiff() [all …]
|
D | ShowLanguages.java | 1234 …for (String languageCode : supplementalDataInfo.getLanguagesForTerritoryWithPopulationData(territo… in showLanguageCountryInfo() 1235 …uageData = supplementalDataInfo.getLanguageAndTerritoryPopulationData(languageCode, territoryCode); in showLanguageCountryInfo() 1236 languages.add(languageCode); in showLanguageCountryInfo() 1238 getFirstPrimaryWeight(getLanguageName(languageCode)), in showLanguageCountryInfo() 1239 … getLanguageName(languageCode), // + getLanguagePluralMessage(msg, languageCode), in showLanguageCountryInfo() 1240 languageCode, in showLanguageCountryInfo() 1242 territoryName + getOfficialStatus(territoryCode, languageCode), in showLanguageCountryInfo() 1251 … getLanguageName(languageCode), // + getLanguagePluralMessage(msg, languageCode), in showLanguageCountryInfo() 1252 languageCode, in showLanguageCountryInfo() 1255 getRawOfficialStatus(territoryCode, languageCode), in showLanguageCountryInfo() [all …]
|
/external/libphonenumber/repackaged/geocoder/src/com/android/i18n/phonenumbers/geocoding/ |
D | PhoneNumberOfflineGeocoder.java | 115 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode) { in getDescriptionForValidNumber() argument 116 String langStr = languageCode.getLanguage(); in getDescriptionForValidNumber() 118 String regionStr = languageCode.getCountry(); in getDescriptionForValidNumber() 142 ? areaDescription : getCountryNameForNumber(number, languageCode); in getDescriptionForValidNumber() 167 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode, in getDescriptionForValidNumber() argument 174 return getDescriptionForValidNumber(number, languageCode); in getDescriptionForValidNumber() 177 return getRegionDisplayName(regionCode, languageCode); in getDescriptionForValidNumber() 192 public String getDescriptionForNumber(PhoneNumber number, Locale languageCode) { in getDescriptionForNumber() argument 197 return getCountryNameForNumber(number, languageCode); in getDescriptionForNumber() 199 return getDescriptionForValidNumber(number, languageCode); in getDescriptionForNumber() [all …]
|
/external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/ |
D | PhoneNumberOfflineGeocoder.java | 112 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode) { in getDescriptionForValidNumber() argument 113 String langStr = languageCode.getLanguage(); in getDescriptionForValidNumber() 115 String regionStr = languageCode.getCountry(); in getDescriptionForValidNumber() 139 ? areaDescription : getCountryNameForNumber(number, languageCode); in getDescriptionForValidNumber() 164 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode, in getDescriptionForValidNumber() argument 171 return getDescriptionForValidNumber(number, languageCode); in getDescriptionForValidNumber() 174 return getRegionDisplayName(regionCode, languageCode); in getDescriptionForValidNumber() 188 public String getDescriptionForNumber(PhoneNumber number, Locale languageCode) { in getDescriptionForNumber() argument 193 return getCountryNameForNumber(number, languageCode); in getDescriptionForNumber() 195 return getDescriptionForValidNumber(number, languageCode); in getDescriptionForNumber() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | LocalePriorityList.java | 86 public static Builder add(ULocale... languageCode) { in add() argument 87 return new Builder().add(languageCode); in add() 98 public static Builder add(ULocale languageCode, final double weight) { in add() argument 99 return new Builder().add(languageCode, weight); in add() 285 public Builder add(final ULocale languageCode) { in add() argument 286 return add(languageCode, D1); in add() 297 for (final ULocale languageCode : languageCodes) { in add() 298 add(languageCode, D1); in add() 312 public Builder add(final ULocale languageCode, in add() argument 314 if (languageToWeight.containsKey(languageCode)) { in add() [all …]
|
D | LocaleMatcher.java | 260 private ULocale getBestMatchInternal(ULocale languageCode, OutputDouble outputWeight) { in getBestMatchInternal() argument 261 languageCode = canonicalize(languageCode); in getBestMatchInternal() 262 final ULocale maximized = addLikelySubtags(languageCode); in getBestMatchInternal() 264 System.out.println("\ngetBestMatchInternal: " + languageCode + ";\t" + maximized); in getBestMatchInternal() 276 final double match = match(languageCode, maximized, tableKey, maxLocale); in getBestMatchInternal() 363 private ULocale addLikelySubtags(ULocale languageCode) { in addLikelySubtags() argument 371 if (languageCode.equals(UNKNOWN_LOCALE)) { in addLikelySubtags() 374 final ULocale result = ULocale.addLikelySubtags(languageCode); in addLikelySubtags() 376 if (result == null || result.equals(languageCode)) { in addLikelySubtags() 377 final String language = languageCode.getLanguage(); in addLikelySubtags() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | LocalePriorityList.java | 86 public static Builder add(ULocale... languageCode) { in add() argument 87 return new Builder().add(languageCode); in add() 97 public static Builder add(ULocale languageCode, final double weight) { in add() argument 98 return new Builder().add(languageCode, weight); in add() 273 public Builder add(final ULocale languageCode) { in add() argument 274 return add(languageCode, D1); in add() 284 for (final ULocale languageCode : languageCodes) { in add() 285 add(languageCode, D1); in add() 298 public Builder add(final ULocale languageCode, in add() argument 300 if (languageToWeight.containsKey(languageCode)) { in add() [all …]
|
D | LocaleMatcher.java | 253 private ULocale getBestMatchInternal(ULocale languageCode, OutputDouble outputWeight) { in getBestMatchInternal() argument 254 languageCode = canonicalize(languageCode); in getBestMatchInternal() 255 final ULocale maximized = addLikelySubtags(languageCode); in getBestMatchInternal() 257 System.out.println("\ngetBestMatchInternal: " + languageCode + ";\t" + maximized); in getBestMatchInternal() 269 final double match = match(languageCode, maximized, tableKey, maxLocale); in getBestMatchInternal() 356 private ULocale addLikelySubtags(ULocale languageCode) { in addLikelySubtags() argument 364 if (languageCode.equals(UNKNOWN_LOCALE)) { in addLikelySubtags() 367 final ULocale result = ULocale.addLikelySubtags(languageCode); in addLikelySubtags() 369 if (result == null || result.equals(languageCode)) { in addLikelySubtags() 370 final String language = languageCode.getLanguage(); in addLikelySubtags() [all …]
|
/external/libphonenumber/carrier/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberToCarrierMapper.java | 73 public String getNameForValidNumber(PhoneNumber number, Locale languageCode) { in getNameForValidNumber() argument 74 String langStr = languageCode.getLanguage(); in getNameForValidNumber() 76 String regionStr = languageCode.getCountry(); in getNameForValidNumber() 91 public String getNameForNumber(PhoneNumber number, Locale languageCode) { in getNameForNumber() argument 94 return getNameForValidNumber(number, languageCode); in getNameForNumber() 109 public String getSafeDisplayName(PhoneNumber number, Locale languageCode) { in getSafeDisplayName() argument 113 return getNameForNumber(number, languageCode); in getSafeDisplayName()
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
D | GenerateLanguageData.java | 46 for (String languageCode : info.getLanguages()) { in run() 47 languageNameToCode.put(english.getName(languageCode), languageCode); in run() local 67 for (String languageCode : info.getLanguages()) { in run() 68 String languageName = english.getName(languageCode); in run() 70 String baseLanguage = languageCode; in run() 71 ltp.set(languageCode); in run() 77 Set<String> territories = info.getTerritoriesForPopulationData(languageCode); in run() 89 … PopulationData data = info.getLanguageAndTerritoryPopulationData(languageCode, territory); in run() 108 out.println(fixLang(languageCode) in run()
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/util/ |
D | LocaleNameProviderICU.java | 32 public String getDisplayLanguage(String languageCode, Locale locale) { in getDisplayLanguage() argument 33 languageCode = AsciiUtil.toLowerString(languageCode); in getDisplayLanguage() 35 .languageDisplayName(languageCode); in getDisplayLanguage() 36 if (disp == null || disp.length() == 0 || disp.equals(languageCode)) { in getDisplayLanguage()
|
/external/cldr/tools/java/com/ibm/icu/util/ |
D | LocaleMatcher.java | 247 private ULocale getBestMatchInternal(ULocale languageCode, OutputDouble outputWeight) { in getBestMatchInternal() argument 248 languageCode = canonicalize(languageCode); in getBestMatchInternal() 249 final ULocale maximized = addLikelySubtags(languageCode); in getBestMatchInternal() 251 System.out.println("\ngetBestMatchInternal: " + languageCode + ";\t" + maximized); in getBestMatchInternal() 263 final double match = match(languageCode, maximized, tableKey, maxLocale); in getBestMatchInternal() 344 private ULocale addLikelySubtags(ULocale languageCode) { in addLikelySubtags() argument 352 if (languageCode.equals(UNKNOWN_LOCALE)) { in addLikelySubtags() 355 final ULocale result = ULocale.addLikelySubtags(languageCode); in addLikelySubtags() 357 if (result == null || result.equals(languageCode)) { in addLikelySubtags() 358 final String language = languageCode.getLanguage(); in addLikelySubtags() [all …]
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/ |
D | AndroidInterceptors.java | 167 static String adjustLanguageCode(String languageCode) { 168 String adjusted = languageCode.toLowerCase(Locale.US); 171 if (languageCode.equals("he")) { 173 } else if (languageCode.equals("id")) { 175 } else if (languageCode.equals("yi")) {
|
/external/fonttools/Lib/fontTools/designspaceLib/ |
D | __init__.py | 247 def setStyleName(self, styleName, languageCode="en"): argument 248 self.localisedStyleName[languageCode] = tounicode(styleName) 250 def getStyleName(self, languageCode="en"): argument 251 return self.localisedStyleName.get(languageCode) 253 def setFamilyName(self, familyName, languageCode="en"): argument 254 self.localisedFamilyName[languageCode] = tounicode(familyName) 256 def getFamilyName(self, languageCode="en"): argument 257 return self.localisedFamilyName.get(languageCode) 259 def setStyleMapStyleName(self, styleMapStyleName, languageCode="en"): argument 260 self.localisedStyleMapStyleName[languageCode] = tounicode(styleMapStyleName) [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/ |
D | AndroidInterceptorsTest.java | 40 private Object adjust(String languageCode) { in adjust() argument 41 return AndroidInterceptors.LocaleAdjustLanguageCodeInterceptor.adjustLanguageCode(languageCode); in adjust()
|
/external/icu/icu4c/source/test/perf/leperf/ |
D | xmlreader.cpp | 185 le_int32 languageCode = -1; in readTestFile() local 197 languageCode = getLanguageCode(lang); in readTestFile() 199 if (languageCode < 0) { in readTestFile() 244 …(*callback)(id, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCoun… in readTestFile()
|
D | xmlreader.h | 21 le_int32 languageCode,
|
/external/icu/icu4c/source/test/letest/ |
D | xmlreader.cpp | 181 le_int32 languageCode = -1; in readTestFile() local 193 languageCode = getLanguageCode(lang); in readTestFile() 195 if (languageCode < 0) { in readTestFile() 240 …(*callback)(id, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCoun… in readTestFile()
|
D | gendata.cpp | 204 le_int32 languageCode = -1; in main() local 220 languageCode = getLanguageCode(lang); in main() 222 if (languageCode < 0) { in main() 309 … engine = LayoutEngine::layoutEngineFactory(font, scriptCode, languageCode, typoFlags, leStatus); in main()
|
D | xmlreader.h | 20 le_int32 languageCode,
|
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/ |
D | MappingFileProvider.java | 166 String languageCode = findBestMatchingLanguageCode(setOfLangs, language, script, region); in getFileName() local 167 if (languageCode.length() > 0) { in getFileName() 169 fileName.append(countryCallingCode).append('_').append(languageCode); in getFileName()
|
/external/libphonenumber/repackaged/internal/prefixmapper/src/com/android/i18n/phonenumbers/prefixmapper/ |
D | MappingFileProvider.java | 168 String languageCode = findBestMatchingLanguageCode(setOfLangs, language, script, region); in getFileName() local 169 if (languageCode.length() > 0) { in getFileName() 171 fileName.append(countryCallingCode).append('_').append(languageCode); in getFileName()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | LanguageInfo.java | 53 public static LanguageInfo get(String languageCode) { in get() argument 54 return languageCodeToInfo.get(languageCode); in get()
|
/external/libphonenumber/demo/src/com/google/phonenumbers/ |
D | PhoneNumberParserServlet.java | 67 String languageCode = "en"; // Default languageCode to English if nothing is entered. in doPost() local 86 languageCode = languageEntered; in doPost() 108 Locale geocodingLocale = new Locale(languageCode, regionCode); in doPost()
|