/external/icu4c/i18n/unicode/ |
calendar.h | 72 * Like other locale-sensitive classes, <code>Calendar</code> provides a 249 * who create locale resources for the field of first-day-of-week should be aware of 250 * this. For instance, in US locale, first-day-of-week is set to 1, i.e., SUNDAY. 308 * Creates a Calendar using the default timezone and locale. Clients are responsible 321 * Creates a Calendar using the given timezone and the default locale. 335 * Creates a Calendar using the given timezone and the default locale. The TimeZone 348 * Creates a Calendar using the default timezone and the given locale. 350 * @param aLocale The given locale. 357 static Calendar* U_EXPORT2 createInstance(const Locale& aLocale, UErrorCode& success); 360 * Creates a Calendar using the given timezone and given locale [all...] |
dtfmtsym.h | 52 * date-time formatting data for a given or default locale. After a formatter is 58 * pattern and locale, they can do so with new SimpleDateFormat(aPattern, 60 * formatting data from the locale. 76 * locale at least contains any resources that are to be particularized for the 83 * resources for the default locale, in the default calendar (Gregorian). 86 * data for the default locale, it will return a last-resort object 98 * resources for the given locale, in the default calendar (Gregorian). 100 * @param locale Locale to load format data from. 102 * results if the resources for the locale cannot b [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/ |
CharsetUtil.java | 26 import java.util.Locale;
[all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
dtfmttst.cpp | 228 SimpleDateFormat *fmt = new SimpleDateFormat((UnicodeString)"dd-MMM-yy h:mm:ss 'o''clock' a z", Locale::getEnglish(), status); 229 //DateFormat* fmt = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::FULL, Locale::ENGLISH); 344 DateFormatSymbols rootSyms(Locale(""), ec); 351 // from icu locale bundle 360 dateFormats[0] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::getUS()); 361 dateFormats[1] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::getFrance()); 365 dateFormats[2] = new SimpleDateFormat(buf, Locale::getUS(), ec); 372 dateFormats[3] = new SimpleDateFormat(buf, Locale::getUS(), ec); 374 errln(UnicodeString("Could not create SimpleDateFormat object for locale en_US. Error: " )+ UnicodeString(u_errorName(ec))); 472 expect(DATA, ARRAY_SIZE(DATA), Locale("en", "", "")) [all...] |
numrgts.cpp | 177 NumberFormatRegressionTest::failure(UErrorCode status, const UnicodeString& msg, const Locale& l, UBool possibleDataError) 398 NumberFormat *nfcommon = NumberFormat::createCurrencyInstance(Locale::getUS(), status); 399 if (failure(status, "NumberFormat::createCurrencyInstance", Locale::getUS(), TRUE)){ 410 failure(status, "nfcommon->parse", Locale::getUS()); 429 failure(status, "new Decimalformat", Locale::getUS()); 434 failure(status, "format->parse", Locale::getUS()); 452 failure(status, "new DecimalFormatSymbols", Locale::getUS()); 473 if (failure(status, "NumberFormat::createInstance", Locale::getUS(), TRUE)) { 496 NumberFormat *nf1 = NumberFormat::createInstance(Locale::getFrance(), status); 505 failure(status, "NumberFormat::createInstance", Locale::getFrance()) [all...] |
numfmtst.cpp | 208 DecimalFormatSymbols sym(Locale::getUS(), status); 266 DecimalFormatSymbols sym(Locale::getUS(), status); 580 DecimalFormatSymbols *sym = new DecimalFormatSymbols(Locale::getUS(), status); 618 DecimalFormatSymbols* sym = new DecimalFormatSymbols(Locale::getUS(), status); 687 /* locale ID */ /* expected */ 708 NumberFormat* currencyFmt = NumberFormat::createCurrencyInstance(Locale::getCanadaFrench(), status); 722 currencyFmt = NumberFormat::createCurrencyInstance(Locale(loc),status); 730 currencyFmt = NumberFormat::createCurrencyInstance(Locale(loc), status); 747 currencyFmt = NumberFormat::createCurrencyInstance(Locale(loc), status); 749 errln("Could not create currency formatter for locale %s",localeID) 2779 const char* locale = DATA[i][0]; local [all...] |
dtfmtrtts.cpp | 33 // Define this to test just a single locale 37 // There are 24 total possible tests per each locale. A SPARSENESS 91 Locale locale("es_PA"); 93 SimpleDateFormat fmt(pattern, locale, status); 141 const Locale *avail = DateFormat::getAvailableLocales(locCount); 152 #ifdef TEST_ONE_LOC // define this to just test ONE locale. 153 Locale loc(TEST_ONE_LOC); 164 Locale loc = Locale::getDefault() [all...] |
plurults.cpp | 89 logln("\n start default locale test case ..\n"); 93 PluralRules* newEnPlural= test->forLocale(Locale::getEnglish(), status); 236 // ====== Test fallback to parent locale 237 PluralRules *en_UK = test->forLocale(Locale::getUK(), status); 238 PluralRules *en = test->forLocale(Locale::getEnglish(), status); 241 errln("ERROR: test locale fallback failed!"); 247 PluralRules *zh_Hant = test->forLocale(Locale::getTaiwan(), status); 248 PluralRules *zh = test->forLocale(Locale::getChinese(), status); 251 errln("ERROR: test locale fallback failed!");
|
/external/chromium_org/third_party/icu/source/i18n/ |
datefmt.cpp | 299 const Locale& aLocale) 308 const Locale& aLocale) 324 const Locale& aLocale) 338 return create(kShort, (EStyle) (kShort + kDateOffset), Locale::getDefault()); 344 DateFormat::create(EStyle timeStyle, EStyle dateStyle, const Locale& locale) 349 int32_t count = locale.getKeywordValue("compat", buffer, sizeof(buffer), status); 351 // if the locale has "@compat=host", create a host-specific DateFormat... 353 Win32DateFormat *f = new Win32DateFormat(timeStyle, dateStyle, locale, status); 365 RelativeDateFormat *r = new RelativeDateFormat((UDateFormatStyle)timeStyle, (UDateFormatStyle)(dateStyle-kDateOffset), locale, status) [all...] |
zstrfmt.h | 229 ZoneStringFormat(const Locale& locale, UErrorCode &status); 233 static SafeZoneStringFormatPtr* getZoneStringFormat(const Locale& locale, UErrorCode &status); 289 Locale fLocale; 327 * current locale, then return the generic partial location string (if avaiable) 359 static MessageFormat* getFallbackFormat(const Locale &locale, UErrorCode &status); 360 static MessageFormat* getRegionFormat(const Locale &locale, UErrorCode &status) [all...] |
/external/icu4c/i18n/ |
datefmt.cpp | 304 const Locale& aLocale) 313 const Locale& aLocale) 329 const Locale& aLocale) 343 return create(kShort, (EStyle) (kShort + kDateOffset), Locale::getDefault()); 349 DateFormat::create(EStyle timeStyle, EStyle dateStyle, const Locale& locale) 354 int32_t count = locale.getKeywordValue("compat", buffer, sizeof(buffer), status); 356 // if the locale has "@compat=host", create a host-specific DateFormat... 358 Win32DateFormat *f = new Win32DateFormat(timeStyle, dateStyle, locale, status); 370 RelativeDateFormat *r = new RelativeDateFormat((UDateFormatStyle)timeStyle, (UDateFormatStyle)(dateStyle-kDateOffset), locale, status) [all...] |
/external/icu4c/test/intltest/ |
rbbiapts.cpp | 42 RuleBasedBreakIterator* bi1 = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createCharacterInstance(Locale::getDefault(), status); 43 RuleBasedBreakIterator* biequal = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createCharacterInstance(Locale::getDefault(), status); 44 RuleBasedBreakIterator* bi3 = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createCharacterInstance(Locale::getDefault(), status); 45 RuleBasedBreakIterator* bi2 = (RuleBasedBreakIterator*)RuleBasedBreakIterator::createWordInstance(Locale::getDefault(), status); 80 RuleBasedBreakIterator *bix = (RuleBasedBreakIterator *)BreakIterator::createLineInstance(Locale::getDefault(), status); 151 BreakIterator* a = BreakIterator::createWordInstance(Locale("hi"), status); 152 BreakIterator* b = BreakIterator::createWordInstance(Locale("hi_IN"),status); 162 BreakIterator* c = BreakIterator::createCharacterInstance(Locale("ja"),status); 163 BreakIterator* d = BreakIterator::createCharacterInstance(Locale("root"),status); 181 RuleBasedBreakIterator* bi1=(RuleBasedBreakIterator*)RuleBasedBreakIterator::createCharacterInstance(Locale::getDefault(), status) [all...] |
numfmtst.cpp | 215 DecimalFormatSymbols sym(Locale::getUS(), status); 273 DecimalFormatSymbols sym(Locale::getUS(), status); 587 DecimalFormatSymbols *sym = new DecimalFormatSymbols(Locale::getUS(), status); 625 DecimalFormatSymbols* sym = new DecimalFormatSymbols(Locale::getUS(), status); 694 /* locale ID */ /* expected */ 715 NumberFormat* currencyFmt = NumberFormat::createCurrencyInstance(Locale::getCanadaFrench(), status); 729 currencyFmt = NumberFormat::createCurrencyInstance(Locale(loc),status); 737 currencyFmt = NumberFormat::createCurrencyInstance(Locale(loc), status); 754 currencyFmt = NumberFormat::createCurrencyInstance(Locale(loc), status); 756 errln("Could not create currency formatter for locale %s",localeID) 3109 const char* locale = DATA[i][0]; local [all...] |
dtfmtrtts.cpp | 33 // Define this to test just a single locale 37 // There are 24 total possible tests per each locale. A SPARSENESS 91 Locale locale("es_PA"); 93 SimpleDateFormat fmt(pattern, locale, status); 141 const Locale *avail = DateFormat::getAvailableLocales(locCount); 152 #ifdef TEST_ONE_LOC // define this to just test ONE locale. 153 Locale loc(TEST_ONE_LOC); 164 Locale loc = Locale::getDefault() [all...] |
compactdecimalformattest.cpp | 190 const Locale& locale, UNumberCompactStyle style, 195 CompactDecimalFormat* createCDFInstance(const Locale& locale, UNumberCompactStyle style, UErrorCode& status); 237 CheckLocale(Locale::getJapan(), UNUM_SHORT, kJapaneseShort, LENGTHOF(kJapaneseShort)); 298 void CompactDecimalFormatTest::CheckLocale(const Locale& locale, UNumberCompactStyle style, const ExpectedResult* expectedResults, int32_t expectedResultLength) { 300 LocalPointer<CompactDecimalFormat> cdf(createCDFInstance(locale, style, status)); 306 sprintf(description,"%s - %s", locale.getName(), StyleStr(style)); 326 CompactDecimalFormatTest::createCDFInstance(const Locale& locale, UNumberCompactStyle style, UErrorCode& status) [all...] |
/frameworks/base/location/java/android/location/ |
Address.java | 20 import java.util.Locale; 36 private Locale mLocale; 60 * Constructs a new Address object set to the given Locale and with all 63 public Address(Locale locale) { 64 mLocale = locale; 68 * Returns the Locale associated with this address. 70 public Locale getLocale() { 480 Locale locale = country.length() > 0 [all...] |
/libcore/luni/src/main/java/java/net/ |
HttpCookie.java | 24 import java.util.Locale; 94 String a = host.toLowerCase(Locale.US); 95 String b = domainPattern.toLowerCase(Locale.US); 230 this.inputLowerCase = input.toLowerCase(Locale.US); 460 || RESERVED_NAMES.contains(n.toLowerCase(Locale.US))); 603 domain = pattern == null ? null : pattern.toLowerCase(Locale.US); 688 * name.toLowerCase(Locale.US).hashCode() 689 * + (domain == null ? 0 : domain.toLowerCase(Locale.US).hashCode()) 694 return name.toLowerCase(Locale.US).hashCode() 695 + (domain == null ? 0 : domain.toLowerCase(Locale.US).hashCode() [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/internet/ |
MimeMessageTest.java | 35 import java.util.Locale; 73 * We tries a same test twice using two locales, Locale.US and the other, since 75 * in the locale other than Locale.US. 81 Locale savedLocale = Locale.getDefault(); 82 Locale.setDefault(Locale.US); 84 Locale.setDefault(Locale.JAPAN) [all...] |
/external/apache-xml/src/main/java/org/apache/xpath/res/ |
XPATHErrorResources.java | 24 import java.util.Locale; 948 Locale locale = Locale.getDefault(); local [all...] |
/external/chromium_org/third_party/icu/source/common/ |
serv.h | 62 * kinds of formatters for the same locale, use the descriptor 64 * while using the currentID (in this case, the locale string), 253 * <p>Return, in result, the display name of the id in the provided locale. 261 * @param locale the locale for which to generate the corresponding localized display name. 265 virtual UnicodeString& getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString& result) const = 0; 332 * @param locale the locale for which to generate the corresponding localized display name. 336 virtual UnicodeString& getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString& result) const [all...] |
ubrk.cpp | 27 // and locale. 32 const char *locale, 45 result = BreakIterator::createCharacterInstance(Locale(locale), *status); 49 result = BreakIterator::createWordInstance(Locale(locale), *status); 53 result = BreakIterator::createLineInstance(Locale(locale), *status); 57 result = BreakIterator::createSentenceInstance(Locale(locale), *status) [all...] |
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
dtfmtsym.h | 53 * date-time formatting data for a given or default locale. After a formatter is 59 * pattern and locale, they can do so with new SimpleDateFormat(aPattern, 61 * formatting data from the locale. 77 * locale at least contains any resources that are to be particularized for the 84 * resources for the default locale, in the default calendar (Gregorian). 87 * data for the default locale, it will return a last-resort object 99 * resources for the given locale, in the default calendar (Gregorian). 101 * @param locale Locale to load format data from. 103 * results if the resources for the locale cannot b [all...] |
/external/chromium_org/v8/src/ |
i18n.cc | 105 const icu::Locale& icu_locale, 117 // Create a calendar using locale, and apply time zone to it. 123 // to the locale as Unicode extension (if they were specified at all). 152 const icu::Locale& icu_locale, 207 // to assume that for given locale NumberingSystem constructor produces the 230 // Set the locale 238 isolate->factory()->NewStringFromAscii(CStrVector("locale")), 243 // This would never happen, since we got the locale from ICU. 246 isolate->factory()->NewStringFromAscii(CStrVector("locale")), 272 const icu::Locale& icu_locale [all...] |
/external/icu4c/common/ |
serv.h | 62 * kinds of formatters for the same locale, use the descriptor 64 * while using the currentID (in this case, the locale string), 254 * <p>Return, in result, the display name of the id in the provided locale. 262 * @param locale the locale for which to generate the corresponding localized display name. 266 virtual UnicodeString& getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString& result) const = 0; 333 * @param locale the locale for which to generate the corresponding localized display name. 337 virtual UnicodeString& getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString& result) const [all...] |
ubrk.cpp | 27 // and locale. 32 const char *locale, 45 result = BreakIterator::createCharacterInstance(Locale(locale), *status); 49 result = BreakIterator::createWordInstance(Locale(locale), *status); 53 result = BreakIterator::createLineInstance(Locale(locale), *status); 57 result = BreakIterator::createSentenceInstance(Locale(locale), *status) [all...] |