Home | History | Annotate | Download | only in intltest

Lines Matching refs:errorCode

1222     IcuTestErrorCode errorCode(*this, "TestSortKeyOverflow()");
1223 LocalPointer<Collator> col(Collator::createInstance(Locale::getEnglish(), errorCode));
1224 if (errorCode.logDataIfFailureAndReset("Collator::createInstance(English) failed")) {
1227 col->setAttribute(UCOL_STRENGTH, UCOL_PRIMARY, errorCode);
1258 col->getCollationKey(s, collKey, errorCode);
1576 UErrorCode errorCode = U_ZERO_ERROR;
1577 LocalPointer<Collator> coll(Collator::createInstance(Locale::getRoot(), errorCode));
1578 if(U_FAILURE(errorCode)) {
1579 errcheckln(errorCode, "Collator creation failed with error %s", u_errorName(errorCode));
1583 (void)coll->setMaxVariable(UCOL_REORDER_CODE_OTHERS, errorCode);
1584 if(errorCode != U_ILLEGAL_ARGUMENT_ERROR) {
1585 errln("setMaxVariable(others) did not detect illegal argument - %s", u_errorName(errorCode));
1588 errorCode = U_ZERO_ERROR;
1589 (void)coll->setMaxVariable(UCOL_REORDER_CODE_CURRENCY, errorCode);
1595 coll->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, errorCode);
2342 IcuTestErrorCode errorCode(*this, "TestCloneBinary");
2343 LocalPointer<Collator> root(Collator::createInstance(Locale::getRoot(), errorCode));
2344 LocalPointer<Collator> coll(Collator::createInstance("de@collation=phonebook", errorCode));
2345 if(errorCode.logDataIfFailureAndReset("Collator::createInstance(de@collation=phonebook)")) {
2354 rbc->setAttribute(UCOL_STRENGTH, UCOL_PRIMARY, errorCode);
2357 assertEquals("rbc/primary: u-umlaut==ue", (int32_t)UCOL_EQUAL, rbc->compare(uUmlaut, ue, errorCode));
2359 int32_t binLength = rbc->cloneBinary(bin, UPRV_LENGTHOF(bin), errorCode);
2360 if(errorCode.logDataIfFailureAndReset("rbc->cloneBinary()")) {
2365 RuleBasedCollator rbc2(bin, binLength, rbRoot, errorCode);
2366 if(errorCode.logDataIfFailureAndReset("RuleBasedCollator(rbc binary)")) {
2369 assertEquals("rbc2.strength==primary", (int32_t)UCOL_PRIMARY, rbc2.getAttribute(UCOL_STRENGTH, errorCode));
2370 assertEquals("rbc2: u-umlaut==ue", (int32_t)UCOL_EQUAL, rbc2.compare(uUmlaut, ue, errorCode));
2373 int32_t bin2Length = rbc2.cloneBinary(bin2, UPRV_LENGTHOF(bin2), errorCode);
2377 RuleBasedCollator rbc3(bin, -1, rbRoot, errorCode);
2378 if(errorCode.logDataIfFailureAndReset("RuleBasedCollator(rbc binary, length<0)")) {
2381 assertEquals("rbc3.strength==primary", (int32_t)UCOL_PRIMARY, rbc3.getAttribute(UCOL_STRENGTH, errorCode));
2382 assertEquals("rbc3: u-umlaut==ue", (int32_t)UCOL_EQUAL, rbc3.compare(uUmlaut, ue, errorCode));
2396 IcuTestErrorCode errorCode(*this, "TestIterNumeric");
2397 RuleBasedCollator coll(UnicodeString("[reorder Hang Hani]"), errorCode);
2398 if(errorCode.logDataIfFailureAndReset("RuleBasedCollator constructor")) {
2401 coll.setAttribute(UCOL_NUMERIC_COLLATION, UCOL_ON, errorCode);
2405 UCollationResult result = coll.compare(iter40, iter72, errorCode);
2412 UErrorCode errorCode = U_ZERO_ERROR;
2415 LocalPointer<Collator> coll(Collator::createInstance(bogusLocale, errorCode));
2416 if(errorCode != U_ILLEGAL_ARGUMENT_ERROR) {
2418 u_errorName(errorCode));
2423 errorCode = U_ZERO_ERROR;
2424 coll.adoptInstead(Collator::createInstance(localeID, errorCode));
2425 if(errorCode != U_ILLEGAL_ARGUMENT_ERROR) {
2427 localeID, u_errorName(errorCode));
2432 errorCode = U_ZERO_ERROR;
2433 coll.adoptInstead(Collator::createInstance(localeID, errorCode));
2434 if(errorCode != U_UNSUPPORTED_ERROR) {
2435 if (errorCode == U_FILE_ACCESS_ERROR) {
2436 dataerrln("Collator::createInstance(it@colHiraganaQuaternary=true) : %s", u_errorName(errorCode));
2439 localeID, u_errorName(errorCode));
2444 errorCode = U_ZERO_ERROR;
2445 coll.adoptInstead(Collator::createInstance(localeID, errorCode));
2446 if(errorCode != U_UNSUPPORTED_ERROR) {
2447 if (errorCode == U_ILLEGAL_ARGUMENT_ERROR || errorCode == U_FILE_ACCESS_ERROR) {
2448 dataerrln("Collator::createInstance(it-u-vt-u24) : %s", u_errorName(errorCode));
2451 localeID, u_errorName(errorCode));