Home
last modified time | relevance | path

Searched refs:getUS (Results 1 – 25 of 35) sorted by relevance

12

/external/icu/icu4c/source/test/intltest/
Dlocnmtst.cpp99 LocaleDisplayNames *ldn = LocaleDisplayNames::createInstance(Locale::getUS(), ULDN_DIALECT_NAMES); in TestCreateDialect()
107 LocaleDisplayNames *ldn = LocaleDisplayNames::createInstance(Locale::getUS()); in TestWithKeywordsAndEverything()
118 LocaleDisplayNames *ldn = LocaleDisplayNames::createInstance(Locale::getUS()); in TestCurrencyKeyword()
128 LocaleDisplayNames *ldn = LocaleDisplayNames::createInstance(Locale::getUS()); in TestUnknownCurrencyKeyword()
138 LocaleDisplayNames *ldn = LocaleDisplayNames::createInstance(Locale::getUS()); in TestUntranslatedKeywords()
148 LocaleDisplayNames *ldn = LocaleDisplayNames::createInstance(Locale::getUS()); in TestPrivateUse()
182 ULocaleDisplayNames *ldn = uldn_open(Locale::getUS().getName(), ULDN_DIALECT_NAMES, &status); in TestUldnOpenDialect()
198 ULocaleDisplayNames *ldn = uldn_open(Locale::getUS().getName(), ULDN_STANDARD_NAMES, &status); in TestUldnWithKeywordsAndEverything()
380 LocaleDisplayNames *ldn = LocaleDisplayNames::createInstance(Locale::getUS()); in TestRootEtc()
Dastrotst.cpp268 GregorianCalendar *cal = new GregorianCalendar(tz->clone(), Locale::getUS(), status); in TestSunriseTimes()
269 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status); in TestSunriseTimes()
276 DateFormat *df_t = DateFormat::createTimeInstance(DateFormat::MEDIUM,Locale::getUS()); in TestSunriseTimes()
277 DateFormat *df_d = DateFormat::createDateInstance(DateFormat::MEDIUM,Locale::getUS()); in TestSunriseTimes()
278 …f_dt = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::MEDIUM, Locale::getUS()); in TestSunriseTimes()
380 …GregorianCalendar *cal3 = new GregorianCalendar(TimeZone::getGMT()->clone(), Locale::getUS(), stat… in TestBasics()
381 …at *d3 = DateFormat::createDateTimeInstance(DateFormat::MEDIUM,DateFormat::MEDIUM,Locale::getUS()); in TestBasics()
Dnumrgts.cpp410 NumberFormat *nfcommon = NumberFormat::createCurrencyInstance(Locale::getUS(), status); in assignFloatValue()
411 if (failure(status, "NumberFormat::createCurrencyInstance", Locale::getUS(), TRUE)){ in assignFloatValue()
422 failure(status, "nfcommon->parse", Locale::getUS()); in assignFloatValue()
441 failure(status, "new Decimalformat", Locale::getUS()); in Test4059870()
446 failure(status, "format->parse", Locale::getUS()); in Test4059870()
464 failure(status, "new DecimalFormatSymbols", Locale::getUS()); in Test4083018()
485 if (failure(status, "NumberFormat::createInstance", Locale::getUS(), TRUE)) { in Test4071492()
1418 DecimalFormatSymbols *syms = new DecimalFormatSymbols(Locale::getUS(), status); in Test4108738()
2170 NumberFormat *fmt = NumberFormat::createInstance(Locale::getUS(), status);
2206 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status);
[all …]
Dmiscdtfm.cpp161 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); in test4099975()
196 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); in test4099975()
227 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); in test4099975()
256 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); in test4099975()
Ddtfmrgts.cpp130 DateFormat::SHORT, Locale::getUS()); in Test4052408()
232 … SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("yyMMdd"), Locale::getUS(), status); in Test4056591()
717 SimpleDateFormat *sdf = new SimpleDateFormat(UnicodeString("z"), Locale::getUS(), status); in Test4101483()
750 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("MMMM"), Locale::getUS(), status); in Test4103340()
1038 SimpleDateFormat *format = new SimpleDateFormat(pattern, Locale::getUS(), status); in Test4151631()
1062 SimpleDateFormat fmt(UnicodeString("EEEE, dd-MMM-yy HH:mm:ss z"), Locale::getUS(), status); in Test4151706()
1089 SimpleDateFormat df(format, Locale::getUS(), status); in Test4162071()
1114 SimpleDateFormat fmt("MM/dd/yy", Locale::getUS(), status); in Test4182066()
1115 SimpleDateFormat dispFmt("MMM dd yyyy GG", Locale::getUS(), status); in Test4182066()
1197 SimpleDateFormat sfmt(pattern, Locale::getUS(), status); in Test4210209()
[all …]
Dsvccoll.cpp36 const Locale& US = Locale::getUS(); in TestRegister()
381 info[0] = new CollatorInfo(Locale::getUS(), frcol, NULL); in TestRegisterFactory()
392 Collator* uscol = Collator::createInstance(Locale::getUS(), status); in TestRegisterFactory()
403 Collator* ncol = Collator::createInstance(Locale::getUS(), status); in TestRegisterFactory()
Ditrbnfrt.cpp65 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); in TestEnglishSpelloutRT()
83 = new RuleBasedNumberFormat(URBNF_DURATION, Locale::getUS(), status); in TestDurationsRT()
Dnumfmtst.cpp675 DecimalFormatSymbols sym(Locale::getUS(), status); in TestPatterns()
733 DecimalFormatSymbols sym(Locale::getUS(), status); in TestExponential()
1051 DecimalFormatSymbols *sym = new DecimalFormatSymbols(Locale::getUS(), status); in TestQuotes()
1089 DecimalFormatSymbols* sym = new DecimalFormatSymbols(Locale::getUS(), status); in TestCurrencySign()
1245 NumberFormat::createCurrencyInstance(Locale::getUS(), ec); in TestCurrencyObject()
1266 expectCurrency(*fmt, Locale::getUS(), in TestCurrencyObject()
1286 expectCurrency(*fmt, Locale::getUS(), in TestCurrencyObject()
1600 DecimalFormatSymbols US(Locale::getUS(), status); in TestSecondaryGrouping()
1659 DecimalFormatSymbols US(Locale::getUS(), ec); in TestWhiteSpaceParsing()
1709 DecimalFormatSymbols US(Locale::getUS(), status); in TestExponent()
[all …]
Ditrbnfp.cpp125 … RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(rule, Locale::getUS(), perr, status); in TestParse()
Ditrbnf.cpp151 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); in TestAPI()
207 RuleBasedNumberFormat ruleCtorResult(spelloutRules, Locale::getUS(), perror, status); in TestAPI()
213 RuleBasedNumberFormat nf(spelloutRules, (UnicodeString)"", Locale::getUS(), perror, status); in TestAPI()
226 RuleBasedNumberFormat fromRulesResult(rules, Locale::getUS(), perror, status); in TestAPI()
1137 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); in TestEnglishSpellout()
1191 = new RuleBasedNumberFormat(URBNF_ORDINAL, Locale::getUS(), status); in TestOrdinalAbbreviations()
1227 = new RuleBasedNumberFormat(URBNF_DURATION, Locale::getUS(), status); in TestDurations()
1971 new RuleBasedNumberFormat(rules, Locale::getUS(), parse_error, status); in TestMultiplierSubstitution()
2301 NumberFormat* decFmt = NumberFormat::createInstance(Locale::getUS(), status); in doLenientParseTest()
Ddcfmtest.cpp323 DecimalFormatSymbols symbols(Locale::getUS(), status); in execParseTest()
390 DecimalFormatSymbols symbols(Locale::getUS(), status); in execFormatTest()
Dgenderinfotest.cpp94 checkLocale(Locale::getUS(), expected_neutral, genderList, listLength); in check()
Duobjtest.cpp366 …RY(RelativeDateFormat, DateFormat::createDateInstance(DateFormat::kFullRelative, Locale::getUS())); in testIDs()
375 …TESTCLASSID_FACTORY_HIDDEN(CurrencyFormat, MeasureFormat::createCurrencyFormat(Locale::getUS(), st… in testIDs()
Dloctest.cpp404 if (strcmp(Locale::getUS().getName(), ULOC_US) != 0) { in TestParallelAPIValues()
961 l.getDisplayLanguage(Locale::getUS(), test); in TestSimpleDisplayNames()
1071 Locale::setDefault(Locale::getUS(), status); in TestAtypicalLocales()
1074 localesToTest[i].getDisplayName(Locale::getUS(), name); in TestAtypicalLocales()
1481 en_US_custom.getDisplayVariant(Locale::getUS(), got); in TestVariantParsing()
1488 en_US_custom.getDisplayName(Locale::getUS(), got); in TestVariantParsing()
Ddtfmttst.cpp517 …ats[0] = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, Locale::getUS()); in TestFieldPosition()
522 dateFormats[2] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
529 dateFormats[3] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
1316 DateFormat::FULL, Locale::getUS()); in TestLocaleDateFormat()
1394 date = DateFormat::createDateInstance(DateFormat::kShort, Locale::getUS()); in TestDateFormatCalendar()
1401 time = DateFormat::createTimeInstance(DateFormat::kShort, Locale::getUS()); in TestDateFormatCalendar()
1409 Locale::getUS()); in TestDateFormatCalendar()
1416 cal = Calendar::createInstance(Locale::getUS(), ec); in TestDateFormatCalendar()
4740 Locale::setDefault(Locale::getUS(), status); in TestCreateInstanceForSkeletonDefault()
Dcalregts.cpp1855 GregorianCalendar *calendar = new GregorianCalendar(Locale::getUS(), status); in Test4166109()
1899 Locale::getUS(), status); in Test4167060()
1989 Locale::getUS(), status); in Test4197699()
2051 GregorianCalendar cal(TimeZone::createTimeZone("GMT"), Locale::getUS(), status); in TestJ81()
2052 SimpleDateFormat fmt("HH:mm 'w'w 'd'D E d MMM yyyy", Locale::getUS(), status); in TestJ81()
2268 Calendar* pcal = Calendar::createInstance(Locale::getUS(), ec); in TestJ438()
2643 Locale locale(Locale::getUS()); // could also be CHINA in TestTimeZoneTransitionAdd()
Dtsdcfmsy.cpp197 DecimalFormatSymbols sym(Locale::getUS(), status); in testSymbols()
Daliastst.cpp184 Locale::setDefault(Locale::getUS(), status); in LocaleAliasTest()
Dnmfmapts.cpp254 #define SWAP_LOC Locale::getUS()
Dtmsgfmt.cpp298 form = new MessageFormat(testCases[i], Locale::getUS(), success); in PatternTest()
1631 MessageFormat compMsg("", Locale::getUS(), ec); in TestCompatibleApostrophe()
1637 MessageFormat icuMsg("", Locale::getUS(), ec); in TestCompatibleApostrophe()
Dtsmthred.cpp501 fFormat.adoptInstead(NumberFormat::createCurrencyInstance(Locale::getUS(), status)); in ThreadSafeFormatSharedData()
536 fFormat.adoptInstead(NumberFormat::createCurrencyInstance(Locale::getUS(), status)); in ThreadSafeFormat()
Ditercoll.cpp29 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); in CollationIteratorTest()
/external/icu/icu4c/source/samples/break/
Dbreak.cpp105 Locale::getUS(), status ); in main()
123 Locale::getUS(), status); in main()
/external/icu/icu4c/source/common/unicode/
Dlocid.h227 static const Locale &U_EXPORT2 getUS(void);
/external/icu/icu4c/source/test/perf/DateFmtPerf/
DDateFmtPerf.h85 boundary = BreakIterator::createCharacterInstance(Locale::getUS(), *status); in call()

12