/external/cldr/tools/java/org/unicode/cldr/util/ |
D | SimpleFactory.java | 67 private final String localeName; field in SimpleFactory.CLDRCacheKey 73 …public CLDRCacheKey(String localeName, boolean resolved, DraftStatus draftStatus, List<File> direc… in CLDRCacheKey() argument 75 this.localeName = localeName; in CLDRCacheKey() 90 … hashCode = Objects.hash(this.localeName, this.resolved, this.draftStatus, this.directories); in CLDRCacheKey() 116 if (localeName == null) { in equals() 117 if (other.localeName != null) { in equals() 120 } else if (!localeName.equals(other.localeName)) { in equals() 130 …return "[ LocaleName: " + localeName + " Resolved: " + resolved + " Draft status: " + draftStatus … in toString() 469 private final String localeName; field in SimpleFactory.NoSourceDirectoryException 471 public NoSourceDirectoryException(String localeName) { in NoSourceDirectoryException() argument [all …]
|
D | LocaleIDParser.java | 112 public static String getParent(String localeName) { in getParent() argument 114 int pos = localeName.lastIndexOf('_'); in getParent() 116 String explicitParent = sdi.getExplicitParentLocale(localeName); in getParent() 120 String truncated = localeName.substring(0, pos); in getParent() 122 int pos2 = getScriptPosition(localeName); in getParent() 124 String script = localeName.substring(pos + 1); in getParent() 132 if (localeName.equals("root") || localeName.equals(CLDRFile.SUPPLEMENTAL_NAME)) return null; in getParent() 157 public static String getSimpleParent(String localeName) { in getSimpleParent() argument 158 int pos = localeName.lastIndexOf('_'); in getSimpleParent() 160 return localeName.substring(0, pos); in getSimpleParent() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | BasicDurationFormatterFactory.java | 31 private String localeName; field in BasicDurationFormatterFactory 40 this.localeName = Locale.getDefault().toString(); in BasicDurationFormatterFactory() 120 public DurationFormatterFactory setLocale(String localeName) { in setLocale() argument 121 if (!localeName.equals(this.localeName)) { in setLocale() 122 this.localeName = localeName; in setLocale() 124 builder = builder.withLocale(localeName); in setLocale() 127 formatter = formatter.withLocale(localeName); in setLocale() 162 fallback = fallback.withLocale(localeName).withTimeZone(timeZone); in getFormatter() 180 .setLocale(localeName) in getPeriodFormatter() 194 .setLocale(localeName) in getPeriodBuilder() [all …]
|
D | BasicPeriodFormatterFactory.java | 62 private String localeName; field in BasicPeriodFormatterFactory 68 this.localeName = Locale.getDefault().toString(); in BasicPeriodFormatterFactory() 85 public PeriodFormatterFactory setLocale(String localeName) { in setLocale() argument 87 this.localeName = localeName; in setLocale() 199 return new BasicPeriodFormatter(this, localeName, getData(), in getFormatter() 214 data = ds.get(localeName); in getData()
|
D | BasicDurationFormatter.java | 23 private String localeName; field in BasicDurationFormatter 45 String localeName, 51 this.localeName = localeName; 79 if (!locName.equals(localeName)) { 101 localeName, tz);
|
D | BasicPeriodFormatter.java | 25 private String localeName; field in BasicPeriodFormatter 30 String localeName, in BasicPeriodFormatter() argument 34 this.localeName = localeName; in BasicPeriodFormatter() 49 if (!this.localeName.equals(locName)) { in withLocale()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
D | BasicDurationFormatterFactory.java | 32 private String localeName; field in BasicDurationFormatterFactory 41 this.localeName = Locale.getDefault().toString(); in BasicDurationFormatterFactory() 121 public DurationFormatterFactory setLocale(String localeName) { in setLocale() argument 122 if (!localeName.equals(this.localeName)) { in setLocale() 123 this.localeName = localeName; in setLocale() 125 builder = builder.withLocale(localeName); in setLocale() 128 formatter = formatter.withLocale(localeName); in setLocale() 163 fallback = fallback.withLocale(localeName).withTimeZone(timeZone); in getFormatter() 181 .setLocale(localeName) in getPeriodFormatter() 195 .setLocale(localeName) in getPeriodBuilder() [all …]
|
D | BasicPeriodFormatterFactory.java | 64 private String localeName; field in BasicPeriodFormatterFactory 70 this.localeName = Locale.getDefault().toString(); in BasicPeriodFormatterFactory() 87 public PeriodFormatterFactory setLocale(String localeName) { in setLocale() argument 89 this.localeName = localeName; in setLocale() 201 return new BasicPeriodFormatter(this, localeName, getData(), in getFormatter() 216 data = ds.get(localeName); in getData()
|
D | BasicDurationFormatter.java | 24 private String localeName; field in BasicDurationFormatter 46 String localeName, 52 this.localeName = localeName; 80 if (!locName.equals(localeName)) { 102 localeName, tz);
|
D | BasicPeriodFormatter.java | 26 private String localeName; field in BasicPeriodFormatter 31 String localeName, in BasicPeriodFormatter() argument 35 this.localeName = localeName; in BasicPeriodFormatter() 50 if (!this.localeName.equals(locName)) { in withLocale()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
D | ResourceBasedPeriodFormatterDataService.java | 86 public PeriodFormatterData get(String localeName) { in get() argument 88 int x = localeName.indexOf('@'); in get() 90 localeName = localeName.substring(0, x); in get() 94 if (lastLocale != null && lastLocale.equals(localeName)) { in get() 98 PeriodFormatterData ld = cache.get(localeName); in get() 100 String ln = localeName; in get() 129 ld = new PeriodFormatterData(localeName, dr); in get() 140 "Duration data not found for " + localeName, PATH, in get() 141 localeName); in get() 147 cache.put(localeName, ld); in get() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/ |
D | ResourceBasedPeriodFormatterDataService.java | 88 public PeriodFormatterData get(String localeName) { in get() argument 90 int x = localeName.indexOf('@'); in get() 92 localeName = localeName.substring(0, x); in get() 96 if (lastLocale != null && lastLocale.equals(localeName)) { in get() 100 PeriodFormatterData ld = cache.get(localeName); in get() 102 String ln = localeName; in get() 131 ld = new PeriodFormatterData(localeName, dr); in get() 142 "Duration data not found for " + localeName, PATH, in get() 143 localeName); in get() 149 cache.put(localeName, ld); in get() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | static_unisets_test.cpp | 22 void assertInSet(const UnicodeString& localeName, const UnicodeString &setName, 24 void assertInSet(const UnicodeString& localeName, const UnicodeString &setName, 74 UnicodeString localeName; in testSetCoverage() local 75 locale.getDisplayName(localeName); in testSetCoverage() 76 assertSuccess(UnicodeString("Making DFS for ") + localeName, status); in testSetCoverage() 78 #define ASSERT_IN_SET(name, foo) assertInSet(localeName, UnicodeString("" #name ""), name, foo) in testSetCoverage() 100 void StaticUnicodeSetsTest::assertInSet(const UnicodeString &localeName, const UnicodeString &setNa… in assertInSet() argument 106 assertInSet(localeName, setName, set, str.char32At(0)); in assertInSet() 109 void StaticUnicodeSetsTest::assertInSet(const UnicodeString &localeName, const UnicodeString &setNa… in assertInSet() argument 114 … localeName + UnicodeString(u" ") + UnicodeString(cp) + UnicodeString(u" is missing in ") + in assertInSet()
|
/external/icu/icu4c/source/i18n/ |
D | winnmfmt.cpp | 229 const wchar_t *localeName = nullptr; in Win32NumberFormat() local 233 …localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffe… in Win32NumberFormat() 239 getCurrencyFormat(&fFormatInfo->currency, localeName); in Win32NumberFormat() 241 getNumberFormat(&fFormatInfo->number, localeName); in Win32NumberFormat() 279 const wchar_t *localeName = nullptr; in operator =() local 283 …localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffe… in operator =() 288 getCurrencyFormat(&fFormatInfo->currency, localeName); in operator =() 291 getNumberFormat(&fFormatInfo->number, localeName); in operator =() 392 const wchar_t *localeName = nullptr; in format() local 396 …localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffe… in format() [all …]
|
D | windtfmt.cpp | 312 const wchar_t *localeName = nullptr; in formatDate() local 316 …localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffe… in formatDate() 319 …result = GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, STACK_BU… in formatDate() 323 …int newLength = GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, NULL, 0, … in formatDate() 327 … GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, newLength, NULL); in formatDate() 345 const wchar_t *localeName = nullptr; in formatTime() local 349 …localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffe… in formatTime() 352 result = GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, NULL, buffer, STACK_BUFFER_SIZE); in formatTime() 356 int newLength = GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, NULL, NULL, 0); in formatTime() 360 GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, NULL, buffer, newLength); in formatTime()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | IntlTestNumberFormat.java | 43 String localeName = locale + " (" + locale.getDisplayName() + ")"; in _testLocale() local 45 logln("Number test " + localeName); in _testLocale() 49 logln("Currency test " + localeName); in _testLocale() 53 logln("Percent test " + localeName); in _testLocale() 58 logln("Scientific test " + localeName); in _testLocale() 70 String localeName = locale + " (" + locale.getDisplayName() + ")"; in TestLocale() local 72 logln("Number test " + localeName); in TestLocale() 76 logln("Currency test " + localeName); in TestLocale() 80 logln("Percent test " + localeName); in TestLocale()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | IntlTestNumberFormat.java | 40 String localeName = locale + " (" + locale.getDisplayName() + ")"; in _testLocale() local 42 logln("Number test " + localeName); in _testLocale() 46 logln("Currency test " + localeName); in _testLocale() 50 logln("Percent test " + localeName); in _testLocale() 55 logln("Scientific test " + localeName); in _testLocale() 67 String localeName = locale + " (" + locale.getDisplayName() + ")"; in TestLocale() local 69 logln("Number test " + localeName); in TestLocale() 73 logln("Currency test " + localeName); in TestLocale() 77 logln("Percent test " + localeName); in TestLocale()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | GenerateComparison.java | 107 final String localeName = pair.get0(); in main() local 119 addToIndex(indexInfo, "ERROR1.6 ", locale, localeName); in main() 130 addToIndex(indexInfo, "ERROR1.7 ", locale, localeName); in main() 147 addToIndex(indexInfo, "NEW ", locale, localeName); in main() 150 addToIndex(indexInfo, "DELETED ", locale, localeName); in main() 153 System.out.println("*** " + localeName + "\t" + locale); in main() 175 System.err.println("Locale: " + locale + ", " + localeName); in main() 177 addToIndex(indexInfo, "ERROR ", locale, localeName); in main() 353 addToIndex(indexInfo, "", locale, localeName, fileCounter); in main() 477 final String localeName) { in addToIndex() argument [all …]
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestLocale.java | 121 private void checkForAliases(final String localeName, File file, in checkForAliases() argument 140 localesWithAliases.add(localeName); in checkForAliases() 172 String localeName = file.getName(); in TestLocalePartsValidity() local 173 localeName = localeName.substring(0, localeName.length() - 4); // remove in TestLocalePartsValidity() 175 if (localeName.equals("root") || localeName.equals("_platform")) { in TestLocalePartsValidity() 179 checkLocale(fileString, localeName, ltp); in TestLocalePartsValidity() 182 checkForAliases(localeName, file, localesWithAliases); in TestLocalePartsValidity() 217 public void checkLocale(String fileString, String localeName, in checkLocale() argument 219 ltp.set(localeName); in checkLocale()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | UResourceBundle.java | 109 public static UResourceBundle getBundleInstance(String baseName, String localeName){ in getBundleInstance() argument 110 return getBundleInstance(baseName, localeName, ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance() 125 public static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 127 return getBundleInstance(baseName, localeName, root, false); in getBundleInstance() 145 protected static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 147 return instantiateBundle(baseName, localeName, root, disableFallback); in getBundleInstance() 355 protected static UResourceBundle instantiateBundle(String baseName, String localeName, in instantiateBundle() argument 361 return ICUResourceBundle.getBundleInstance(baseName, localeName, root, disableFallback); in instantiateBundle() 364 return ResourceBundleWrapper.getBundleInstance(baseName, localeName, root, in instantiateBundle() 371 b = ICUResourceBundle.getBundleInstance(baseName, localeName, root, in instantiateBundle() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | UResourceBundle.java | 109 public static UResourceBundle getBundleInstance(String baseName, String localeName){ in getBundleInstance() argument 110 return getBundleInstance(baseName, localeName, ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance() 126 public static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 128 return getBundleInstance(baseName, localeName, root, false); in getBundleInstance() 147 protected static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument 149 return instantiateBundle(baseName, localeName, root, disableFallback); in getBundleInstance() 369 protected static UResourceBundle instantiateBundle(String baseName, String localeName, in instantiateBundle() argument 375 return ICUResourceBundle.getBundleInstance(baseName, localeName, root, disableFallback); in instantiateBundle() 378 return ResourceBundleWrapper.getBundleInstance(baseName, localeName, root, in instantiateBundle() 385 b = ICUResourceBundle.getBundleInstance(baseName, localeName, root, in instantiateBundle() [all …]
|
/external/cldr/tools/c/genldml/ |
D | filterRB.pl | 56 ($localeName,$temp) = split(/\./,$srcFileName); 66 writeResource($inFH, $outFH, $localeName,$line); 78 local($inFH, $outFH, $localeName, $topLine) = @_; 84 print $outFH $localeName." {\n";
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | TrieMapTest.java | 87 String localeName; in init() local 89 localeName = ULocale.getDisplayName(languageCode, locale); in init() 90 if (!localeName.equals(languageCode)) { in init() 91 if (!unicodeTestMap.containsKey(localeName)) { in init() 92 unicodeTestMap.put(localeName, MASK & i++); in init() 98 localeName = ULocale.getDisplayCountry("und-" + countryCode, locale); in init() 99 if (!localeName.equals(countryCode)) { in init() 100 if (!unicodeTestMap.containsKey(localeName)) { in init() 101 unicodeTestMap.put(localeName, MASK & i++); in init() 405 String localeName; in TestTimeGet() local [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | TrieMapTest.java | 84 String localeName; in init() local 86 localeName = ULocale.getDisplayName(languageCode, locale); in init() 87 if (!localeName.equals(languageCode)) { in init() 88 if (!unicodeTestMap.containsKey(localeName)) { in init() 89 unicodeTestMap.put(localeName, MASK & i++); in init() 95 localeName = ULocale.getDisplayCountry("und-" + countryCode, locale); in init() 96 if (!localeName.equals(countryCode)) { in init() 97 if (!unicodeTestMap.containsKey(localeName)) { in init() 98 unicodeTestMap.put(localeName, MASK & i++); in init() 402 String localeName; in TestTimeGet() local [all …]
|
/external/cldr/tools/java/org/unicode/cldr/ant/ |
D | CLDRConverterTool.java | 180 List<String> xpathList, boolean exemplarsContainA_Z, String localeName, in computeConvertibleXPaths() argument 192 String draft = getLocalesMap() == null ? null : getLocalesMap().get(localeName + ".xml"); in computeConvertibleXPaths() 234 if (CLDRBuild.matchesLocale(localeList, localeName) == false) { in computeConvertibleXPaths() 241 && !sc.isLocaleInGroup(localeName, level.group, level.org)) { in computeConvertibleXPaths() 248 if (covInfo.getCoverageLevel(xpath, localeName).compareTo(cv) <= 0) { in computeConvertibleXPaths() 269 && CLDRBuild.matchesLocale(exc.locales, localeName) == false) { in computeConvertibleXPaths() 344 && CLDRBuild.matchesLocale(inc.locales, localeName) == false) { in computeConvertibleXPaths()
|