HomeSort by relevance Sort by last modified time
    Searched refs:Locale (Results 151 - 175 of 1279) sorted by null

1 2 3 4 5 67 8 91011>>

  /external/apache-xml/src/main/java/org/apache/xml/serializer/utils/
Messages.java 24 import java.util.Locale;
100 private final Locale m_locale = Locale.getDefault();
128 * Set the Locale object to use. If this method is not called the
129 * default locale is used. This method needs to be called before
132 * @param locale non-null reference to Locale object.
135 // public void setLocale(Locale locale)
137 // m_locale = locale;
308 Locale locale = getLocale(); local
    [all...]
  /external/chromium_org/third_party/icu/source/i18n/unicode/
plurfmt.h 78 * the constructors that takes a <code>locale</code> object. To
88 * used locale. The pattern is a sequence of
121 * <code>NumberFormat</code> for the <code>PluralFormat</code>'s locale. If you
131 * Locale("fr"), status);
167 * <code>PluralFormat</code>'s constructor. If you also specify a locale in this
168 * constructor, this locale will be used to format the number in the message
183 * Creates a new <code>PluralFormat</code> for the default locale.
184 * This locale will be used to get the set of plural rules and for standard
193 * Creates a new <code>PluralFormat</code> for a given locale.
194 * @param locale the <code>PluralFormat</code> will be configured wit
525 Locale locale; member in class:PluralFormat
    [all...]
tmutfmt.h 49 * TimeUnitFormat* format = new TimeUnitFormat(Locale("en"), status);
86 * Create TimeUnitFormat with default locale, and full name style.
93 * Create TimeUnitFormat given locale, and full name style.
96 TimeUnitFormat(const Locale& locale, UErrorCode& status);
99 * Create TimeUnitFormat given locale and style.
102 TimeUnitFormat(const Locale& locale, EStyle style, UErrorCode& status);
150 * Set the locale used for formatting or parsing.
151 * @param locale the locale to be se
    [all...]
  /libcore/luni/src/test/java/libcore/java/text/
NumberFormatTest.java 25 import java.util.Locale;
40 NumberFormat nf = NumberFormat.getNumberInstance(Locale.US);
68 NumberFormat numberFormat = NumberFormat.getNumberInstance(new Locale("ar"));
70 NumberFormat integerFormat = NumberFormat.getIntegerInstance(new Locale("ar"));
75 Locale arabic = new Locale("ar");
84 NumberFormat nf = NumberFormat.getPercentInstance(Locale.US);
  /libcore/luni/src/test/java/libcore/java/util/
OldGregorianCalendarTest.java 23 import java.util.Locale;
30 // Test for method java.util.GregorianCalendar(java.util.TimeZone, java.util.Locale)
33 GregorianCalendar gc1 = new GregorianCalendar(TimeZone.getTimeZone("GMT+1"), Locale.FRANCE);
35 GregorianCalendar gc2 = new GregorianCalendar(TimeZone.getTimeZone("GMT+2"), Locale.US);
57 new Locale("en", "GB"));
71 new Locale("en", "GB"));
85 new Locale("en", "GB"));
99 new Locale("en", "GB"));
FormatterTest.java 22 import java.util.Locale;
27 Locale arabic = new Locale("ar");
60 assertEquals("JAKOB ARJOUNI", String.format(Locale.US, "%S", "jakob arjouni"));
62 assertEquals("JAKOB ARJOUN\u0130", String.format(new Locale("tr", "TR"), "%S", "jakob arjouni"));
98 assertEquals("null", String.format(Locale.US, "%s", (String) null));
99 assertEquals("null", String.format(Locale.US, "%d", (Integer) null));
101 assertEquals("%", String.format(Locale.US, "%%"));
171 assertEquals(expected, String.format(Locale.US, "%t" + pattern, c));
172 assertEquals(expected, String.format(Locale.US, "%T" + pattern, c))
    [all...]
  /external/icu4c/test/intltest/
