/******************************************************************** * COPYRIGHT: * Copyright (c) 1997-1999, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ /******************************************************************************** * * File cmsccoll.C * *********************************************************************************/ /** * CollationGermanTest is a third level test class. This tests the locale * specific primary, secondary and tertiary rules. For example, the ignorable * character '-' in string "black-bird". The en_US locale uses the default * collation rules as its sorting sequence. */ #include #include "unicode/utypes.h" #include "unicode/ucol.h" #include "unicode/uloc.h" #include "cintltst.h" #include "cdetst.h" #include "ccolltst.h" #include "unicode/ustring.h" #include "string.h" static UCollator *myCollation; const static UChar rules[MAX_TOKEN_LEN] = /*" & 0 < 1,\u2461sortklen2?sortklen1:sortklen2); sortklenmin = (sortklen1 0) keyResult= UCOL_GREATER; else keyResult = UCOL_EQUAL; reportCResult( source, target, sortKey1, sortKey2, compareResult, keyResult, incResult, result ); free(sortKey1); free(sortKey2); }