HomeSort by relevance Sort by last modified time
    Searched full:locale (Results 51 - 75 of 2270) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/icu4c/common/
resbund_cnv.cpp 26 const Locale& locale,
30 constructForLocale(path, locale, error);
37 constructForLocale(path, Locale::getDefault(), error);
42 const Locale& locale,
46 fResource = ures_open(NULL, locale.getName(), &error);
51 fResource = ures_openU(nullTerminatedPath.getBuffer(), locale.getName(), &error);
  /libcore/luni/src/main/java/libcore/icu/
TimeZones.java 20 import java.util.Locale;
35 public static String getDisplayName(String id, boolean daylight, int style, Locale locale) {
38 if (CachedTimeZones.locale.equals(locale)) {
44 return getDisplayNameImpl(id, daylight, style, locale.toString());
68 * Name of default locale at the time this class was initialized.
70 private static final Locale locale = Locale.getDefault() field in class:TimeZones.CachedTimeZones
    [all...]
  /libcore/luni/src/test/java/libcore/java/text/
DecimalFormatSymbolsTest.java 20 import java.util.Locale;
23 private void checkLocaleIsEquivalentToRoot(Locale locale) {
24 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale);
25 assertEquals(DecimalFormatSymbols.getInstance(Locale.ROOT), dfs);
31 // are equal. It could be that they're accidentally checking the Locale.
32 checkLocaleIsEquivalentToRoot(new Locale("xx", "XX"));
33 checkLocaleIsEquivalentToRoot(new Locale("not exist language", "not exist country"));
OldBreakIteratorTest.java 21 import java.util.Locale;
30 iterator = BreakIterator.getCharacterInstance(Locale.US);
34 Locale[] locales = BreakIterator.getAvailableLocales();
39 for (Locale l : locales) {
40 if (l.equals(Locale.US)) {
45 assertTrue("At least locale " + Locale.US + " must be presented", found);
49 BreakIterator it1 = BreakIterator.getWordInstance(Locale.CANADA_FRENCH);
51 BreakIterator it2 = BreakIterator.getWordInstance(new Locale("bad locale"));
    [all...]
DateFormatSymbolsTest.java 26 import java.util.Locale;
30 private void assertLocaleIsEquivalentToRoot(Locale locale) {
31 DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale);
32 assertEquals(DateFormatSymbols.getInstance(Locale.ROOT), dfs);
37 // TODO: we fail this test. on Android, the root locale uses GMT offsets as names.
38 // see the invalid locale test below. on the RI, the root locale uses English names.
39 assertLocaleIsEquivalentToRoot(new Locale("xx", "XX"));
43 assertLocaleIsEquivalentToRoot(new Locale("not exist language", "not exist country"))
    [all...]
  /packages/apps/Tag/src/com/android/apps/tag/
HelpUtils.java 23 import java.util.Locale;
34 // Substitute locale if present in string
35 if (str.contains("%locale%")) {
36 Locale locale = Locale.getDefault(); local
37 str = str.replace("%locale%", locale.getLanguage());
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
LanguageSwitcher.java 24 import java.util.Locale;
32 private Locale[] mLocales;
38 private Locale mDefaultInputLocale;
39 private Locale mSystemLocale;
43 mLocales = new Locale[0];
46 public Locale[] getLocales() {
67 mLocales = new Locale[0];
92 mDefaultInputLocale = mIme.getResources().getConfiguration().locale;
99 mLocales = new Locale[mSelectedLanguageArray.length];
102 mLocales[i] = new Locale(lang.substring(0, 2)
    [all...]
  /libcore/luni/src/main/java/java/util/
Currency.java 35 private static final Hashtable<Locale, Currency> localesToCurrencies = new Hashtable<Locale, Currency>();
57 String symbol = ICU.getCurrencySymbolNative(Locale.US.toString(), currencyCode);
66 // locale's currency.
101 * Returns the {@code Currency} instance for this {@code Locale}'s country.
103 * @param locale
104 * the {@code Locale} of a country.
105 * @return the {@code Currency} used in the country defined by the locale parameter.
108 * if the locale's country is not a supported ISO 3166 Country.
110 public static Currency getInstance(Locale locale)
    [all...]
  /development/apps/CustomLocale/src/com/android/customlocale/
CustomLocaleActivity.java 45 import java.util.Locale;
50 * locales. The user can select a locale and apply it or it can create or remove
51 * a custom locale.
66 /** Menu item id for applying a locale */
68 /** Menu item id for removing a custom locale */
73 /** Textview used to display current locale */
111 String locale = data.getExtras().getString(NewLocaleDialog.INTENT_EXTRA_LOCALE); local
112 if (locale != null && locale.length() > 0) {
113 // Get current custom locale lis
212 String locale = ((Map<String, String>) o).get(KEY_CODE); local
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
OldFormatterTest.java 25 import java.util.Locale;
56 Locale[] requiredLocales = {Locale.GERMAN, Locale.FRANCE, Locale.US, Locale.CANADA};
58 // locale dependent test, bug 1943269
67 fLoc = new Formatter(Locale.GERMAN);
68 fNoL = new Formatter(Locale.GERMAN);
69 fLoc.format(Locale.US, "%f", val)
    [all...]
  /libcore/luni/src/main/java/org/apache/xml/utils/res/
XResourceBundle.java 24 import java.util.Locale;
50 * Return a named ResourceBundle for a particular locale. This method mimics the behavior
54 * @param locale the locale to prefer when searching for the bundle
57 String className, Locale locale) throws MissingResourceException
60 String suffix = getResourceSuffix(locale);
66 // first try with the given locale
68 return (XResourceBundle) ResourceBundle.getBundle(resourceName, locale);
78 XSLT_RESOURCE, new Locale("en", "US"))
    [all...]
  /external/stlport/doc/
README.utf8 3 the C++ Standard library is handle by the codecvt locale facet which is part
6 to know how to generate the whole ctype category facets of a locale
12 #include <locale>
14 std::locale loc(".utf8");
16 For the same reason building a locale with the ctype facets based on
20 std::locale loc(locale::classic(), ".utf8", std::locale::ctype);
22 The only solution to get a locale instance that will handle utf8 encoding
27 locale loc(locale::classic(), new codecvt_byname<wchar_t, char, mbstate_t>(".utf8"))
    [all...]
  /external/chromium/third_party/icu/public/i18n/unicode/
ulocdata.h 26 * \brief C API: Provides access to locale data.
32 /** A locale data object. @stable ICU 3.6 */
58 * Opens a locale data object for the given locale
60 * @param localeID Specifies the locale associated with this locale
69 * Closes a locale data object.
71 * @param uld The locale data object to close
78 * Sets the "no Substitute" attribute of the locale data
80 * locale data object will return null when there is n
    [all...]
  /libcore/luni/src/test/java/tests/api/java/util/
ResourceBundleTest.java 32 import java.util.Locale;
52 * java.util.Locale)
58 args = {java.lang.String.class, java.util.Locale.class}
63 Locale defLocale = Locale.getDefault();
65 Locale.setDefault(new Locale("en", "US"));
66 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
69 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "v1"));
72 bundle = ResourceBundle.getBundle(name, new Locale("fr", "US", "VAR"))
246 Locale locale = Locale.GERMAN; local
    [all...]
  /external/stlport/test/eh/
locale.cpp 3 #include <locale>
12 locale c_loc;
13 //locale sys(c_loc, "LC_TIME=UKR_UKR.OCP;LC_NUMERIC=RUS_RUS.OCP;LC_CTYPE=ukr_ukr.ocp;", locale::numeric | locale::time | locale::ctype);
14 locale sys(".ocp");
15 locale::global(sys);
19 cout<<"Locale name is: "<<sys.name().c_str()<<'\n';
  /libcore/luni/src/main/java/java/text/spi/
CollatorProvider.java 21 import java.util.Locale;
27 * <p>Note that Android does not support user-supplied locale service providers.
40 * Returns an instance of {@code Collator} for the given locale.
42 * @param locale the locale
44 * @throws NullPointerException if {@code locale == null}
46 * if locale isn't one of the locales returned from
49 public abstract Collator getInstance(Locale locale);
DateFormatSymbolsProvider.java 21 import java.util.Locale;
27 * <p>Note that Android does not support user-supplied locale service providers.
40 * Returns an instance of {@code DateFormatSymbols} for the given locale.
42 * @param locale the locale
44 * @throws NullPointerException if {@code locale == null}
46 * if locale isn't one of the locales returned from
49 public abstract DateFormatSymbols getInstance(Locale locale);
DecimalFormatSymbolsProvider.java 21 import java.util.Locale;
27 * <p>Note that Android does not support user-supplied locale service providers.
40 * Returns an instance of {@code DecimalFormatSymbols} for the given locale.
42 * @param locale the locale
44 * @throws NullPointerException if {@code locale == null}
46 * if locale isn't one of the locales returned from
49 public abstract DecimalFormatSymbols getInstance(Locale locale);
  /libcore/luni/src/main/java/java/util/spi/
CurrencyNameProvider.java 20 import java.util.Locale;
25 * <p>Note that Android does not support user-supplied locale service providers.
41 * @param locale a locale
42 * @return the symbol or null if there is no available symbol in the locale
44 * if {@code code == null || locale == null}
46 * if code or locale is not in a legal format or not available
48 public abstract String getSymbol(String code, Locale locale);
TimeZoneNameProvider.java 20 import java.util.Locale;
25 * <p>Note that Android does not support user-supplied locale service providers.
38 * Returns the localized name for the given time zone in the given locale.
43 * @param locale the locale
46 * if {@code id == null || locale == null}
48 * if locale is not available or style is invalid
50 public abstract String getDisplayName(String id, boolean daylight, int style, Locale locale);
  /external/stlport/stlport/
locale 20 // Basic framework: class locale and class locale::facet
83 inline bool isspace (_CharT c, const locale& loc)
87 inline bool isprint (_CharT c, const locale& loc)
91 inline bool iscntrl (_CharT c, const locale& loc)
95 inline bool isupper (_CharT c, const locale& loc)
99 inline bool islower (_CharT c, const locale& loc)
103 inline bool isalpha (_CharT c, const locale& loc)
107 inline bool isdigit (_CharT c, const locale& loc)
111 inline bool ispunct (_CharT c, const locale& loc
    [all...]
  /ndk/sources/cxx-stl/stlport/stlport/
locale 20 // Basic framework: class locale and class locale::facet
83 inline bool isspace (_CharT c, const locale& loc)
87 inline bool isprint (_CharT c, const locale& loc)
91 inline bool iscntrl (_CharT c, const locale& loc)
95 inline bool isupper (_CharT c, const locale& loc)
99 inline bool islower (_CharT c, const locale& loc)
103 inline bool isalpha (_CharT c, const locale& loc)
107 inline bool isdigit (_CharT c, const locale& loc)
111 inline bool ispunct (_CharT c, const locale& loc
    [all...]
  /external/chromium/third_party/icu/public/common/unicode/
uloc.h 14 * 12/08/98 rtg New C API for Locale
29 * \brief C API: Locale
31 * <h2> ULoc C API for Locale </h2>
32 * A <code>Locale</code> represents a specific geographical, political,
33 * or cultural region. An operation that requires a <code>Locale</code> to perform
34 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code>
36 * is a locale-sensitive operation--the number should be formatted
41 * You create a <code>Locale</code> with one of the three options listed below.
42 * Each of the component is separated by '_' in the locale string
    [all...]
  /external/icu4c/common/unicode/
uloc.h 14 * 12/08/98 rtg New C API for Locale
29 * \brief C API: Locale
31 * <h2> ULoc C API for Locale </h2>
32 * A <code>Locale</code> represents a specific geographical, political,
33 * or cultural region. An operation that requires a <code>Locale</code> to perform
34 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code>
36 * is a locale-sensitive operation--the number should be formatted
41 * You create a <code>Locale</code> with one of the three options listed below.
42 * Each of the component is separated by '_' in the locale string
    [all...]
  /external/icu4c/test/intltest/
tzfmttst.cpp 87 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);
120 PATTERNS[patidx] + " for locale " + LOCALES[locidx].getName() + " - " + u_errorName(status));
187 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx
    [all...]

Completed in 564 milliseconds

1 23 4 5 6 7 8 91011>>