Home | History | Annotate | Download | only in intltest

Lines Matching refs:UnicodeString

93     virtual UnicodeString& debug(UnicodeString& result) const {
100 virtual UnicodeString& debugClass(UnicodeString& result) const {
113 ICUServiceKey* createKey(const UnicodeString* id, UErrorCode& status) const {
117 virtual ICUServiceFactory* createSimpleFactory(UObject* obj, const UnicodeString& id, UBool visible, UErrorCode& status)
154 UnicodeString append(UnicodeString& result, const UObject* obj)
160 const UnicodeString* s;
163 if ((s = dynamic_cast<const UnicodeString*>(obj)) != NULL) {
178 UnicodeString&
179 ICUServiceTest::lrmsg(UnicodeString& result, const UnicodeString& message, const UObject* lhs, const UObject* rhs) const
190 ICUServiceTest::confirmBoolean(const UnicodeString& message, UBool val)
201 ICUServiceTest::confirmEqual(const UnicodeString& message, const UObject* lhs, const UObject* rhs)
207 UnicodeString temp;
218 ICUServiceTest::confirmEqual(const UnicodeString& message, const Integer* lhs, const Integer* rhs)
224 UnicodeString temp;
235 ICUServiceTest::confirmEqual(const UnicodeString& message, const UnicodeString* lhs, const UnicodeString* rhs)
241 UnicodeString temp;
252 ICUServiceTest::confirmEqual(const UnicodeString& message, const Locale* lhs, const Locale* rhs)
258 UnicodeString temp;
271 ICUServiceTest::confirmStringsEqual(const UnicodeString& message, const UnicodeString& lhs, const UnicodeString& rhs)
275 UnicodeString temp = message;
290 ICUServiceTest::confirmIdentical(const UnicodeString& message, const UObject* lhs, const UObject *rhs)
292 UnicodeString temp;
302 ICUServiceTest::confirmIdentical(const UnicodeString& message, int32_t lhs, int32_t rhs)
312 ICUServiceTest::msgstr(const UnicodeString& message, UObject* obj, UBool err)
315 UnicodeString* str = (UnicodeString*)obj;
426 UnicodeString resultID;
438 UnicodeString resultID;
463 UnicodeString target = "en_US_BAR";
478 virtual ICUServiceFactory* createSimpleFactory(UObject* obj, const UnicodeString& id, UBool visible, UErrorCode& status)
484 if (obj && dynamic_cast<UnicodeString*>(obj) != NULL) {
491 return instance ? new UnicodeString(*(UnicodeString*)instance) : NULL;
497 ICUServiceKey* createKey(const UnicodeString* id, UErrorCode& status) const {
501 virtual ICUServiceFactory* createSimpleFactory(UObject* obj, const UnicodeString& id, UBool visible, UErrorCode& /* status */)
503 UnicodeString* s;
504 if (obj && (s = dynamic_cast<UnicodeString*>(obj)) != NULL) {
511 return instance ? new UnicodeString(*(UnicodeString*)instance) : NULL;
520 return new UnicodeString(key.getID());
527 virtual UnicodeString& getDisplayName(const UnicodeString& /*id*/, const Locale& /*locale*/, UnicodeString& result) const {
549 UnicodeString _factoryID;
552 TestMultipleKeyStringFactory(const UnicodeString ids[], int32_t count, const UnicodeString& factoryID)
558 _ids.addElement(new UnicodeString(ids[i]), _status);
569 UnicodeString temp;
573 return new UnicodeString(_factoryID + temp);
584 result.put(*(UnicodeString*)_ids[i], (void*)this, status);
589 UnicodeString& getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString& result) const {
632 const UnicodeString en_US = "en_US";
633 UnicodeString* result = (UnicodeString*)service.get(en_US, status);
641 const UnicodeString en_US_BAR = "en_US_BAR";
642 UnicodeString resultID;
643 UnicodeString* result = (UnicodeString*)service.get("EN_us_bar", &resultID, status);
649 UnicodeString* singleton0 = new UnicodeString("Zero");
653 UnicodeString* result = (UnicodeString*)service.get("en_US_BAR", status);
662 UnicodeString* result = (UnicodeString*)service.get("en_US", status);
668 UnicodeString xids[] = {
674 int32_t count = sizeof(xids)/sizeof(UnicodeString);
686 const UnicodeString* id = (const UnicodeString*)ids[i];
687 UnicodeString* result = (UnicodeString*)service.get(*id, status);
713 UnicodeString name;
719 UnicodeString name;
726 UnicodeString xids[] = {
732 int32_t count = sizeof(xids)/sizeof(UnicodeString);
755 UnicodeString actualID;
756 UnicodeString id = "en_us_surfer_gal";
757 UnicodeString* gal = (UnicodeString*)service.get(id, &actualID, status);
759 UnicodeString displayName;
778 UnicodeString actualID;
779 UnicodeString id = "en_US_SURFER_BOZO";
780 UnicodeString* bozo = (UnicodeString*)service.get(id, &actualID, status);
782 UnicodeString displayName;
807 const UnicodeString* id = (const UnicodeString*)ids[i];
837 table->put(UnicodeString(californio), (void*)table, status);
838 table->put(UnicodeString(valley), (void*)table, status);
839 table->put(UnicodeString(surfer), (void*)table, status);
840 table->put(UnicodeString(geek), (void*)table, status);
848 UnicodeString& getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString& result) const
850 UnicodeString prefix = "";
851 UnicodeString suffix = "";
852 UnicodeString ls = locale.getName();
904 const UnicodeString* id = (const UnicodeString*)ids[i];
936 logln(UnicodeString("\n --- ") + idNames[i] + " ---");
954 UnicodeString _name;
957 SimpleListener(ICUServiceTest* test, const UnicodeString& name) : _test(test), _n(0), _name(name) {}
960 UnicodeString serviceName = "listener ";
983 ls.registerInstance(new UnicodeString("Foo"), "en_FOO", status);
985 ls.registerInstance(new UnicodeString("Bar"), "en_BAR", status);
987 UnicodeString* result = (UnicodeString*)ls.get("en_FOO", status);
994 ls.registerInstance(new UnicodeString("Baz"), "en_BAZ", status);
998 ls.registerInstance(new UnicodeString("Burp"), "en_BURP", status);
1006 ls.registerInstance(new UnicodeString("Foo"), "en_FOO", status);
1032 return instance ? new UnicodeString(*(UnicodeString*)instance) : NULL;
1040 UnicodeStringUnicodeString("root");
1041 UnicodeString* german = new UnicodeString("german");
1042 UnicodeString* germany = new UnicodeString("german_Germany");
1043 UnicodeString* japanese = new UnicodeString("japanese");
1044 UnicodeString* japan = new UnicodeString("japanese_Japan");
1049 service.registerInstance(japanese, (UnicodeString)"ja", TRUE, status);
1054 UnicodeString* target = (UnicodeString*)service.get("de_US", status);
1061 UnicodeString* target = (UnicodeString*)service.get("de_US", LocaleKey::KIND_ANY, status);
1068 UnicodeString* target = (UnicodeString*)service.get("de_US", 1234, status);
1076 UnicodeString* target = (UnicodeString*)service.get("de_US", &actualReturn, status);
1085 UnicodeString* target = (UnicodeString*)service.get("de_US", LocaleKey::KIND_ANY, &actualReturn, status);
1093 UnicodeString* target = (UnicodeString*)service.get("de_US", 1234, &actualReturn, status);
1099 UnicodeString* one = new UnicodeString("one/de_US");
1100 UnicodeString* two = new UnicodeString("two/de_US");
1107 UnicodeString* target = (UnicodeString*)service.get("de_US", 1, status);
1114 UnicodeString* target = (UnicodeString*)service.get("de_US", 2, status);
1121 UnicodeString* target = (UnicodeString*)service.get("de_US", status);
1128 UnicodeString english = "en";
1130 UnicodeString result;
1136 logln(UnicodeString("lkey current locale: ") + lkey->currentLocale(localeResult).getName());
1151 UnicodeString* target = (UnicodeString*)service.get("za_PPP", status);
1160 UnicodeString* target = (UnicodeString*)service.get("za_PPP", status);
1171 const UnicodeString* id = (const UnicodeString*)ids[i];
1183 const UnicodeString* id = (const UnicodeString*)ids[i];
1190 UnicodeString* target = (UnicodeString*)service.get("za_PPP", status);
1217 static const UnicodeString& getGreetingID() {
1219 greetingID = new UnicodeString("greeting");
1231 UnicodeString temp;
1233 UnicodeString* previous = (UnicodeString*)service->getKey((ICUServiceKey&)key, NULL, this, status);
1250 UnicodeString& getDisplayName(const UnicodeString& id, const Locale& /* locale */, UnicodeString& result) const {
1270 static UnicodeString* greetingID;
1273 UnicodeString* WrapFactory::greetingID = NULL;
1279 UnicodeString* greeting = new UnicodeString("Hello There");
1280 UnicodeString greetingID = "greeting";
1287 UnicodeString* result = (UnicodeString*)service.get(greetingID, status);
1297 UnicodeString* result = (UnicodeString*)service.get(greetingID, status);
1298 UnicodeString target = "A different greeting: \"Hello There\"";
1311 UnicodeString temp;
1316 logln("has fallback: " + UnicodeString(key.fallback() ? "true" : "false"));
1327 UnicodeString* obj = new UnicodeString("An Object");
1330 UnicodeString temp;
1343 UnicodeString* result = (UnicodeString*)service.get("object", status);
1357 UnicodeString* howdy = new UnicodeString("Howdy");
1362 UnicodeString* result = (UnicodeString*)service.get("Greetings", status);
1374 UnicodeString str("Greet");
1383 UnicodeString primary("en_US");
1384 UnicodeString fallback("ja_JP");
1404 logln(UnicodeString("current locale: ") + key->currentLocale(loc).getName());
1405 logln(UnicodeString("canonical locale: ") + key->canonicalLocale(loc).getName());
1406 logln(UnicodeString("is fallback of en: ") + (key->isFallbackOf("en") ? "true" : " false"));
1413 UnicodeString result;
1418 logln("obj: " + UnicodeString(obj ? "obj" : "null"));
1428 logln("obj: " + UnicodeString(obj ? "obj" : "null"));
1439 UnicodeString str;