/********************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2003, International Business Machines Corporation and
+ * Copyright (c) 1997-2009, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
UErrorCode status = U_ZERO_ERROR;
myCollation = Collator::createInstance(Locale::getGermany(), status);
if(!myCollation || U_FAILURE(status)) {
- errln(__FILE__ "failed to create! err " + UnicodeString(u_errorName(status)));
+ errcheckln(status, __FILE__ "failed to create! err " + UnicodeString(u_errorName(status)));
/* if it wasn't already: */
delete myCollation;
myCollation = NULL;
void CollationGermanTest::TestTertiary(/* char* par */)
{
if(myCollation == NULL ) {
- errln("decoll: cannot start test, collator is null\n");
+ dataerrln("decoll: cannot start test, collator is null\n");
return;
}
void CollationGermanTest::TestPrimary(/* char* par */)
{
if(myCollation == NULL ) {
- errln("decoll: cannot start test, collator is null\n");
+ dataerrln("decoll: cannot start test, collator is null\n");
return;
}
int32_t i;