/external/icu4c/test/intltest/ |
strcase.cpp | 76 test4.toLower(Locale("")); 82 test4.toLower(Locale("tr", "TR")); 92 test4.toUpper(Locale("")); 98 test4.toUpper(Locale("tr", "TR")); 105 test3.toUpper(Locale("de", "DE")); 112 test4.toLower(Locale("el", "GR")); 141 /* lowercase with root locale */ 147 errln("error in toLower(root locale)=\"" + s + "\" expected \"" + UnicodeString(FALSE, lowerRoot, (int32_t)(sizeof(lowerRoot)/U_SIZEOF_UCHAR)) + "\""); 150 /* lowercase with turkish locale */ 152 s.setCharAt(0, beforeLower[0]).toLower(Locale("tr")) 459 UnicodeString locale, input, output, optionsString, result; local [all...] |
regcoll.cpp | 26 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); 229 // locale 231 Locale oldDefault = Locale::getDefault(); 234 Locale::setDefault(Locale::getKorean(), status); 238 errln("Could not set default locale to Locale::KOREAN"); 249 Locale::setDefault(oldDefault, status); 263 Locale::setDefault(oldDefault, status) [all...] |
itrbnf.cpp | 31 // import java.util.Locale; 148 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); 173 RuleBasedNumberFormat assignResult(URBNF_SPELLOUT, Locale("es", "ES", ""), status); 204 RuleBasedNumberFormat ruleCtorResult(spelloutRules, Locale::getUS(), perror, status); 210 RuleBasedNumberFormat nf(spelloutRules, (UnicodeString)"", Locale::getUS(), perror, status); 223 RuleBasedNumberFormat fromRulesResult(rules, Locale::getUS(), perror, status); 400 RuleBasedNumberFormat formatter(fracRules, Locale::getEnglish(), perror, status); 1718 Locale locale = formatter0.getRuleSetDisplayNameLocale(i, status); local [all...] |
numrgts.h | 100 UBool failure(UErrorCode status, const UnicodeString& msg, const Locale& l, UBool possibleDataError=FALSE);
|
tsdate.cpp | 44 testLocale(/*par, */Locale::getDefault(), "Default Locale"); 67 IntlTestDateFormat::testLocale(/*char* par, */const Locale& locale, const UnicodeString& localeName) 81 fFormat = DateFormat::createTimeInstance(timeStyle, locale); 92 fFormat = DateFormat::createDateInstance(dateStyle, locale); 105 fFormat = DateFormat::createDateTimeInstance(dateStyle, timeStyle, locale); 253 const Locale* locales = DateFormat::getAvailableLocales(count); 272 const Locale* locales = DateFormat::getAvailableLocales(count);
|
/cts/tests/core/runner/src/android/test/ |
InstrumentationCtsTestRunner.java | 40 import java.util.Locale; 204 private Locale mDefaultLocale; 211 mDefaultLocale = Locale.getDefault(); 219 Locale.setDefault(mDefaultLocale);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
HttpCookieTest.java | 21 import java.util.Locale; 26 private Locale locale; field in class:HttpCookieTest 582 * Locale.ENGLISH. 587 Locale.setDefault(Locale.FRENCH); 594 Locale.setDefault(Locale.GERMAN); 601 Locale.setDefault(Locale.KOREA) [all...] |
/external/icu4c/common/ |
locutil.cpp | 32 * Release all static memory held by Locale Utility. 122 Locale& 123 LocaleUtility::initLocaleFromName(const UnicodeString& id, Locale& result) 132 * create a Locale. 134 * Problem: Locale ID strings may contain '@' which is a variant 137 * Hack: Since ICU code can handle locale IDs with multiple encodings 146 * There should be only at most one '@' in a locale ID. 165 result = Locale::createFromName(buffer); 171 LocaleUtility::initNameFromLocale(const Locale& locale, UnicodeString& result [all...] |
servrbf.cpp | 53 ICUResourceBundleFactory::handleCreate(const Locale& loc, int32_t /* kind */, const ICUService* /* service */, UErrorCode& status) const
|
/external/icu4c/i18n/ |
currfmt.cpp | 23 CurrencyFormat::CurrencyFormat(const Locale& locale, UErrorCode& ec) : 26 fmt = NumberFormat::createCurrencyInstance(locale, ec);
|
ethpccal.h | 114 * with the given locale. 116 * @param aLocale The given locale. 123 EthiopicCalendar(const Locale& aLocale, UErrorCode& success, EEraType type = AMETE_MIHRET_ERA);
|
indiancal.h | 143 * with the given locale. 145 * @param aLocale The given locale. 151 IndianCalendar(const Locale& aLocale, UErrorCode &success);
|
persncal.h | 141 * with the given locale. 143 * @param aLocale The given locale. 148 PersianCalendar(const Locale& aLocale, UErrorCode &success);
|
winnmfmt.h | 39 Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status);
|
/external/icu4c/i18n/unicode/ |
format.h | 243 /** Get the locale for this format object. You can choose between valid and actual locale. 244 * @param type type of the locale we're looking for (valid or actual) 246 * @return the locale 249 Locale getLocale(ULocDataLocaleType type, UErrorCode& status) const; 252 /** Get the locale for this format object. You can choose between valid and actual locale. 253 * @param type type of the locale we're looking for (valid or actual) 255 * @return the locale
|
numsys.h | 52 * Alternate numbering systems can be specified to a locale by using the 53 * numbers locale keyword. 79 * Create the default numbering system associated with the specified locale. 80 * @param inLocale The given locale. 84 static NumberingSystem* U_EXPORT2 createInstance(const Locale & inLocale, UErrorCode& status); 87 * Create the default numbering system associated with the default locale.
|
/external/icu4c/samples/datefmt/answers/ |
main_2.cpp | 70 Locale loc(LANGUAGE[i]);
|
main_3.cpp | 70 Locale loc(LANGUAGE[i]);
|
/external/icu4c/samples/datefmt/ |
main.cpp | 70 Locale loc(LANGUAGE[i]);
|
/external/icu4c/samples/translit/answers/ |
main_1.cpp | 23 Locale greece("el", "GR"); 26 // Create a calendar in the Greek locale 47 // Format the date in default locale
|
main_2.cpp | 24 Locale greece("el", "GR"); 27 // Create a calendar in the Greek locale 55 // Format the date in default locale
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowResources.java | 22 import java.util.Locale; 75 if (configuration.locale == null) { 76 configuration.locale = Locale.getDefault(); 89 return String.format(Locale.ENGLISH, raw, formatArgs); 95 return String.format(Locale.ENGLISH, raw, formatArgs);
|
/frameworks/base/core/java/com/android/internal/os/ |
LoggingPrintStream.java | 29 import java.util.Locale; 169 return format(Locale.getDefault(), format, args); 178 public PrintStream printf(Locale l, String format, Object... args) { 186 Locale l, String format, Object... args) {
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsHelper.java | 33 import java.util.Locale; 136 final Locale loc = conf.locale; 146 * Sets the locale specified. Input data is the equivalent of "ll_cc".getBytes(), where 148 * @param data the locale string in bytes. 151 // Check if locale was set by the user: 153 Locale loc = conf.locale; 154 // TODO: The following is not working as intended because the network is forcing a locale 156 // changed the locale [all...] |
/libcore/luni/src/main/java/java/io/ |
PrintStream.java | 25 import java.util.Locale; 268 * to this stream. This method uses the user's default locale. 269 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 284 return format(Locale.getDefault(), format, args); 289 * stream using the specified locale, format string and arguments. 292 * the locale used in the method. No localization will be applied 306 public PrintStream format(Locale l, String format, Object... args) { 318 * <p>The {@code Locale} used is the user's default locale [all...] |