1
/********************************************************************
3
* Copyright (c) 1997-2001, International Business Machines Corporation and
4
* others. All Rights Reserved.
5
********************************************************************/
8
* MajorTestLevel is the top level test class for everything in the directory "IntlWork".
11
#ifndef _INTLTESTCOLLATOR
12
#define _INTLTESTCOLLATOR
16
#include "unicode/coll.h"
17
#include "unicode/sortkey.h"
20
class IntlTestCollator: public IntlTest {
21
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
23
virtual void reportCResult( UnicodeString &source, UnicodeString &target,
24
CollationKey &sourceKey, CollationKey &targetKey,
25
Collator::EComparisonResult compareResult,
26
Collator::EComparisonResult keyResult,
27
Collator::EComparisonResult incResult,
28
Collator::EComparisonResult expectedResult );
30
static UnicodeString &prettify(const CollationKey &source, UnicodeString &target);
31
static UnicodeString &appendCompareResult(Collator::EComparisonResult result, UnicodeString &target);