loctest.cpp 243 Locale testLocale("");
245 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i], rawData[VAR][i]);
248 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i], rawData[VAR][i]);
265 errln(" Locale name mismatch: " + temp + " versus "
271 Locale testLocale("");
273 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i]);
276 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i]);
294 Locale test8 = Locale::createFromName("x-klingon-latn-zx.utf32be@special");
315 if (Locale::getDefault() != Locale::createFromName(NULL)
    [all...]
svccoll.cpp 19 #include "cstring.h" // internal api used to compare locale strings
36 const Locale& FR = Locale::getFrance();
37 const Locale& US = Locale::getUS();
38 const Locale US_FOO("en", "US", "FOO");
59 Locale loc = frcol->getLocale(ULOC_REQUESTED_LOCALE, status);
61 errln(UnicodeString("fr collator's requested locale changed to ") + loc.getName());
65 errln(UnicodeString("fr collator's valid locale changed to ") + loc.getName());
70 errln(UnicodeString("requested locale for en_US_FOO is not en_US_FOO but ") + loc.getName())
216 Locale locale; member in struct:CollatorInfo
    [all...]
aliastst.cpp 59 Locale oldLoc(_LOCALE_ALIAS[i][0]);
60 Locale newLoc(_LOCALE_ALIAS[i][1]);
65 logln("\nold locale:%s new locale:%s",oldLoc.getName(),newLoc.getName());
91 Locale oldLoc(_LOCALE_ALIAS[i][0]);
92 Locale newLoc(_LOCALE_ALIAS[i][1]);
97 logln("\nold locale:%s new locale:%s",oldLoc.getName(),newLoc.getName());
125 Locale oldLoc(_LOCALE_ALIAS[i][0]);
126 Locale newLoc(_LOCALE_ALIAS[i][1])
    [all...]
tzfmttst.cpp 130 const Locale testLocales[] = {
131 Locale("en"),
132 Locale("en_CA"),
133 Locale("fr"),
134 Locale("zh_Hant")
137 const Locale *LOCALES;
142 nLocales = sizeof(testLocales)/sizeof(Locale);
144 LOCALES = Locale::getAvailableLocales(nLocales);
167 PATTERNS[patidx] + " for locale " + LOCALES[locidx].getName() + " - " + u_errorName(status));
231 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx
685 const char* locale; member in struct:__anon19122
    [all...]
  /external/chromium_org/third_party/icu/source/test/intltest/
svccoll.cpp 19 #include "cstring.h" // internal api used to compare locale strings
36 const Locale& FR = Locale::getFrance();
37 const Locale& US = Locale::getUS();
38 const Locale US_FOO("en", "US", "FOO");
59 Locale loc = frcol->getLocale(ULOC_REQUESTED_LOCALE, status);
61 errln(UnicodeString("fr collator's requested locale changed to ") + loc.getName());
65 errln(UnicodeString("fr collator's valid locale changed to ") + loc.getName());
70 errln(UnicodeString("requested locale for en_US_FOO is not en_US_FOO but ") + loc.getName())
216 Locale locale; member in struct:CollatorInfo
    [all...]
aliastst.cpp 59 Locale oldLoc(_LOCALE_ALIAS[i][0]);
60 Locale newLoc(_LOCALE_ALIAS[i][1]);
65 logln("\nold locale:%s new locale:%s",oldLoc.getName(),newLoc.getName());
91 Locale oldLoc(_LOCALE_ALIAS[i][0]);
92 Locale newLoc(_LOCALE_ALIAS[i][1]);
97 logln("\nold locale:%s new locale:%s",oldLoc.getName(),newLoc.getName());
125 Locale oldLoc(_LOCALE_ALIAS[i][0]);
126 Locale newLoc(_LOCALE_ALIAS[i][1])
    [all...]
itformat.cpp 72 // for all format tests, always set default Locale and TimeZone to ENGLISH and PST.
74 Locale saveDefaultLocale = Locale::getDefault();
81 Locale::setDefault( Locale::getEnglish(), status );
83 errln("itformat: couldn't set default Locale to ENGLISH!");
138 // restore saved Locale and TimeZone
141 Locale::setDefault( saveDefaultLocale, status );
143 errln("itformat: couldn't re-set default Locale!");
loctest.cpp 242 Locale testLocale("");
244 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i], rawData[VAR][i]);
247 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i], rawData[VAR][i]);
264 errln(" Locale name mismatch: " + temp + " versus "
270 Locale testLocale("");
272 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i]);
275 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i]);
293 Locale test8 = Locale::createFromName("x-klingon-latn-zx.utf32be@special");
314 if (Locale::getDefault() != Locale::createFromName(NULL)
    [all...]
tmsgfmt.cpp 71 Locale locale[] = { local
72 Locale("ar", "", ""),
73 Locale("be", "", ""),
74 Locale("bg", "", ""),
75 Locale("ca", "", ""),
76 Locale("cs", "", ""),
77 Locale("da", "", ""),
78 Locale("de", "", ""),
79 Locale("de", "AT", "")
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
ExpensiveObjectsBenchmark.java 55 Collator.getInstance(Locale.US);
60 Collator c = Collator.getInstance(Locale.US);
68 new DateFormatSymbols(Locale.US);
73 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US);
81 new DecimalFormatSymbols(Locale.US);
86 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US);
94 NumberFormat.getInstance(Locale.US);
99 NumberFormat nf = NumberFormat.getInstance(Locale.US);
106 NumberFormat nf = NumberFormat.getInstance(Locale.US);
119 NumberFormat nf = NumberFormat.getInstance(Locale.US)
    [all...]
  /development/tools/recovery_l10n/src/com/android/recovery_l10n/
