Searched refs:Locale (Results 1 - 25 of 370) sorted by relevance

1234567891011>>

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
H A DCurrencyTest.java21 import java.util.Locale;
25 private static Locale defaultLocale = Locale.getDefault();
35 * @tests java.util.Currency#getInstance(java.util.Locale)
43 Currency c1 = Currency.getInstance(new Locale("en", "CA"));
45 "Currency.getInstance(new Locale(\"en\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")",
47 Currency c2 = Currency.getInstance(new Locale("fr", "CA"));
49 "Currency.getInstance(new Locale(\"fr\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")",
51 Currency c3 = Currency.getInstance(new Locale("", "CA"));
53 "Currency.getInstance(new Locale(\"\",\"C
[all...]
H A DLocaleTest.java23 import java.util.Locale;
28 Locale testLocale;
30 Locale l;
32 Locale defaultLocale;
35 * @tests java.util.Locale#Locale(java.lang.String, java.lang.String)
38 // Test for method java.util.Locale(java.lang.String, java.lang.String)
39 Locale x = new Locale("xx", "CV");
40 assertTrue("Failed to create Locale",
[all...]
H A DControlTest.java40 import java.util.Locale;
217 Locale defaultLocale = Locale.getDefault();
218 Locale.setDefault(new Locale("TestLanguage", "TestCountry", "Var"));
219 assertNull(control.getFallbackLocale("message", Locale.US));
227 control.getFallbackLocale(null, Locale.US);
232 Locale.setDefault(defaultLocale);
291 * @tests {@link java.util.ResourceBundle.Control#getCandidateLocales(java.lang.String, java.util.Locale)}.
295 // the ResourceBundle for this baseName and Locale doe
[all...]
/external/icu4c/common/unicode/
H A Dlocid.h41 * \brief C++ API: Locale ID object.
45 * A <code>Locale</code> object represents a specific geographical, political,
46 * or cultural region. An operation that requires a <code>Locale</code> to perform
47 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code>
53 * The Locale class is not suitable for subclassing.
56 * You can create a <code>Locale</code> object using the constructor in
60 * Locale( const char* language,
90 * Because a <code>Locale</code> object is just an identifier for a region,
91 * no validity check is performed when you construct a <code>Locale</code>.
93 * <code>Locale</cod
181 class U_COMMON_API Locale : public UObject { class in inherits:UObject
[all...]
H A Dbrkiter.h306 createWordInstance(const Locale& where, UErrorCode& status);
330 createLineInstance(const Locale& where, UErrorCode& status);
352 createCharacterInstance(const Locale& where, UErrorCode& status);
373 createSentenceInstance(const Locale& where, UErrorCode& status);
398 createTitleInstance(const Locale& where, UErrorCode& status);
409 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
412 * Get name of the object for the desired Locale, in the desired langauge.
420 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale,
421 const Locale& displayLocale,
425 * Get name of the object for the desired Locale, i
[all...]
/external/nist-sip/java/javax/sip/header/
H A DContentLanguageHeader.java3 import java.util.Locale;
8 Locale getContentLanguage();
9 void setContentLanguage(Locale language);
H A DAcceptLanguageHeader.java3 import java.util.Locale;
9 Locale getAcceptLanguage();
10 void setAcceptLanguage(Locale acceptLanguage);
/external/apache-http/src/org/apache/http/
H A DReasonPhraseCatalog.java34 import java.util.Locale;
60 public String getReason(int status, Locale loc)
H A DHttpResponse.java35 import java.util.Locale;
148 Locale getLocale();
160 void setLocale(Locale loc);
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
H A DMockedDateFormatSymbolsProvider.java22 import java.util.Locale;
25 private static Locale supportLocale = new Locale("mock");
28 public DateFormatSymbols getInstance(Locale locale) {
40 public Locale[] getAvailableLocales() {
41 return new Locale[] { supportLocale };
H A DMockedDecimalFormatSymbolsProvider.java22 import java.util.Locale;
26 private static Locale supportLocale = new Locale("mock");
29 public DecimalFormatSymbols getInstance(Locale locale) {
41 public Locale[] getAvailableLocales() {
42 return new Locale[] { supportLocale };
/external/nist-sip/java/gov/nist/javax/sip/header/
H A DContentLanguage.java31 import java.util.Locale;
93 protected Locale locale;
135 this.locale = new Locale(languageTag.substring(0,slash), languageTag.substring(slash+1) );
137 this.locale = new Locale(languageTag);
146 * @return the Locale value of this ContentLanguageHeader
149 public Locale getContentLanguage() {
156 * @param language - the new Locale value of the language of
161 public void setContentLanguage(Locale language) {
168 retval.locale = (Locale) this.locale.clone();
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/geocoding/
H A DPhoneNumberOfflineGeocoderTest.java22 import java.util.Locale;
63 geocoder.getDescriptionForNumber(US_NUMBER1, Locale.SIMPLIFIED_CHINESE));
65 geocoder.getDescriptionForNumber(US_NUMBER1, Locale.ITALIAN));
67 geocoder.getDescriptionForNumber(BS_NUMBER1, new Locale("en", "US")));
69 geocoder.getDescriptionForNumber(AU_NUMBER, new Locale("en", "US")));
71 new Locale("en", "US")));
76 geocoder.getDescriptionForNumber(US_NUMBER1, new Locale("en", "US")));
78 geocoder.getDescriptionForNumber(US_NUMBER2, new Locale("en", "US")));
80 geocoder.getDescriptionForNumber(US_NUMBER3, new Locale("en", "US")));
85 geocoder.getDescriptionForNumber(KO_NUMBER1, Locale
[all...]
/external/icu4c/common/
H A Dlocutil.h26 static Locale& initLocaleFromName(const UnicodeString& id, Locale& result);
27 static UnicodeString& initNameFromLocale(const Locale& locale, UnicodeString& result);
H A Dlocid.cpp78 static U_NAMESPACE_QUALIFIER Locale *gLocaleCache = NULL;
79 static U_NAMESPACE_QUALIFIER Locale *gDefaultLocale = NULL;
84 // Deleter function for Locales owned by the default Locale hash table/
88 delete (U_NAMESPACE_QUALIFIER Locale *) obj;
155 // Create a new Locale object for it.
156 Locale *newFirstDefault = new Locale(Locale::eBOGUS);
168 // Else some other thread raced us through here, and set the new Locale.
201 Locale *newDefaul
286 Locale::Locale() function in class:Locale
297 Locale::Locale(Locale::ELocaleType) function in class:Locale
304 Locale::Locale( const char * newLanguage, function in class:Locale
442 Locale::Locale(const Locale &other) function in class:Locale
[all...]
/external/bison/lib/
H A Dmain.c28 # define setlocale(Category, Locale)
/external/icu4c/test/perf/normperf/
H A Ddtfmtrtperf.h114 const Locale testLocales[] = {
115 Locale("en"),
116 Locale("en_US"),
117 Locale("en_AU"),
118 Locale("de_DE"),
119 Locale("fr"),
120 Locale("ja_JP"),
121 Locale("ko"),
122 Locale("pt"),
123 Locale("th_T
[all...]
/external/icu4c/i18n/unicode/
H A Dcurrpinf.h25 class Locale;
62 CurrencyPluralInfo(const Locale& locale, UErrorCode& status);
138 const Locale& getLocale() const;
178 void setLocale(const Locale& loc, UErrorCode& status);
197 void initialize(const Locale& loc, UErrorCode& status);
199 void setupCurrencyPluralPattern(const Locale& loc, UErrorCode& status);
247 Locale* fLocale;
H A Dlocdspnm.h15 * \brief C++ API: Provides display names of Locale and its components.
29 * values, see Locale.
42 * {@link #createInstance(const Locale& locale, UDialectHandling dialectHandling)}
48 static LocaleDisplayNames* U_EXPORT2 createInstance(const Locale& locale);
60 static LocaleDisplayNames* U_EXPORT2 createInstance(const Locale& locale,
70 virtual const Locale& getLocale() const = 0;
87 virtual UnicodeString& localeDisplayName(const Locale& locale,
180 inline LocaleDisplayNames* LocaleDisplayNames::createInstance(const Locale& locale) {
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/callback/
H A DLanguageCallbackTest.java25 import java.util.Locale;
43 Locale locale = Locale.US;
/external/guava/src/com/google/common/base/
H A DCaseFormat.java19 import java.util.Locale;
88 case UPPER_UNDERSCORE: return s.replace("-", "_").toUpperCase(Locale.US);
94 case UPPER_UNDERSCORE: return s.toUpperCase(Locale.US);
99 case LOWER_HYPHEN: return s.replace("_", "-").toLowerCase(Locale.US);
100 case LOWER_UNDERSCORE: return s.toLowerCase(Locale.US);
129 case LOWER_CAMEL: return word.toLowerCase(Locale.US);
136 case LOWER_HYPHEN: return word.toLowerCase(Locale.US);
137 case LOWER_UNDERSCORE: return word.toLowerCase(Locale.US);
140 case UPPER_UNDERSCORE: return word.toUpperCase(Locale.US);
146 return (word.length() < 2) ? word.toUpperCase(Locale
[all...]
/external/apache-xml/src/main/java/org/apache/xalan/transformer/
H A DNodeSortKey.java24 import java.util.Locale;
51 /** Locale we're in */
52 Locale m_locale;
91 // The constructor of Locale is defined as
92 // public Locale(String language, String country)
100 m_locale = new Locale(langValue.toLowerCase(),
101 Locale.getDefault().getCountry());
104 // m_locale = new Locale(langValue.toUpperCase(),
105 // Locale.getDefault().getDisplayCountry());
111 m_locale = Locale
[all...]
/external/icu4c/test/intltest/
H A Dtzfmttst.cpp87 const Locale testLocales[] = {
88 Locale("en"),
89 Locale("en_CA"),
90 Locale("fr"),
91 Locale("zh_Hant")
94 const Locale *LOCALES;
99 nLocales = sizeof(testLocales)/sizeof(Locale);
101 LOCALES = Locale::getAvailableLocales(nLocales);
246 const Locale* locales; // Static
310 log.logln((UnicodeString) "\nThread " + index + ": Locale
[all...]
/external/apache-http/src/org/apache/http/impl/
H A DDefaultHttpResponseFactory.java34 import java.util.Locale;
91 final Locale loc = determineLocale(context);
104 final Locale loc = determineLocale(context);
118 protected Locale determineLocale(HttpContext context) {
119 return Locale.getDefault();
/external/apache-xml/src/main/java/org/apache/xml/res/
H A DXMLMessages.java24 import java.util.Locale;
36 protected Locale fLocale = Locale.getDefault();
48 * Set the Locale object to use.
50 * @param locale non-null reference to Locale object.
52 public void setLocale(Locale locale)
58 * Get the Locale object that is being used.
60 * @return non-null reference to Locale object.
62 public Locale getLocale()

Completed in 462 milliseconds

1234567891011>>