/*
**********************************************************************
- * Copyright (C) 2005-2013, International Business Machines
+ * Copyright (C) 2005-2014, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*/
#include "cmemory.h"
#include "cstring.h"
-#include "ucol_imp.h"
+#include "usrchimp.h"
#include "unicode/coll.h"
#include "unicode/tblcoll.h"
col->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
for(int32_t i = 0; i < testCount; i += 1) {
- if (!isICUVersionAtLeast(52, 0, 1) && i>=4 && i<=6) {
- continue; // timebomb until ticket #9156 (was #8081) is resolved
- }
UnicodeString ts = CharsToUnicodeString(test[i]);
CollationElementIterator *iter = col->createCollationElementIterator(ts);
OrderList forwardList;
// to get runtimes of at least several seconds.
for (i=0; i<10000; i++) {
found = usearch_search(uss.getAlias(), 0, &icuMatchPos, &icuMatchEnd, &status);
+ (void)found; // Suppress set but not used warning.
//TEST_ASSERT_SUCCESS(status);
//TEST_ASSERT(found);
ucol_setStrength(coll, strengths[s]);
// TODO: try alternate prefix and suffix too?
- // TODO: alterntaes are only equal at primary strength. Is this OK?
+ // TODO: alternates are only equal at primary strength. Is this OK?
for(int32_t t = 0; t < loopCount; t += 1) {
uint32_t seed = m_seed;
// int32_t nmc = 0;