Home
last modified time | relevance | path

Searched refs:localeName (Results 1 - 25 of 121) sorted by relevance

12345

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
H A DBasicDurationFormatterFactory.java31 private String localeName; field in BasicDurationFormatterFactory
40 this.localeName = Locale.getDefault().toString(); in BasicDurationFormatterFactory()
116 * @param localeName the name of the Locale
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()
[all...]
H A 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()
H A DBasicDurationFormatter.java23 private String localeName; field in BasicDurationFormatter
45 String localeName, in BasicDurationFormatter()
51 this.localeName = localeName; in BasicDurationFormatter()
79 if (!locName.equals(localeName)) { in withLocale()
101 localeName, tz); in withTimeZone()
41 BasicDurationFormatter(PeriodFormatter formatter, PeriodBuilder builder, DateFormatter fallback, long fallbackLimit, String localeName, TimeZone timeZone) BasicDurationFormatter() argument
H A DBasicPeriodFormatter.java25 private String localeName; field in BasicPeriodFormatter
30 String localeName, in BasicPeriodFormatter()
34 this.localeName = localeName; in BasicPeriodFormatter()
49 if (!this.localeName.equals(locName)) { in withLocale()
29 BasicPeriodFormatter(BasicPeriodFormatterFactory factory, String localeName, PeriodFormatterData data, Customizations customs) BasicPeriodFormatter() argument
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/
H A DBasicDurationFormatterFactory.java32 private String localeName; field in BasicDurationFormatterFactory
41 this.localeName = Locale.getDefault().toString(); in BasicDurationFormatterFactory()
117 * @param localeName the name of the Locale
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()
[all...]
H A 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()
H A DBasicDurationFormatter.java24 private String localeName; field in BasicDurationFormatter
46 String localeName, in BasicDurationFormatter()
52 this.localeName = localeName; in BasicDurationFormatter()
80 if (!locName.equals(localeName)) { in withLocale()
102 localeName, tz); in withTimeZone()
42 BasicDurationFormatter(PeriodFormatter formatter, PeriodBuilder builder, DateFormatter fallback, long fallbackLimit, String localeName, TimeZone timeZone) BasicDurationFormatter() argument
H A DBasicPeriodFormatter.java26 private String localeName; field in BasicPeriodFormatter
31 String localeName, in BasicPeriodFormatter()
35 this.localeName = localeName; in BasicPeriodFormatter()
50 if (!this.localeName.equals(locName)) { in withLocale()
30 BasicPeriodFormatter(BasicPeriodFormatterFactory factory, String localeName, PeriodFormatterData data, Customizations customs) BasicPeriodFormatter() argument
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
H A 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()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/impl/
H A 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()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A 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()
104 void StaticUnicodeSetsTest::assertInSet(const UnicodeString &localeName, const UnicodeString &setName, in assertInSet() argument
110 assertInSet(localeName, setName, set, str.char32At(0)); in assertInSet()
113 void StaticUnicodeSetsTest::assertInSet(const UnicodeString &localeName, const UnicodeString &setName, in assertInSet() argument
119 localeName in assertInSet()
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Dwinnmfmt.cpp235 const wchar_t *localeName = nullptr; in Win32NumberFormat() local
239 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); in Win32NumberFormat()
245 getCurrencyFormat(&fFormatInfo->currency, localeName); in Win32NumberFormat()
247 getNumberFormat(&fFormatInfo->number, localeName); in Win32NumberFormat()
286 const wchar_t *localeName = nullptr; in operator =() local
290 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); in operator =()
295 getCurrencyFormat(&fFormatInfo->currency, localeName); in operator =()
298 getNumberFormat(&fFormatInfo->number, localeName); in operator =()
399 const wchar_t *localeName = nullptr; in format() local
403 localeName in format()
[all...]
H A Dwindtfmt.cpp319 const wchar_t *localeName = nullptr; in formatDate() local
323 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); in formatDate()
326 result = GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, nullptr, buffer, STACK_BUFFER_SIZE, nullptr); in formatDate()
330 int newLength = GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, nullptr, nullptr, 0, nullptr); in formatDate()
334 GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, nullptr, buffer, newLength, nullptr); in formatDate()
352 const wchar_t *localeName = nullptr; in formatTime() local
356 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); in formatTime()
359 result = GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, nullptr, buffer, STACK_BUFFER_SIZE); in formatTime()
363 int newLength = GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, nullptr, nullptr, 0); in formatTime()
367 GetTimeFormatEx(localeName, tfFlag in formatTime()
[all...]
H A Dnumber_asformat.cpp29 const char* localeName = locale.getName(); in LocalizedNumberFormatterAsFormat() local
30 setLocaleIDs(localeName, localeName); in LocalizedNumberFormatterAsFormat()
/third_party/icu/icu4c/source/i18n/
H A Dwinnmfmt.cpp234 const wchar_t *localeName = nullptr; in Win32NumberFormat() local
238 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); in Win32NumberFormat()
244 getCurrencyFormat(&fFormatInfo->currency, localeName); in Win32NumberFormat()
246 getNumberFormat(&fFormatInfo->number, localeName); in Win32NumberFormat()
285 const wchar_t *localeName = nullptr; in operator =() local
289 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); in operator =()
294 getCurrencyFormat(&fFormatInfo->currency, localeName); in operator =()
297 getNumberFormat(&fFormatInfo->number, localeName); in operator =()
398 const wchar_t *localeName = nullptr; in format() local
402 localeName in format()
[all...]
H A Dwindtfmt.cpp318 const wchar_t *localeName = nullptr; in formatDate() local
322 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); in formatDate()
325 result = GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, STACK_BUFFER_SIZE, NULL); in formatDate()
329 int newLength = GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, NULL, 0, NULL); in formatDate()
333 GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, newLength, NULL); in formatDate()
351 const wchar_t *localeName = nullptr; in formatTime() local
355 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); in formatTime()
358 result = GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, NULL, buffer, STACK_BUFFER_SIZE); in formatTime()
362 int newLength = GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, NULL, NULL, 0); in formatTime()
366 GetTimeFormatEx(localeName, tfFlag in formatTime()
[all...]
H A Dnumber_asformat.cpp29 const char* localeName = locale.getName(); in LocalizedNumberFormatterAsFormat() local
30 setLocaleIDs(localeName, localeName); in LocalizedNumberFormatterAsFormat()
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dwinnmfmt.cpp229 const wchar_t *localeName = nullptr; in Win32NumberFormat() local
233 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); 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
284 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); 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
397 localeName in format()
[all...]
H A Dwindtfmt.cpp313 const wchar_t *localeName = nullptr; in formatDate() local
317 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); in formatDate()
320 result = GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, STACK_BUFFER_SIZE, NULL); in formatDate()
324 int newLength = GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, NULL, 0, NULL); in formatDate()
328 GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, newLength, NULL); in formatDate()
346 const wchar_t *localeName = nullptr; in formatTime() local
350 localeName = reinterpret_cast<const wchar_t*>(toOldUCharPtr(fWindowsLocaleName->getTerminatedBuffer())); 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, tfFlag in formatTime()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DIntlTestNumberFormat.java42 String localeName = locale + " (" + locale.getDisplayName() + ")"; in _testLocale()
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()
71 logln("Number test " + localeName); in TestLocale()
75 logln("Currency test " + localeName); in TestLocale()
79 logln("Percent test " + localeName); in TestLocale()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DIntlTestNumberFormat.java45 String localeName = locale + " (" + locale.getDisplayName() + ")"; in _testLocale()
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()
74 logln("Number test " + localeName); in TestLocale()
78 logln("Currency test " + localeName); in TestLocale()
82 logln("Percent test " + localeName); in TestLocale()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
H A DTrieMapTest.java87 String localeName; in init()
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()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DTrieMapTest.java84 String localeName; in init()
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()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DUResourceBundle.java103 * @param localeName the locale for which a resource bundle is desired
109 public static UResourceBundle getBundleInstance(String baseName, String localeName){ in getBundleInstance() argument
110 return getBundleInstance(baseName, localeName, ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance()
119 * @param localeName the locale for which a resource bundle is desired
126 public static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument
128 return getBundleInstance(baseName, localeName, root, false); in getBundleInstance()
137 * @param localeName the locale for which a resource bundle is desired
147 protected static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument
149 return instantiateBundle(baseName, localeName, root, disableFallback); in getBundleInstance()
361 * @param localeName th
369 instantiateBundle(String baseName, String localeName, ClassLoader root, boolean disableFallback) instantiateBundle() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DUResourceBundle.java104 * @param localeName the locale for which a resource bundle is desired
109 public static UResourceBundle getBundleInstance(String baseName, String localeName){ in getBundleInstance() argument
110 return getBundleInstance(baseName, localeName, ICUResourceBundle.ICU_DATA_CLASS_LOADER, in getBundleInstance()
119 * @param localeName the locale for which a resource bundle is desired
125 public static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument
127 return getBundleInstance(baseName, localeName, root, false); in getBundleInstance()
136 * @param localeName the locale for which a resource bundle is desired
145 protected static UResourceBundle getBundleInstance(String baseName, String localeName, in getBundleInstance() argument
147 return instantiateBundle(baseName, localeName, root, disableFallback); in getBundleInstance()
347 * @param localeName th
354 instantiateBundle(String baseName, String localeName, ClassLoader root, boolean disableFallback) instantiateBundle() argument
[all...]

Completed in 13 milliseconds

12345