Home | History | Annotate | Download | only in intltest

Lines Matching refs:Locale

19 #include "cstring.h" // internal api used to compare locale strings
36 const Locale& FR = Locale::getFrance();
37 const Locale& US = Locale::getUS();
38 const Locale US_FOO("en", "US", "FOO");
59 Locale loc = frcol->getLocale(ULOC_REQUESTED_LOCALE, status);
61 errln(UnicodeString("fr collator's requested locale changed to ") + loc.getName());
65 errln(UnicodeString("fr collator's valid locale changed to ") + loc.getName());
70 errln(UnicodeString("requested locale for en_US_FOO is not en_US_FOO but ") + loc.getName());
74 errln(UnicodeString("valid locale for en_US_FOO is not en_US but ") + loc.getName());
78 errln(UnicodeString("actual locale for en_US_FOO is not en_US but ") + loc.getName());
99 { // try create collator for new locale
100 Locale fu_FU_FOO("fu", "FU", "FOO");
101 Locale fu_FU("fu", "FU", "");
150 errln("new locale fu_FU not reported as supported locale");
155 /* The locale display pattern for the locale ja, ko, and zh are different. */
158 const Locale& defaultLocale = Locale::getDefault();
160 ((defaultLocale == Locale::getKorean() && defaultLocale == Locale::getJapanese()) && displayName == "fu(FU)") &&
161 ((defaultLocale == Locale::getChinese()) && displayName != zh_fuFU)) {
167 ((defaultLocale == Locale::getKorean() && defaultLocale == Locale::getJapanese()) && displayName == "fu(FU)") &&
168 ((defaultLocale == Locale::getChinese()) && displayName != zh_fuFU)) {
188 Locale nloc = ncol->getLocale(ULOC_VALID_LOCALE, status);
190 errln(UnicodeString("asked for nloc valid locale after close and got") + nloc.getName());
197 errln(UnicodeString("asked for uloc valid locale after close and got ") + nlocstr);
216 Locale locale;
218 Hashtable* displayNames; // locale name -> string
220 CollatorInfo(const Locale& locale, Collator* collatorToAdopt, Hashtable* displayNamesToAdopt);
222 UnicodeString& getDisplayName(const Locale& displayLocale, UnicodeString& name) const;
225 CollatorInfo::CollatorInfo(const Locale& _locale, Collator* _collator, Hashtable* _displayNames)
226 : locale(_locale)
238 CollatorInfo::getDisplayName(const Locale& displayLocale, UnicodeString& name) const {
247 return locale.getDisplayName(displayLocale, name);
257 const CollatorInfo* getInfo(const Locale& loc) const {
259 if (loc == (**p).locale) {
285 virtual Collator* createCollator(const Locale& loc) {
293 virtual UnicodeString& getDisplayName(const Locale& objectLocale,
294 const Locale& displayLocale,
317 ids[i] = info[i]->locale.getName();
346 Locale fu_FU("fu", "FU", "");
347 Locale fu_FU_FOO("fu", "FU", "FOO");
360 fuFUNames->put(Locale::getDefault().getName(), new UnicodeString("little bunny Foo Foo"), status);
362 Collator* frcol = Collator::createInstance(Locale::getFrance(), status);
363 Collator* gecol = Collator::createInstance(Locale::getGermany(), status);
364 Collator* jpcol = Collator::createInstance(Locale::getJapan(), status);
380 info[0] = new CollatorInfo(Locale::getUS(), frcol, NULL);
381 info[1] = new CollatorInfo(Locale::getFrance(), gecol, NULL);
391 Collator* uscol = Collator::createInstance(Locale::getUS(), status);
402 Collator* ncol = Collator::createInstance(Locale::getUS(), status);
413 Locale loc = ncol->getLocale(ULOC_REQUESTED_LOCALE, status);
415 errln(UnicodeString("requested locale for fu_FU_FOO is not fu_FU_FOO but ") + loc.getName());
419 errln(UnicodeString("valid locale for fu_FU_FOO is not fu_FU but ") + loc.getName());
438 errln("new locale fu_FU not reported as supported locale");
575 Locale equiv = Collator::getFunctionalEquivalent("collation",
576 Locale::createFromName("de"),
584 Locale::createFromName("de_DE"),