+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/********************************************************************
* COPYRIGHT:
- * Copyright (c) 2002-2012, International Business Machines Corporation and
+ * Copyright (c) 2002-2016, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************
*
#if !UCONFIG_NO_NORMALIZATION
#include "intltest.h"
+#include "cmemory.h"
#include "cstring.h"
#include "canittst.h"
#include "unicode/caniter.h"
#include "unicode/uchar.h"
#include "hash.h"
-#define ARRAY_LENGTH(array) ((int32_t)(sizeof (array) / sizeof (*array)))
-
#define CASE(id,test) case id: \
name = #test; \
if (exec) { \
int32_t i = 0;
CanonicalIterator it("", status);
if(U_SUCCESS(status)) {
- for (i = 0; i < ARRAY_LENGTH(testArray); ++i) {
+ for (i = 0; i < UPRV_LENGTHOF(testArray); ++i) {
//logln("Results for: " + name.transliterate(testArray[i]));
UnicodeString testStr = CharsToUnicodeString(testArray[i][0]);
it.setSource(testStr, status);
int32_t i = 0;
const UHashElement *ne = NULL;
- int32_t el = -1;
+ int32_t el = UHASH_FIRST;
//Iterator it = basic.iterator();
ne = col->nextElement(el);
//while (it.hasNext())