/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | GenerateAliases.java | 48 for (String localeID : available) { in Builder() 49 String targetID = getDefaultContents(localeID); in Builder() 51 targetID = localeID; in Builder() 53 addAlias("deprecated", localeID, targetID); in Builder() 55 if (localeID.startsWith("sr_Latn")) { in Builder() 56 addAlias("deprecated", "sh" + localeID.substring(7), localeID); in Builder() 76 String localeID = small2large.getKey(); in Builder() local 78 if (localeID.equals(targetID)) { in Builder() 81 String base = ltp.set(localeID).getLanguage(); in Builder() 88 if (available.contains(localeID) && !isWholeAlias(factory, localeID)) { in Builder() [all …]
|
D | GenerateStatistics.java | 68 String localeID = it.next(); in generateSize() local 69 if (CLDRFile.isSupplementalName(localeID)) continue; in generateSize() 70 if (localeID.equals("root")) in generateSize() 72 System.out.println("Collecting info for:\t" + localeID.replace("_", "\t")); in generateSize() 76 addCounts(localeID, true, draftLanguages, in generateSize() 81 addCounts(localeID, false, languages, in generateSize() 132 String localeID = it.next(); in removeSingleLanguagesWhereWeHaveScripts() local 133 if (CLDRFile.isSupplementalName(localeID)) { in removeSingleLanguagesWhereWeHaveScripts() 137 String lang = ltp.set(localeID).getLanguage(); in removeSingleLanguagesWhereWeHaveScripts() 138 String territory = ltp.set(localeID).getRegion(); in removeSingleLanguagesWhereWeHaveScripts() [all …]
|
D | PivotData.java | 107 public int writePivot(String localeID) throws IOException { in writePivot() argument 110 CLDRFile me = factory.make(localeID, false); in writePivot() 112 throw new IllegalArgumentException("File cannot be completely aliased: " + localeID); in writePivot() 114 String parentID = LocaleIDParser.getParent(localeID); in writePivot() 116 … if (DEBUG) System.out.format("LocaleID: %s, %s" + CldrUtility.LINE_SEPARATOR, localeID, parentID); in writePivot() 124 throw new IllegalArgumentException("File cannot be completely aliased: " + localeID); in writePivot() 143 … throw new IllegalArgumentException("Mismatched casing: " + localeID + ", " + parentID + " For:" in writePivot() 154 …m.out.format("LocaleID: %s is EMPTY, no changes necessary" + CldrUtility.LINE_SEPARATOR, localeID); in writePivot() 159 Set<String> siblings = lidp.set(localeID).getSiblings(factory.getAvailable()); in writePivot() 160 siblings.remove(localeID); // remove myself in writePivot() [all …]
|
/external/icu/icu4c/source/common/ |
D | uloc.cpp | 59 locale_getKeywords(const char *localeID, 531 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1) 542 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument 543 int32_t localeIDLength = static_cast<int32_t>(uprv_strlen(localeID)); in getShortestSubtagLength() 550 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength() 577 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument 579 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart() 590 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart() 653 _getKeywords(const char *localeID, in _getKeywords() argument 666 const char* pos = localeID; in _getKeywords() [all …]
|
D | loclikely.cpp | 43 findLikelySubtags(const char* localeID, in findLikelySubtags() argument 55 s = ures_getStringByKey(subtags, localeID, &resLen, &tmpErr); in findLikelySubtags() 467 const char* localeID, in parseTagString() argument 476 const char* position = localeID; in parseTagString() 480 localeID == NULL || in parseTagString() 566 return (int32_t)(position - localeID); in parseTagString() 854 _uloc_addLikelySubtags(const char* localeID, in _uloc_addLikelySubtags() argument 873 else if (localeID == NULL || in _uloc_addLikelySubtags() 880 localeID, in _uloc_addLikelySubtags() 898 while (_isIDSeparator(localeID[trailingIndex])) { in _uloc_addLikelySubtags() [all …]
|
D | ulocimp.h | 50 ulocimp_getLanguage(const char *localeID, 55 ulocimp_getScript(const char *localeID, 60 ulocimp_getCountry(const char *localeID, 91 char* localeID, 122 ulocimp_getRegionForSupplementalData(const char *localeID, UBool inferRegion, 126 locale_getKeywordsStart(const char *localeID);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | ResourceBundleWrapper.java | 33 private String localeID = null; field in ResourceBundleWrapper 97 return localeID; in getLocaleID() 107 return new ULocale(localeID); in getULocale() 119 public static ResourceBundleWrapper getBundleInstance(String baseName, String localeID, in getBundleInstance() argument 126 b = instantiateBundle(baseName, localeID, null, root, disableFallback); in getBundleInstance() 128 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(), in getBundleInstance() 136 …row new MissingResourceException("Could not find the bundle "+ baseName+separator+ localeID,"",""); in getBundleInstance() 141 private static boolean localeIDStartsWithLangSubtag(String localeID, String lang) { in localeIDStartsWithLangSubtag() argument 142 return localeID.startsWith(lang) && in localeIDStartsWithLangSubtag() 143 (localeID.length() == lang.length() || localeID.charAt(lang.length()) == '_'); in localeIDStartsWithLangSubtag() [all …]
|
D | ICUResourceBundle.java | 60 WholeBundle(String baseName, String localeID, ClassLoader loader, in WholeBundle() argument 63 this.localeID = localeID; in WholeBundle() 64 this.ulocale = new ULocale(localeID); in WholeBundle() 70 String localeID; field in ICUResourceBundle.WholeBundle 1106 public static ICUResourceBundle getBundleInstance(String baseName, String localeID, 1108 return getBundleInstance(baseName, localeID, root, 1121 public static ICUResourceBundle getBundleInstance(String baseName, String localeID, 1126 localeID = ULocale.getBaseName(localeID); 1129 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(), 1132 b = instantiateBundle(baseName, localeID, null, root, openType); [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ResourceBundleWrapper.java | 31 private String localeID = null; field in ResourceBundleWrapper 95 return localeID; in getLocaleID() 105 return new ULocale(localeID); in getULocale() 117 public static ResourceBundleWrapper getBundleInstance(String baseName, String localeID, in getBundleInstance() argument 124 b = instantiateBundle(baseName, localeID, null, root, disableFallback); in getBundleInstance() 126 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(), in getBundleInstance() 134 …row new MissingResourceException("Could not find the bundle "+ baseName+separator+ localeID,"",""); in getBundleInstance() 139 private static boolean localeIDStartsWithLangSubtag(String localeID, String lang) { in localeIDStartsWithLangSubtag() argument 140 return localeID.startsWith(lang) && in localeIDStartsWithLangSubtag() 141 (localeID.length() == lang.length() || localeID.charAt(lang.length()) == '_'); in localeIDStartsWithLangSubtag() [all …]
|
D | ICUResourceBundle.java | 56 WholeBundle(String baseName, String localeID, ClassLoader loader, in WholeBundle() argument 59 this.localeID = localeID; in WholeBundle() 60 this.ulocale = new ULocale(localeID); in WholeBundle() 66 String localeID; field in ICUResourceBundle.WholeBundle 1098 public static ICUResourceBundle getBundleInstance(String baseName, String localeID, 1100 return getBundleInstance(baseName, localeID, root, 1113 public static ICUResourceBundle getBundleInstance(String baseName, String localeID, 1118 localeID = ULocale.getBaseName(localeID); 1121 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(), 1124 b = instantiateBundle(baseName, localeID, null, root, openType); [all …]
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | CasingInfo.java | 75 public Map<Category, CasingTypeAndErrFlag> getLocaleCasing(String localeID) { in getLocaleCasing() argument 79 if (!casing.containsKey(localeID)) { in getLocaleCasing() 82 CasingHandler handler = loadFromXml(localeID); in getLocaleCasing() 86 if (!casing.containsKey(localeID)) { in getLocaleCasing() 87 String parentID = LocaleIDParser.getSimpleParent(localeID); in getLocaleCasing() 89 casing.put(localeID, getLocaleCasing(parentID)); in getLocaleCasing() 95 return casing.get(localeID); in getLocaleCasing() 104 private CasingHandler loadFromXml(String localeID) { in loadFromXml() argument 106 File casingFile = new File(casingDir, localeID + ".xml"); in loadFromXml() 131 for (String localeID : locales) { in generateCasingInformation() [all …]
|
D | EmojiSubdivisionNames.java | 44 public static Map<String, String> getSubdivisionIdToName(String localeID) { in getSubdivisionIdToName() argument 45 Map<String,String> result = localeToSubdivisionIdToName.get(localeID); in getSubdivisionIdToName() 47 load(localeID); in getSubdivisionIdToName() 48 result = localeToSubdivisionIdToName.get(localeID); in getSubdivisionIdToName() 56 public static Map<String, String> getNameToSubdivisionPath(String localeID) { in getNameToSubdivisionPath() argument 57 Map<String,String> result = localeToNameToSubdivisionId.get(localeID); in getNameToSubdivisionPath() 59 load(localeID); in getNameToSubdivisionPath() 60 result = localeToNameToSubdivisionId.get(localeID); in getNameToSubdivisionPath() 68 private static void load(String localeID) { in load() argument 73 String fileName = localeID + ".xml"; in load() [all …]
|
D | ConsoleCheckCLDR.java | 473 for (String localeID : locales) { in main() 474 if (CLDRFile.isSupplementalName(localeID)) continue; in main() 475 if (supplementalDataInfo.getDefaultContentLocales().contains(localeID)) { in main() 476 System.out.println("# Skipping default content locale: " + localeID); in main() 481 if (specialPurposeLocales.contains(localeID)) { in main() 482 System.out.println("# Skipping special purpose locale: " + localeID); in main() 486 … boolean isLanguageLocale = localeID.equals(localeIDParser.set(localeID).getLanguageScript()); in main() 501 level = locale_status.get(localeID); in main() 524 file = cldrFactory.make(localeID, true); in main() 526 ErrorFile.voteFile = ErrorFile.voteFactory.make(localeID, true); in main() [all …]
|
D | CheckCoverage.java | 118 final String localeID = cldrFileToCheck.getLocaleID(); in setCldrFileToCheck() local 119 if (localeID.equals(new LanguageTagParser().set(localeID).getLanguageScript())) { in setCldrFileToCheck() 121 coverageLevel = CoverageLevel2.getInstance(supplementalData, localeID); in setCldrFileToCheck() 122 PluralInfo pluralInfo = supplementalData.getPlurals(PluralType.cardinal, localeID); in setCldrFileToCheck() 133 if (localeID.equals("root")) return this; in setCldrFileToCheck() 135 requiredLevel = options.getRequiredLevel(localeID); in setCldrFileToCheck()
|
/external/icu/icu4c/source/common/unicode/ |
D | uloc.h | 395 uloc_setDefault(const char* localeID, 412 uloc_getLanguage(const char* localeID, 430 uloc_getScript(const char* localeID, 448 uloc_getCountry(const char* localeID, 466 uloc_getVariant(const char* localeID, 489 uloc_getName(const char* localeID, 512 uloc_canonicalize(const char* localeID, 525 uloc_getISO3Language(const char* localeID); 536 uloc_getISO3Country(const char* localeID); 550 uloc_getLCID(const char* localeID); [all …]
|
/external/icu/libandroidicu/include/unicode/ |
D | uloc.h | 395 uloc_setDefault(const char* localeID, 412 uloc_getLanguage(const char* localeID, 430 uloc_getScript(const char* localeID, 448 uloc_getCountry(const char* localeID, 466 uloc_getVariant(const char* localeID, 489 uloc_getName(const char* localeID, 512 uloc_canonicalize(const char* localeID, 525 uloc_getISO3Language(const char* localeID); 536 uloc_getISO3Country(const char* localeID); 550 uloc_getLCID(const char* localeID); [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | ULocale.java | 289 private String localeID; field in ULocale 371 private ULocale(String localeID, Locale locale) { in ULocale() argument 372 this.localeID = localeID; in ULocale() 381 this.localeID = getName(forLocale(loc).toString()); in ULocale() 416 public ULocale(String localeID) { in ULocale() argument 417 this.localeID = getName(localeID); in ULocale() 449 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale() 682 return localeID.hashCode(); in hashCode() 699 return localeID.equals(((ULocale)obj).localeID); in equals() 825 public static String getLanguage(String localeID) { in getLanguage() argument [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | ULocale.java | 327 private String localeID; field in ULocale 409 private ULocale(String localeID, Locale locale) { in ULocale() argument 410 this.localeID = localeID; in ULocale() 419 this.localeID = getName(forLocale(loc).toString()); in ULocale() 456 public ULocale(String localeID) { in ULocale() argument 457 this.localeID = getName(localeID); in ULocale() 491 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale() 730 return localeID.hashCode(); in hashCode() 748 return localeID.equals(((ULocale)obj).localeID); in equals() 881 public static String getLanguage(String localeID) { in getLanguage() argument [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
D | ULocale.java | 283 private String localeID; field in ULocale 386 private ULocale(String localeID, Locale locale) { in ULocale() argument 387 this.localeID = localeID; in ULocale() 396 this.localeID = getName(forLocale(loc).toString()); in ULocale() 438 public ULocale(String localeID) { in ULocale() argument 439 this.localeID = getName(localeID); in ULocale() 473 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale() 696 return localeID.hashCode(); in hashCode() 713 return localeID.equals((String)obj); in equals() 716 return localeID.equals(((ULocale)obj).localeID); in equals() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | Factory.java | 52 public final File getSourceDirectoryForLocale(String localeID) { in getSourceDirectoryForLocale() argument 53 List<File> temp = getSourceDirectoriesForLocale(localeID); in getSourceDirectoryForLocale() 104 …protected abstract CLDRFile handleMake(String localeID, boolean resolved, DraftStatus madeWithMini… in handleMake() argument 106 … public CLDRFile make(String localeID, boolean resolved, DraftStatus madeWithMinimalDraftStatus) { in make() argument 107 return handleMake(localeID, resolved, madeWithMinimalDraftStatus) in make() 111 public CLDRFile make(String localeID, boolean resolved, boolean includeDraft) { in make() argument 112 … return make(localeID, resolved, includeDraft ? DraftStatus.unconfirmed : DraftStatus.approved); in make() 115 public CLDRFile make(String localeID, boolean resolved) { in make() argument 116 return make(localeID, resolved, getMinimalDraftStatus()); in make() 119 public CLDRFile makeWithFallback(String localeID) { in makeWithFallback() argument [all …]
|
D | VettingViewer.java | 733 …public void generateHtmlErrorTables(Appendable output, EnumSet<Choice> choices, String localeID, T… in generateHtmlErrorTables() argument 741 CLDRFile sourceFile = cldrFactory.make(localeID, true); in generateHtmlErrorTables() 747 lastSourceFile = cldrFactoryOld.make(localeID, true); in generateHtmlErrorTables() 752 …new FileInfo().getFileInfo(sourceFile, lastSourceFile, sorted, choices, localeID, nonVettingPhase,… in generateHtmlErrorTables() 756 …writeTables(output, sourceFile, lastSourceFile, sorted, choices, localeID, nonVettingPhase, fileIn… in generateHtmlErrorTables() 770 …ngInfo> generateFileInfoReview(Appendable output, EnumSet<Choice> choices, String localeID, T user, in generateFileInfoReview() argument 778 CLDRFile sourceFile = cldrFactory.make(localeID, true); in generateFileInfoReview() 784 lastSourceFile = cldrFactoryOld.make(localeID, true); in generateFileInfoReview() 789 …new FileInfo().getFileInfo(sourceFile, lastSourceFile, sorted, choices, localeID, nonVettingPhase,… in generateFileInfoReview() 811 EnumSet<Choice> choices, String localeID, boolean nonVettingPhase, in getFileInfo() argument [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | winnmtst.cpp | 234 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestL… in testLocale() argument 251 UnicodeString locale(localeID); in testLocale() 259 UnicodeString locale(localeID); in testLocale() 267 UnicodeString locale(localeID); in testLocale() 282 char localeID[128]; in testLocales() local 285 if (lcidRecords[i].localeID == NULL) { in testLocales() 304 strcpy(localeID, lcidRecords[i].localeID); in testLocales() 306 if (strchr(localeID, '@') > 0) { in testLocales() 307 strcat(localeID, ";"); in testLocales() 309 strcat(localeID, "@"); in testLocales() [all …]
|
D | winutil.cpp | 42 char localeID[ULOC_FULLNAME_CAPACITY]; in EnumLocalesProc() local 60 …localeIDLen = uprv_convertToPosix(lcidRecords[lcidCount].lcid, localeID, UPRV_LENGTHOF(localeID), … in EnumLocalesProc() 62 lcidRecords[lcidCount].localeID = new char[localeIDLen + 1]; in EnumLocalesProc() 63 memcpy(lcidRecords[lcidCount].localeID, localeID, localeIDLen); in EnumLocalesProc() 64 lcidRecords[lcidCount].localeID[localeIDLen] = 0; in EnumLocalesProc() 66 lcidRecords[lcidCount].localeID = NULL; in EnumLocalesProc() 93 delete lcidRecords[i].localeID; in freeLocales()
|
D | windttst.cpp | 122 if (lcidRecords[i].localeID == NULL) { in testLocales() 145 char localeID[64]; in testLocales() local 147 uprv_strcpy(localeID, lcidRecords[i].localeID); in testLocales() 148 uprv_strcat(localeID, getCalendarType(calType)); in testLocales() 151 Locale ulocale(localeID); in testLocales() 157 if (uprv_strchr(localeID, '@') > 0) { in testLocales() 158 uprv_strcat(localeID, ";"); in testLocales() 160 uprv_strcat(localeID, "@"); in testLocales() 163 uprv_strcat(localeID, "compat=host"); in testLocales() 165 Locale wlocale(localeID); in testLocales()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestFactory.java | 25 final String localeID = testFile.getLocaleID(); in addFile() local 26 unresolved.put(localeID, testFile); in addFile() 27 …org.unicode.cldr.util.XMLSource.ResolvingSource rs = makeResolvingSource(localeID, DraftStatus.unc… in addFile() 29 resolved.put(localeID, resolvedFile); in addFile() 38 public List<File> getSourceDirectoriesForLocale(String localeID) { in getSourceDirectoriesForLocale() argument 43 …protected CLDRFile handleMake(String localeID, boolean isResolved, DraftStatus madeWithMinimalDraf… in handleMake() argument 44 return isResolved ? resolved.get(localeID) : unresolved.get(localeID); in handleMake()
|