Home | History | Annotate | Download | only in intltest

Lines Matching refs:status

52         UErrorCode status = U_ZERO_ERROR;
53 table.put("en_US", this, status);
57 virtual const Hashtable* getSupportedIDs(UErrorCode &/*status*/) const {
113 ICUServiceKey* createKey(const UnicodeString* id, UErrorCode& status) const {
114 return LocaleKey::createWithCanonicalFallback(id, NULL, status); // no fallback locale
117 virtual ICUServiceFactory* createSimpleFactory(UObject* obj, const UnicodeString& id, UBool visible, UErrorCode& status)
120 if (U_SUCCESS(status) && obj && (i = dynamic_cast<Integer*>(obj)) != NULL) {
332 UErrorCode status = U_ZERO_ERROR;
334 service.registerInstance(singleton0, "en_US", status);
336 UErrorCode status = U_ZERO_ERROR;
337 Integer* result = (Integer*)service.get("en_US_FOO", status);
346 service.registerInstance(singleton1, "en_US_FOO", status);
348 UErrorCode status = U_ZERO_ERROR;
349 Integer* result = (Integer*)service.get("en_US_FOO", status);
356 UErrorCode status = U_ZERO_ERROR;
357 Integer* result = (Integer*)service.get("en_US_BAR", status);
369 service.registerInstance(singleton2, "en", status);
378 UErrorCode status = U_ZERO_ERROR;
379 Integer* result = (Integer*)service.get("en_US_BAR", status);
386 URegistryKey s3key = service.registerInstance(singleton3, "en_US", status);
393 UErrorCode status = U_ZERO_ERROR;
394 Integer* result = (Integer*)service.get("en_US_BAR", status);
403 UErrorCode status = U_ZERO_ERROR;
404 service.unregister(s3key, status);
410 UErrorCode status = U_ZERO_ERROR;
411 Integer* result = (Integer*)service.get("en_US_BAR", status);
418 UErrorCode status = U_ZERO_ERROR;
419 Integer* result = (Integer*)service.get("foo", status);
427 UErrorCode status = U_ZERO_ERROR;
428 Integer* result = (Integer*)service.get("EN_us_fOo", &resultID, status);
436 service.registerInstance(singleton4, "eN_ca_dUde", status);
439 UErrorCode status = U_ZERO_ERROR;
440 Integer* result = (Integer*)service.get("En_Ca_DuDe", &resultID, status);
450 service.registerInstance(singleton5, "en_US_BAR", FALSE, status);
452 UErrorCode status = U_ZERO_ERROR;
453 Integer* result = (Integer*)service.get("en_US_BAR", status);
460 UErrorCode status = U_ZERO_ERROR;
461 UVector ids(uhash_deleteUnicodeString, uhash_compareUnicodeString, status);
462 service.getVisibleIDs(ids, status);
478 virtual ICUServiceFactory* createSimpleFactory(UObject* obj, const UnicodeString& id, UBool visible, UErrorCode& status)
485 return ICUService::createSimpleFactory(obj, id, visible, status);
497 ICUServiceKey* createKey(const UnicodeString* id, UErrorCode& status) const {
498 return LocaleKey::createWithCanonicalFallback(id, NULL, status); // no fallback locale
501 virtual ICUServiceFactory* createSimpleFactory(UObject* obj, const UnicodeString& id, UBool visible, UErrorCode& /* status */)
519 virtual UObject* create(const ICUServiceKey& key, const ICUService* /* service */, UErrorCode& /* status */) const {
523 virtual void updateVisibleIDs(Hashtable& /*result*/, UErrorCode& /*status*/) const {
565 UObject* create(const ICUServiceKey& key, const ICUService* /* service */, UErrorCode& status) const {
566 if (U_FAILURE(status)) {
576 status = _status;
581 void updateVisibleIDs(Hashtable& result, UErrorCode& status) const {
584 result.put(*(UnicodeString*)_ids[i], (void*)this, status);
592 UErrorCode status = U_ZERO_ERROR;
593 int32_t len = id.extract(buffer, sizeof(buffer), NULL, status);
594 if (U_SUCCESS(status)) {
625 UErrorCode status = U_ZERO_ERROR;
627 service.registerFactory(new AnonymousStringFactory(), status);
631 UErrorCode status = U_ZERO_ERROR;
633 UnicodeString* result = (UnicodeString*)service.get(en_US, status);
640 UErrorCode status = U_ZERO_ERROR;
643 UnicodeString* result = (UnicodeString*)service.get("EN_us_bar", &resultID, status);
650 service.registerInstance(singleton0, "en_US_BAR", status);
652 UErrorCode status = U_ZERO_ERROR;
653 UnicodeString* result = (UnicodeString*)service.get("en_US_BAR", status);
661 UErrorCode status = U_ZERO_ERROR;
662 UnicodeString* result = (UnicodeString*)service.get("en_US", status);
677 service.registerFactory(f, status);
682 UErrorCode status = U_ZERO_ERROR;
683 UVector ids(uhash_deleteUnicodeString, uhash_compareUnicodeString, 0, status);
684 service.getVisibleIDs(ids, status);
687 UnicodeString* result = (UnicodeString*)service.get(*id, status);
701 UErrorCode status = U_ZERO_ERROR;
702 UVector names(status);
703 service.getDisplayNames(names, status);
735 service.registerFactory(f, status);
741 UErrorCode status = U_ZERO_ERROR;
742 UVector names(status);
743 service.getDisplayNames(names, Locale("es"), status);
754 UErrorCode status = U_ZERO_ERROR;
757 UnicodeString* gal = (UnicodeString*)service.get(id, &actualID, status);
777 UErrorCode status = U_ZERO_ERROR;
780 UnicodeString* bozo = (UnicodeString*)service.get(id, &actualID, status);
803 UErrorCode status = U_ZERO_ERROR;
804 UVector ids(uhash_deleteUnicodeString, uhash_compareUnicodeString, 0, status);
805 service.getVisibleIDs(ids, status);
808 msgstr(*id + "? ", service.get(*id, status));
811 logstr("valleygirl? ", service.get("en_US_VALLEY_GIRL", status));
812 logstr("valleyboy? ", service.get("en_US_VALLEY_BOY", status));
813 logstr("valleydude? ", service.get("en_US_VALLEY_DUDE", status));
814 logstr("surfergirl? ", service.get("en_US_SURFER_GIRL", status));
833 const Hashtable* getSupportedIDs(UErrorCode& status) const
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);
893 UErrorCode status = U_ZERO_ERROR;
895 service.registerFactory(new ICUResourceBundleFactory(), status);
899 UErrorCode status = U_ZERO_ERROR;
900 UVector ids(uhash_deleteUnicodeString, uhash_compareUnicodeString, 0, status);
901 service.getVisibleIDs(ids, status);
912 UErrorCode status = U_ZERO_ERROR;
913 UVector names(status);
914 service.getDisplayNames(names, Locale::getGermany(), status);
922 service.registerFactory(new CalifornioLanguageFactory(), status);
938 UErrorCode status = U_ZERO_ERROR;
939 UVector names(status);
940 service.getDisplayNames(names, idNames[i], status);
975 UErrorCode status = U_ZERO_ERROR;
979 ls.addListener(&one, status);
980 ls.addListener(&two, status);
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);
992 ls.removeListener(&two, status);
994 ls.registerInstance(new UnicodeString("Baz"), "en_BAZ", status);
996 ls.removeListener(&one, status);
998 ls.registerInstance(new UnicodeString("Burp"), "en_BURP", status);
1002 ls.addListener(&one, status);
1003 ls.addListener(&one, status);
1004 ls.addListener(&one, status);
1005 ls.addListener(&two, status);
1006 ls.registerInstance(new UnicodeString("Foo"), "en_FOO", status);
1037 UErrorCode status = U_ZERO_ERROR;
1046 service.registerInstance(root, "", status);
1047 service.registerInstance(german, "de", status);
1048 service.registerInstance(germany, Locale::getGermany(), status);
1049 service.registerInstance(japanese, (UnicodeString)"ja", TRUE, status);
1050 service.registerInstance(japan, Locale::getJapan(), status);
1053 UErrorCode status = U_ZERO_ERROR;
1054 UnicodeString* target = (UnicodeString*)service.get("de_US", status);
1060 UErrorCode status = U_ZERO_ERROR;
1061 UnicodeString* target = (UnicodeString*)service.get("de_US", LocaleKey::KIND_ANY, status);
1067 UErrorCode status = U_ZERO_ERROR;
1068 UnicodeString* target = (UnicodeString*)service.get("de_US", 1234, status);
1074 UErrorCode status = U_ZERO_ERROR;
1076 UnicodeString* target = (UnicodeString*)service.get("de_US", &actualReturn, status);
1083 UErrorCode status = U_ZERO_ERROR;
1085 UnicodeString* target = (UnicodeString*)service.get("de_US", LocaleKey::KIND_ANY, &actualReturn, status);
1091 UErrorCode status = U_ZERO_ERROR;
1093 UnicodeString* target = (UnicodeString*)service.get("de_US", 1234, &actualReturn, status);
1102 service.registerInstance(one, Locale("de_US"), 1, status);
1103 service.registerInstance(two, Locale("de_US"), 2, status);
1106 UErrorCode status = U_ZERO_ERROR;
1107 UnicodeString* target = (UnicodeString*)service.get("de_US", 1, status);
1113 UErrorCode status = U_ZERO_ERROR;
1114 UnicodeString* target = (UnicodeString*)service.get("de_US", 2, status);
1120 UErrorCode status = U_ZERO_ERROR;
1121 UnicodeString* target = (UnicodeString*)service.get("de_US", status);
1127 UErrorCode status = U_ZERO_ERROR;
1131 LocaleKey* lkey = LocaleKey::createWithCanonicalFallback(&english, NULL, 1234, status);
1150 UErrorCode status = U_ZERO_ERROR;
1151 UnicodeString* target = (UnicodeString*)service.get("za_PPP", status);
1157 Locale::setDefault(Locale::getJapanese(), status);
1159 UErrorCode status = U_ZERO_ERROR;
1160 UnicodeString* target = (UnicodeString*)service.get("za_PPP", status);
1166 UErrorCode status = U_ZERO_ERROR;
1167 UVector ids(uhash_deleteUnicodeString, uhash_compareUnicodeString, 0, status);
1168 service.getVisibleIDs(ids, status);
1176 Locale::setDefault(loc, status);
1178 UErrorCode status = U_ZERO_ERROR;
1179 UVector ids(uhash_deleteUnicodeString, uhash_compareUnicodeString, 0, status);
1180 service.getVisibleIDs(ids, status);
1189 UErrorCode status = U_ZERO_ERROR;
1190 UnicodeString* target = (UnicodeString*)service.get("za_PPP", status);
1196 UErrorCode status = U_ZERO_ERROR;
1199 confirmIdentical("test available locales", locales->count(status), 6);
1203 while ((p = locales->next(NULL, status))) {
1229 UObject* create(const ICUServiceKey& key, const ICUService* service, UErrorCode& status) const {
1230 if (U_SUCCESS(status)) {
1233 UnicodeString* previous = (UnicodeString*)service->getKey((ICUServiceKey&)key, NULL, this, status);
1244 void updateVisibleIDs(Hashtable& result, UErrorCode& status) const {
1245 if (U_SUCCESS(status)) {
1246 result.put("greeting", (void*)this, status);
1281 UErrorCode status = U_ZERO_ERROR;
1283 service.registerInstance(greeting, greetingID, status);
1286 UErrorCode status = U_ZERO_ERROR;
1287 UnicodeString* result = (UnicodeString*)service.get(greetingID, status);
1294 service.registerFactory(new WrapFactory(), status);
1296 UErrorCode status = U_ZERO_ERROR;
1297 UnicodeString* result = (UnicodeString*)service.get(greetingID, status);
1325 UErrorCode status = U_ZERO_ERROR;
1340 service.registerFactory(sf, status);
1343 UnicodeString* result = (UnicodeString*)service.get("object", status);
1356 UErrorCode status = U_ZERO_ERROR;
1360 service.registerInstance(howdy, "Greetings", status);
1362 UnicodeString* result = (UnicodeString*)service.get("Greetings", status);
1371 UVector ids(uhash_deleteUnicodeString, uhash_compareUnicodeString, status);
1375 service.getVisibleIDs(ids, &str, status);
1385 UErrorCode status = U_ZERO_ERROR;
1386 LocaleKey* key = LocaleKey::createWithCanonicalFallback(&primary, &fallback, status);
1411 key = LocaleKey::createWithCanonicalFallback(&primary, &fallback, status);
1417 UObject *obj = lkf.create(*key, NULL, status);
1420 lkf.updateVisibleIDs(table, status);
1427 obj = lkf.create(*key, NULL, status);
1430 invisibleLKF.updateVisibleIDs(table, status);
1437 key = LocaleKey::createWithCanonicalFallback(&primary, &fallback, 123, status);
1438 if (U_SUCCESS(status)) {
1451 lkFactory.updateVisibleIDs(table0, status);
1458 key = LocaleKey::createWithCanonicalFallback(&primary, &fallback, status);
1460 UObject* icurb = rbf.create(*key, NULL, status);