Home
last modified time | relevance | path

Searched refs:localeName (Results 1 – 25 of 122) sorted by relevance

12345

/external/cldr/tools/java/org/unicode/cldr/util/
DSimpleFactory.java71 private final String localeName; field in SimpleFactory.CLDRCacheKey
77 …public CLDRCacheKey(String localeName, boolean resolved, DraftStatus draftStatus, List<File> direc… in CLDRCacheKey() argument
79 this.localeName = localeName; in CLDRCacheKey()
94 … hashCode = Objects.hash(this.localeName, this.resolved, this.draftStatus, this.directories); in CLDRCacheKey()
120 if (localeName == null) { in equals()
121 if (other.localeName != null) { in equals()
124 } else if (!localeName.equals(other.localeName)) { in equals()
135 …return "[ LocaleName: " + localeName + " Resolved: " + resolved + " Draft status: " + draftStatus … in toString()
488 private final String localeName; field in SimpleFactory.NoSourceDirectoryException
490 public NoSourceDirectoryException(String localeName) { in NoSourceDirectoryException() argument
[all …]
DLocaleIDParser.java121 public static String getParent(String localeName) { in getParent() argument
122 int pos = localeName.lastIndexOf('_'); in getParent()
125 String explicitParent = sdi.getExplicitParentLocale(localeName); in getParent()
129 String truncated = localeName.substring(0, pos); in getParent()
131 int pos2 = getScriptPosition(localeName); in getParent()
133 String script = localeName.substring(pos + 1); in getParent()
144 if (localeName.equals("root")) { in getParent()
171 public static String getSimpleParent(String localeName) { in getSimpleParent() argument
172 int pos = localeName.lastIndexOf('_'); in getSimpleParent()
174 return localeName.substring(0, pos); in getSimpleParent()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DBasicDurationFormatterFactory.java31 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 …]
DBasicPeriodFormatterFactory.java62 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()
DBasicDurationFormatter.java23 private String localeName; field in BasicDurationFormatter
45 String localeName,
51 this.localeName = localeName;
79 if (!locName.equals(localeName)) {
101 localeName, tz);
DBasicPeriodFormatter.java25 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/
DBasicDurationFormatterFactory.java32 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 …]
DBasicPeriodFormatterFactory.java64 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()
DBasicDurationFormatter.java24 private String localeName; field in BasicDurationFormatter
46 String localeName,
52 this.localeName = localeName;
80 if (!locName.equals(localeName)) {
102 localeName, tz);
DBasicPeriodFormatter.java26 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/
DResourceBasedPeriodFormatterDataService.java86 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/
DResourceBasedPeriodFormatterDataService.java88 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/
Dstatic_unisets_test.cpp22 void assertInSet(const UnicodeString& localeName, const UnicodeString &setName,
24 void assertInSet(const UnicodeString& localeName, const UnicodeString &setName,
77 UnicodeString localeName; in testSetCoverage() local
78 locale.getDisplayName(localeName); in testSetCoverage()
79 assertSuccess(UnicodeString("Making DFS for ") + localeName, status); in testSetCoverage()
81 #define ASSERT_IN_SET(name, foo) assertInSet(localeName, UnicodeString("" #name ""), name, foo) in testSetCoverage()
103 void StaticUnicodeSetsTest::assertInSet(const UnicodeString &localeName, const UnicodeString &setNa… in assertInSet() argument
109 assertInSet(localeName, setName, set, str.char32At(0)); in assertInSet()
112 void StaticUnicodeSetsTest::assertInSet(const UnicodeString &localeName, const UnicodeString &setNa… in assertInSet() argument
118localeName + UnicodeString(u" ") + UnicodeString(cp) + UnicodeString(u" is missing in ") + in assertInSet()
/external/icu/icu4c/source/i18n/
Dwinnmfmt.cpp229 const wchar_t *localeName = nullptr; in Win32NumberFormat() local
233localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffe… in Win32NumberFormat()
239 getCurrencyFormat(&fFormatInfo->currency, localeName); in Win32NumberFormat()
241 getNumberFormat(&fFormatInfo->number, localeName); in Win32NumberFormat()
280 const wchar_t *localeName = nullptr; in operator =() local
284localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffe… in operator =()
289 getCurrencyFormat(&fFormatInfo->currency, localeName); in operator =()
292 getNumberFormat(&fFormatInfo->number, localeName); in operator =()
393 const wchar_t *localeName = nullptr; in format() local
397localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffe… in format()
[all …]
Dwindtfmt.cpp313 const wchar_t *localeName = nullptr; in formatDate() local
317localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffe… in formatDate()
320 …result = GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, STACK_BU… in formatDate()
324 …int newLength = GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, NULL, 0, … in formatDate()
328 … GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, newLength, NULL); in formatDate()
346 const wchar_t *localeName = nullptr; in formatTime() local
350localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffe… in formatTime()
353 result = GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, NULL, buffer, STACK_BUFFER_SIZE); in formatTime()
357 int newLength = GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, NULL, NULL, 0); in formatTime()
361 GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, NULL, buffer, newLength); in formatTime()
Dnumber_asformat.cpp29 const char* localeName = locale.getName(); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() local
30 setLocaleIDs(localeName, localeName); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestNumberFormat.java42 String localeName = locale + " (" + locale.getDisplayName() + ")"; in _testLocale() local
44 logln("Number test " + localeName); in _testLocale()
48 logln("Currency test " + localeName); in _testLocale()
52 logln("Percent test " + localeName); in _testLocale()
57 logln("Scientific test " + localeName); in _testLocale()
69 String localeName = locale + " (" + locale.getDisplayName() + ")"; in TestLocale() local
71 logln("Number test " + localeName); in TestLocale()
75 logln("Currency test " + localeName); in TestLocale()
79 logln("Percent test " + localeName); in TestLocale()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DIntlTestNumberFormat.java45 String localeName = locale + " (" + locale.getDisplayName() + ")"; in _testLocale() local
47 logln("Number test " + localeName); in _testLocale()
51 logln("Currency test " + localeName); in _testLocale()
55 logln("Percent test " + localeName); in _testLocale()
60 logln("Scientific test " + localeName); in _testLocale()
72 String localeName = locale + " (" + locale.getDisplayName() + ")"; in TestLocale() local
74 logln("Number test " + localeName); in TestLocale()
78 logln("Currency test " + localeName); in TestLocale()
82 logln("Percent test " + localeName); in TestLocale()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateComparison.java111 final String localeName = pair.get0(); in main() local
123 addToIndex(indexInfo, "ERROR1.6 ", locale, localeName); in main()
134 addToIndex(indexInfo, "ERROR1.7 ", locale, localeName); in main()
151 addToIndex(indexInfo, "NEW ", locale, localeName); in main()
154 addToIndex(indexInfo, "DELETED ", locale, localeName); in main()
157 System.out.println("*** " + localeName + "\t" + locale); in main()
179 System.err.println("Locale: " + locale + ", " + localeName); in main()
181 addToIndex(indexInfo, "ERROR ", locale, localeName); in main()
357 addToIndex(indexInfo, "", locale, localeName, fileCounter); in main()
481 final String localeName) { in addToIndex() argument
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DUResourceBundle.java109 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/icu/android_icu4j/src/main/java/android/icu/util/
DUResourceBundle.java109 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/cldr/tools/c/genldml/
DfilterRB.pl56 ($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/
DTrieMapTest.java87 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/
DTrieMapTest.java84 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/cldr-unittest/src/org/unicode/cldr/unittest/
DTestLocale.java143 private void checkForAliases(final String localeName, File file, in checkForAliases() argument
162 localesWithAliases.add(localeName); in checkForAliases()
194 String localeName = file.getName(); in TestLocalePartsValidity() local
195 localeName = localeName.substring(0, localeName.length() - 4); // remove in TestLocalePartsValidity()
197 if (localeName.equals("root") || localeName.equals("_platform")) { in TestLocalePartsValidity()
201 checkLocale(fileString, localeName, ltp); in TestLocalePartsValidity()
204 checkForAliases(localeName, file, localesWithAliases); in TestLocalePartsValidity()
239 public void checkLocale(String fileString, String localeName, in checkLocale() argument
241 ltp.set(localeName); in checkLocale()

12345