Main.java 42 import java.util.Locale;
49 * height, and locale using pixel values.
77 HashMap<Locale, Bitmap> savedBitmaps;
82 private Locale nextLocale;
83 private Locale thisLocale;
86 TextCapture(Locale thisLocale, Locale nextLocale, Runnable next) {
106 private void switchTo(Locale locale) {
111 config.locale = locale
    [all...]
  /external/icu4c/i18n/unicode/
tmutfmt.h 60 * TimeUnitFormat* format = new TimeUnitFormat(Locale("en"), status);
84 * Create TimeUnitFormat with default locale, and full name style.
91 * Create TimeUnitFormat given locale, and full name style.
94 TimeUnitFormat(const Locale& locale, UErrorCode& status);
97 * Create TimeUnitFormat given locale and style.
100 TimeUnitFormat(const Locale& locale, UTimeUnitFormatStyle style, UErrorCode& status);
148 * Set the locale used for formatting or parsing.
149 * @param locale the locale to be se
    [all...]
  /libcore/luni/src/test/java/libcore/java/lang/
StringTest.java 30 import java.util.Locale;
246 Locale trTR = new Locale("tr", "TR");
260 Locale enUs = new Locale("en", "US");
276 testEqualsIgnoreCase(new Locale("tr", "TR"));
280 testEqualsIgnoreCase(new Locale("en", "US"));
284 * String.equalsIgnoreCase should not depend on the locale.
286 private void testEqualsIgnoreCase(Locale locale) {
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/luni/tests/java/util/
ScannerTest.java 53 import java.util.Locale;
452 * @tests java.util.Scanner#locale()
456 assertEquals(Locale.getDefault(), s.locale());
460 * @tests java.util.Scanner#useLocale(Locale)
470 s.useLocale(new Locale("test", "test"));
471 assertEquals(new Locale("test", "test"), s.locale());
963 * Different locale can only recognize corresponding locale sensitiv
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
ResourceBundleTest.java 33 import java.util.Locale;
80 Locale.setDefault(new Locale("en", "US"));
81 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
107 private static final Locale LOCALE_FRFR = new Locale("fr", "FR");
110 private static final Locale LOCALE_FR = new Locale("fr");
113 private static final Locale LOCALE_EN = new Locale("en")
281 Locale locale = Locale.GERMAN; local
    [all...]
  /libcore/luni/src/main/java/libcore/icu/
TimeZoneNames.java 23 import java.util.Locale;
46 // Ensure that we pull in the zone strings for the root locale, en_US, and the
47 // user's default locale. (All devices must support the root locale and en_US,
50 cachedZoneStrings.get(Locale.ROOT);
51 cachedZoneStrings.get(Locale.US);
52 cachedZoneStrings.get(Locale.getDefault());
55 public static class ZoneStringsCache extends BasicLruCache<Locale, String[][]> {
67 @Override protected String[][] create(Locale locale) {
    [all...]
  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
RuleBasedCollatorTest.java 27 import java.util.Locale;
64 .getInstance(Locale.US);
103 .getInstance(Locale.GERMAN);
127 Locale locale = new Locale("es", "", "TRADITIONAL"); local
129 .getInstance(locale);
145 Locale locale = new Locale("de", "DE") local
176 Locale locale = new Locale("es", "", "TRADITIONAL"); local
196 Locale locale = new Locale("de", "DE"); local
    [all...]
  /external/chromium_org/third_party/icu/source/common/
servls.cpp 30 : fallbackLocale(Locale::getDefault())
38 , fallbackLocale(Locale::getDefault())
50 ICULocaleService::get(const Locale& locale, UErrorCode& status) const
52 return get(locale, LocaleKey::KIND_ANY, NULL, status);
56 ICULocaleService::get(const Locale& locale, int32_t kind, UErrorCode& status) const
58 return get(locale, kind, NULL, status);
62 ICULocaleService::get(const Locale& locale, Locale* actualReturn, UErrorCode& status) cons
    [all...]
  /external/icu4c/common/
servls.cpp 30 : fallbackLocale(Locale::getDefault())
36 , fallbackLocale(Locale::getDefault())
45 ICULocaleService::get(const Locale& locale, UErrorCode& status) const
47 return get(locale, LocaleKey::KIND_ANY, NULL, status);
51 ICULocaleService::get(const Locale& locale, int32_t kind, UErrorCode& status) const
53 return get(locale, kind, NULL, status);
57 ICULocaleService::get(const Locale& locale, Locale* actualReturn, UErrorCode& status) cons
    [all...]

Completed in 554 milliseconds

1 2 3 4 5 67 8 91011>>