ICU-900 Fixed some compiler warnings.

X-SVN-Rev: 4346
This commit is contained in:
George Rhoten 2001-03-27 02:52:12 +00:00
parent 4920c3245a
commit bc61d8da9e
2 changed files with 6 additions and 25 deletions

View file

@ -4,39 +4,19 @@
* others. All Rights Reserved.
********************************************************************/
#ifndef _COLL
#include "unicode/coll.h"
#endif
#ifndef _TBLCOLL
#include "unicode/tblcoll.h"
#endif
#ifndef _UNISTR
#include "unicode/unistr.h"
#endif
#ifndef _SORTKEY
#include "unicode/sortkey.h"
#endif
#ifndef _REGCOLL
#include "regcoll.h"
#endif
#include "sfwdchit.h"
#define ARRAY_LENGTH(array) (sizeof array / sizeof array[0])
static UErrorCode status = U_ZERO_ERROR;
const UnicodeString CollationRegressionTest::test1 = "XFILE What subset of all possible test cases has the highest probability of detecting the most errors?";
const UnicodeString CollationRegressionTest::test2 = "Xf_ile What subset of all possible test cases has the lowest probability of detecting the least errors?";
const UChar chars3[] = {0x61, 0x00FC, 0x62, 0x65, 0x63, 0x6b, 0x20, 0x47, 0x72, 0x00F6, 0x00DF, 0x65, 0x20, 0x4c, 0x00FC, 0x62, 0x63, 0x6b, 0};
const UnicodeString CollationRegressionTest::test3(chars3);
CollationRegressionTest::CollationRegressionTest()
{
UErrorCode status = U_ZERO_ERROR;
en_us = (RuleBasedCollator *)Collator::createInstance(Locale::US, status);
}
@ -52,6 +32,8 @@ CollationRegressionTest::~CollationRegressionTest()
//
void CollationRegressionTest::Test4048446(/* char* par */)
{
const UnicodeString test1 = "XFILE What subset of all possible test cases has the highest probability of detecting the most errors?";
const UnicodeString test2 = "Xf_ile What subset of all possible test cases has the lowest probability of detecting the least errors?";
CollationElementIterator *i1 = en_us->createCollationElementIterator(test1);
CollationElementIterator *i2 = en_us->createCollationElementIterator(test1);
UErrorCode status = U_ZERO_ERROR;
@ -149,6 +131,8 @@ void CollationRegressionTest::Test4053636(/* char* par */)
//
void CollationRegressionTest::Test4054238(/* char* par */)
{
const UChar chars3[] = {0x61, 0x00FC, 0x62, 0x65, 0x63, 0x6b, 0x20, 0x47, 0x72, 0x00F6, 0x00DF, 0x65, 0x20, 0x4c, 0x00FC, 0x62, 0x63, 0x6b, 0};
const UnicodeString test3(chars3);
RuleBasedCollator *c = (RuleBasedCollator *) en_us->clone();
// NOTE: The Java code uses en_us to create the CollationElementIterators

View file

@ -248,8 +248,5 @@ private:
RuleBasedCollator *en_us;
static const UnicodeString test1;
static const UnicodeString test2;
static const UnicodeString test3;
};
#endif