X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..e4f10fab0c078f399c9deef476d9c9b73b47dff8:/icuSources/test/intltest/encoll.cpp diff --git a/icuSources/test/intltest/encoll.cpp b/icuSources/test/intltest/encoll.cpp index e0de0b8b..a6596899 100644 --- a/icuSources/test/intltest/encoll.cpp +++ b/icuSources/test/intltest/encoll.cpp @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2003, International Business Machines Corporation and + * Copyright (c) 1997-2009, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ @@ -26,7 +26,7 @@ CollationEnglishTest::~CollationEnglishTest() delete myCollation; } -const UChar CollationEnglishTest::testSourceCases[][CollationEnglishTest::MAX_TOKEN_LEN] = { +static const UChar testSourceCases[][CollationEnglishTest::MAX_TOKEN_LEN] = { {(UChar)0x0061 /* 'a' */, (UChar)0x0062 /* 'b' */, 0}, {(UChar)0x0062 /* 'b' */, (UChar)0x006C /* 'l' */, (UChar)0x0061 /* 'a' */, (UChar)0x0063 /* 'c' */, (UChar)0x006B /* 'k' */, (UChar)0x002D /* '-' */, (UChar)0x0062 /* 'b' */, (UChar)0x0069 /* 'i' */, (UChar)0x0072 /* 'r' */, (UChar)0x0064 /* 'd' */, 0}, {(UChar)0x0062 /* 'b' */, (UChar)0x006C /* 'l' */, (UChar)0x0061 /* 'a' */, (UChar)0x0063 /* 'c' */, (UChar)0x006B /* 'k' */, (UChar)0x0020 /* ' ' */, (UChar)0x0062 /* 'b' */, (UChar)0x0069 /* 'i' */, (UChar)0x0072 /* 'r' */, (UChar)0x0064 /* 'd' */, 0}, @@ -78,7 +78,7 @@ const UChar CollationEnglishTest::testSourceCases[][CollationEnglishTest::MAX_TO {(UChar)0x0070 /* 'p' */, 0x00E9, (UChar)0x0063 /* 'c' */, (UChar)0x0068 /* 'h' */, 0x00E9, 0} // 49 }; -const UChar CollationEnglishTest::testTargetCases[][CollationEnglishTest::MAX_TOKEN_LEN] = { +static const UChar testTargetCases[][CollationEnglishTest::MAX_TOKEN_LEN] = { {(UChar)0x0061 /* 'a' */, (UChar)0x0062 /* 'b' */, (UChar)0x0063 /* 'c' */, 0}, {(UChar)0x0062 /* 'b' */, (UChar)0x006C /* 'l' */, (UChar)0x0061 /* 'a' */, (UChar)0x0063 /* 'c' */, (UChar)0x006B /* 'k' */, (UChar)0x0062 /* 'b' */, (UChar)0x0069 /* 'i' */, (UChar)0x0072 /* 'r' */, (UChar)0x0064 /* 'd' */, 0}, {(UChar)0x0062 /* 'b' */, (UChar)0x006C /* 'l' */, (UChar)0x0061 /* 'a' */, (UChar)0x0063 /* 'c' */, (UChar)0x006B /* 'k' */, (UChar)0x002D /* '-' */, (UChar)0x0062 /* 'b' */, (UChar)0x0069 /* 'i' */, (UChar)0x0072 /* 'r' */, (UChar)0x0064 /* 'd' */, 0}, @@ -130,7 +130,7 @@ const UChar CollationEnglishTest::testTargetCases[][CollationEnglishTest::MAX_TO {(UChar)0x0070 /* 'p' */, 0x00EA, (UChar)0x0063 /* 'c' */, (UChar)0x0068 /* 'h' */, (UChar)0x0065 /* 'e' */, 0} // 49 }; -const Collator::EComparisonResult CollationEnglishTest::results[] = { +static const Collator::EComparisonResult results[] = { Collator::LESS, Collator::LESS, /*Collator::GREATER,*/ Collator::LESS, @@ -186,7 +186,7 @@ const Collator::EComparisonResult CollationEnglishTest::results[] = { Collator::LESS // 49 }; -const UChar CollationEnglishTest::testBugs[][CollationEnglishTest::MAX_TOKEN_LEN] = { +static const UChar testBugs[][CollationEnglishTest::MAX_TOKEN_LEN] = { {0x61, 0}, {0x41, 0}, {0x65, 0}, @@ -201,7 +201,7 @@ const UChar CollationEnglishTest::testBugs[][CollationEnglishTest::MAX_TOKEN_LEN // 0x0300 is grave, 0x0301 is acute // the order of elements in this array must be different than the order in CollationFrenchTest -const UChar CollationEnglishTest::testAcute[][CollationEnglishTest::MAX_TOKEN_LEN] = { +static const UChar testAcute[][CollationEnglishTest::MAX_TOKEN_LEN] = { {0x65, 0x65, 0}, {0x65, 0x65, 0x0301, 0}, {0x65, 0x65, 0x0301, 0x0300, 0}, @@ -231,9 +231,9 @@ const UChar CollationEnglishTest::testAcute[][CollationEnglishTest::MAX_TOKEN_LE static const UChar testMore[][CollationEnglishTest::MAX_TOKEN_LEN] = { {(UChar)0x0061 /* 'a' */, (UChar)0x0065 /* 'e' */, 0}, - {(UChar)0x0061 /* 'a' */, (UChar)0x0066 /* 'f' */, 0}, { 0x00E6, 0}, { 0x00C6, 0}, + {(UChar)0x0061 /* 'a' */, (UChar)0x0066 /* 'f' */, 0}, {(UChar)0x006F /* 'o' */, (UChar)0x0065 /* 'e' */, 0}, { 0x0153, 0}, { 0x0152, 0}, @@ -326,7 +326,7 @@ void CollationEnglishTest::runIndexedTest( int32_t index, UBool exec, const char default: name = ""; break; } } else { - errln("Collator couldn't be instantiated!"); + dataerrln("Collator couldn't be instantiated!"); name = ""; } }